Even a brand new SwiftUI app project, created from the template, will not show Vision Pro as a run destination. So far, I can only get new apps created via the visionOS template to run in that simulator. Is that because lines of code like this are required? And how is Xcode determining this if it's not only via project settings or info.plist keys?
@main
struct visionOS_TestApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
ImmersiveSpace(id: "ImmersiveSpace") {
ImmersiveView()
}
}
}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: