Same thing happens to me when attempting to run an iOS app, written 100% in SwiftUI (if that makes a difference), with a target of "My Mac (Designed for iPad)." It worked fine for the first few days, but now I get the same error. I've restarted, deleted Derived Data, cleared the cache, and all the usual jazz.
It will build and run without errors on a physical iPhone X.
MBP M1 2020, Big Sur 11.1, Xcode 12.4.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: