Skip to content
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

Compatibility updates for M1 laptops and XCode 11.4+ #103

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

randscr-stripe
Copy link

For M1 laptops running XCode 11.4+ you run into two problems today:

  1. The outdated Stripe SDK (18.2.0) fails to compile on XCode 11.4+. The solution for this is updating the SDK, as suggested ie here
  2. XCode needs to be instructed to only build the arm64 architecture. Otherwise, building will fail with x86_64 related linking errors for Alamofire.

Below are the changes I had to make to get the iOS app to run in a simulator on MacOS 13.5.2 (22G91) with XCode 11.4.1.

fixes issues where on arm64 (M1 laptop) the compilation fails because it also tries to build x86_64
`uname -m` will return x86_64 on intel laptops and arm64 on M1 laptops
This reverts commit 7bc1296.

newer iphones run arm64 as well, so that hardcoding is actually required to make compilation pass on intel laptops
@Silvrbckw
Copy link

Merge

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.

3 participants