We have similar issue happen in Xcode 14.2, we have to clean build folder several time and build again to get it run. Sometime we can run the app in simulator even we have compile error. I think it is Xcode bug, can any Xcode developer in Apple give us the answer for this issue?