Skip to content

Extends support for arm64e to macOS & visionOS platforms #8837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pmattos
Copy link
Contributor

@pmattos pmattos commented Jun 17, 2025

Add arm64e support for macOS, iOS, and visionOS apps.

Motivation:

SwiftPM currently only supports building arm64e packages for iOS.

In Xcode 26 we added support to building packages for arm64e targeting macOS & visionOS platforms too.

Modifications:

Conditionally adds "arm64e" to the ARCHS build settings in the PackagePIFBuilder used to interface with Swift Build.

Result:

PIF builder nows had the capability of builds packages for arm64e. Note that this is currently disabled in SwiftPM, for now.

I validated this by building a simple macOS executable for arm64e:

$ swift package init --type executable --name HelloWorld
$ swift run swift-build --package-path HelloWorld --build-system swiftbuild

...and then I inspected the generated binary:

$ lipo -archs HelloWorld/.build/arm64-apple-macosx/Products/Debug/HelloWorld 
arm64e

@pmattos pmattos changed the title Support for arm64e Extends support for arm64e to macOS & visionOS platforms Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant