beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.1k stars 159 forks source link

iOS simulator builds are x86_64 only #133

Closed freakboy3742 closed 2 years ago

freakboy3742 commented 2 years ago

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:

  1. Generate an iOS HelloWorld app on M1 hardware
  2. Run the app in an iOS simulator using Briefcase; note that the process is of type Intel in the Activity Monitor
  3. Try to run the app by launching in Xcode; it will fail to build.

Expected behavior

  1. When run using Briefcase, the app should present as Apple in the Activity Monitor.
  2. The Xcode project should build without modifications

Screenshots If applicable, add screenshots to help explain your problem.

Environment: