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?
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.