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

Fix iOS build for arm64 and xcode 14.3 #829

Conversation

samsiegart
Copy link
Contributor

I needed to apply these fixes locally to get the iOS app building on my m1 mac with xcode 14.3

First issue I ran into:
facebook/react-native#36758

I fixed it by applying a patch similar to facebook/react-native@52d8a79

Second issue I ran into:
Various ld: library not found for... build errors.

I fixed it by modifying the podfile according to https://gist.github.com/badsyntax/72c5c965fcaefe66d049a8c2cdf34198

@HeesungB
Copy link
Collaborator

@samsiegart I don't think the settings you posted will work for everyone.
It seems like a setting for someone using arm64.

I realize that it's difficult to build a mobile version at the moment.
There will be an update soon to put up a react native version.

I'll try to set it up well to make development easier.

@samsiegart
Copy link
Contributor Author

Thanks for taking a look @HeesungB. I don't have a non-arm64 mac to verify, but I believe this should work on intel chips as well because the fix just forces xcode to not use the arm64 architecture. But, apparently upgrading to react-native 0.69+ would also fix it from what I've seen so that seems like a preferred method. Feel free to close this if you'd like and I can just use this patch locally in the meantime.

@HeesungB
Copy link
Collaborator

@samsiegart Yes, thanks for the PR.

@HeesungB HeesungB closed this Sep 15, 2023
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.

2 participants