Archiving swift package that supports visionOS requires x86_64 architecture

Hello,

I have a swift package that supports visionOS and one of its targets is a xcframework that also support visionOS and when I try to archive that swift package (using xcodebuild archive) I get this error:

note: '<xcframework path>' is missing architecture(s) required by this target (x86_64), but may still be link-compatible. (in target '[library name]' from project '<swift package name>')

But starting in Xcode 15.2 (I have Xcode 15.4 installed), you cannot develop for visionOS on Intel machines. So why does it require that the xcframework needs x86_64 support for the visionOS simulator?

Any help would be great. Thanks!

The Apple Silicon requirement is fake and you can disable it:

defaults write http://com.apple.dt.Xcode AllowUnsupportedVisionOSHost -bool YES
defaults write http://com.apple.CoreSimulator AllowUnsupportedVisionOSHost -bool YES
xcodebuild -downloadPlatform visionOS

Xcode Cloud sets this as it's running on Xeons but needs to support visionOS.

The Apple Silicon requirement is fake and you can disable it:

Wow interesting, thank you. So if Apple is advertising that you are required to have Apple silicon to develop for visionOS then I guess we shouldn't add support for x86 in our framework that supports the visionOS simulator. Or we add support for x86 for the same reason you listed.