I have the same issue for a few days (Mac M1, Xcode 14.3). I managed to stop the errors from disappearing by unchecking show live issues (Xcode -> settings -> general -> show live issues). But it's not an ideal solution.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: