-
Notifications
You must be signed in to change notification settings - Fork 193
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
Unable to build app for iOS simulator #362
Comments
Strange, it's raining M1 issues 😅 |
Thanks @mikehardy for your fast response! Unfortunately this issue is not only appearing on M1 Macbooks but also on old ones with an Intel CPU. |
Sure, it will happen with Xcode 12.5 even. I'm not sure react-native 0.63.4 is worth supporting at all at this point, I can only deterministically say how to get it working with react-native 0.65.1 and upcoming 0.66.0 reference facebook/react-native#31941 and facebook/react-native#31480 I won't be able to comment further, I know that stanza works, if you're using up to date react-native |
@jnurkka Try building the |
Running into this build issue in RCTxxBridge there: |
Interesting - that's probably an Xcode 13 issue, c.f. thebergamo/react-native-fbsdk-next#97 - those types changed a bit I think @christocracy I'm not sure react-native 0.61.5 is a valid base to build on vs Xcode 13, I'm surprised it's built this long!
|
Googling that error, I found this magic spell. however, now I get Showing Recent Messages Yea, the |
That magic spell should not be needed in 0.65.1? Other magic spells (which I've posted) but not that one :-) (that one is probably all busted since since Notifee went fully open source and the repos are all re-arranged, but it gives the idea) |
Good idea for autogenerating a fresh example instance. I whipped up a simple Node cli for most of my repos in /bin folder for performing tasks. I'll add a new task for doing this. |
For reference, the issue still persist after upgrading to RN 0.65.1. Build succeeds when target is a physical device, fails with above errors for simulators |
@jnurkka that's to be expected I bet, and still not the fault of this module. You need to very very carefully play with ACTIVE_ARCHS / EXCLUDED_ARCHS etc settings so that you have the correct settings for the combination of your build environment and release environment. |
I did a bunch of unrelated compile testing and I am certain release mode works for instance, as I just updated this react-native-firebase build test script, and it probes release mode: It works on an M1 mac and an Intel mac. |
That's quite a script. |
That magic spell fixed the example app for me eact-native 0.65.1 (Xcode 13). |
Proper integration of react-native-firebase is involved enough, and I was typing the same answers enough that I finally resolved to turn myself into a robot, as it were, and now I just point people to that and say "these are the exact steps that result in a buildable project". My issues workload over there has probably been cut to a 1/3rd of what it was since |
Seems like the issue had to do with library search paths. I compared the Thanks anyway for your help! Does anyone have any tips to avoid the file in question becoming corrupted over time as it is a pain to update on each RN version upgrade? |
How long ago was your RN app generated from |
Around 4 years ago 🤷♂️ |
That's your problem. In the early days of RN (2016, 2017), manually adding Framework Search Paths used to be part of the Setup Steps. It's probably a good idea to re-generate a fresh RN app and migrate your JS code and dependencies into it. |
Your Environment
react-native -v
): 0.63.4Expected Behavior
App builds for iOS regardless if running on a simulator or a physical device
Actual Behavior
App builds only when building for a physical device
Steps to Reproduce
yarn install
cd ios && pod install
Context
Just trying to test my app on an ios simulator
Debug logs
As mentioned above, there are no problems when performing exactly the same steps but selecting a physical device as the target to run the app on. Archiving a production build obviously also works.
The text was updated successfully, but these errors were encountered: