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 Now do "how to compile for intel on arm using mac ports" please... πŸ˜‰