The iOS simulator builds only include x86_64 binaries. When attempting to run iOS apps in the simulator on M1 hardware, the Xcode project will fail because $(ARCHS_STANDARD_64_BIT) evaluates as arm64, rather than x86_64.
It is possible to work around this by manually setting VALID_ARCHS to x86_64; however, this means the iOS app is running as an Intel app.
To Reproduce
Steps to reproduce the behavior:
Generate an iOS HelloWorld app on M1 hardware
Run the app in an iOS simulator using Briefcase; note that the process is of type Intel in the Activity Monitor
Try to run the app by launching in Xcode; it will fail to build.
Expected behavior
When run using Briefcase, the app should present as Apple in the Activity Monitor.
The Xcode project should build without modifications
Screenshots
If applicable, add screenshots to help explain your problem.
The iOS simulator builds only include x86_64 binaries. When attempting to run iOS apps in the simulator on M1 hardware, the Xcode project will fail because
$(ARCHS_STANDARD_64_BIT)
evaluates asarm64
, rather thanx86_64
.It is possible to work around this by manually setting
VALID_ARCHS
tox86_64
; however, this means the iOS app is running as an Intel app.To Reproduce Steps to reproduce the behavior:
Intel
in the Activity MonitorExpected behavior
Apple
in the Activity Monitor.Screenshots If applicable, add screenshots to help explain your problem.
Environment: