If you’re doing CI on Intel machines but need to build for visionOS:

defaults write com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES

(Run this before xcodebuild -downloadPlatform visionOS)

@saagar Did you ever find out if this works for real development?

With that defaults write command on my Intel Mac, I'm able to pair my Vision Pro with Xcode and compile apps, but I can't get them onto the device! The paired Vision Pro refuses to appear as a run destination in the dropdown. I've been pulling my hair out all day now.

I'd love to know if something is wrong with my setup or if this is an Intel limitation. (Which would also suck since I don't have access to an Apple Silicon Mac.)

@Wowfunhappy I haven’t looked at it, sorry. I have an Apple silicon machine personally and only run CI builds on Intel (or did, anyways–GitHub offers new runners now). Do you get an error of some sort?
@saagar No error. Thanks, just thought I'd ask if you heard anything.
@Wowfunhappy Unfortunately not. I’m sure there is a way to enable it but I haven’t looked into it