# Archiving swift package that supports visionOS requires x86\_64 architecture

**URL:** <https://forums.swift.org/t/archiving-swift-package-that-supports-visionos-requires-x86-64-architecture/71964>\
**Category:** Using Swift\
**Tags:** packagemanager, xcodebuild\
**Created:** [May 20, 2024, 10:23pm UTC](https://forums.swift.org/t/archiving-swift-package-that-supports-visionos-requires-x86-64-architecture/71964 "2024-05-20T22:23:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zkline101](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/zkline101/32/29943_2.png) [@zkline101](https://forums.swift.org/u/zkline101)\
**Post date:** [May 20, 2024, 10:23pm UTC](https://forums.swift.org/t/archiving-swift-package-that-supports-visionos-requires-x86-64-architecture/71964/1 "2024-05-20T22:23:16Z")

</div>

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:

```swift
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](https://developer.apple.com/documentation/xcode-release-notes/xcode-15_2-release-notes#General) (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!

---

<div class="post-metadata">

**Author:** ![tgoyne](https://avatars.discourse-cdn.com/v4/letter/t/5e9695/32.png) [@tgoyne](https://forums.swift.org/u/tgoyne)\
**Post date:** [May 20, 2024, 10:34pm UTC](https://forums.swift.org/t/archiving-swift-package-that-supports-visionos-requires-x86-64-architecture/71964/2 "2024-05-20T22:34:46Z")

</div>

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

```shell
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.

---

<div class="post-metadata">

**Author:** ![zkline101](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/zkline101/32/29943_2.png) [@zkline101](https://forums.swift.org/u/zkline101)\
**Post date:** [May 20, 2024, 10:57pm UTC](https://forums.swift.org/t/archiving-swift-package-that-supports-visionos-requires-x86-64-architecture/71964/3 "2024-05-20T22:57:25Z")

</div>

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