See the issue I posted a few weeks ago with solution from Apple ( https://developer.apple.com/forums/thread/696903 ). Your issue seems similar. The solution for my issue was to delete Swift Playgrounds and download/re-install it again. It worked.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: