Close all opened projects and open only one, cause it seems that "At most one Xcode project can be open that contains your shared SwiftUI views". https://developer.apple.com/forums/thread/673932
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: