As of version 12.2 for Xcode closing the Xcode application and reopening fixed this problem for me.
Topic:
Programming Languages
SubTopic:
Swift
Tags: