-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Compiler errors when building for iOS device #14174
Comments
When installing the third-party dependencies we run the https://github.com/facebook/react-native/blob/master/scripts/ios-configure-glog.sh script, which is generating this error. Could you try commenting out line 5 and 7 there (the Xcode context) checks? |
It seems I get a different error after doing this:
You can see more of the error message here. |
Do you have any other compilers configured on your PATH? Somehow it seems to hit this error in the internal header
One idea is to also define CXX, can you add |
I don't know. I've reproed both errors I've shared in this discussion on two different machines. One of the machines is brand new and pretty much the only things I've installed on it are the tools for doing iOS and Android React Native development. Are you able to repro this issue?
How do I |
In the ios-configure-glog script (https://github.com/facebook/react-native/blob/master/scripts/ios-configure-glog.sh#L5-L7), replace lines 5-7 with export CC="$(xcrun -find -sdk iphoneos cc) -arch armv7 -isysroot $(xcrun -sdk iphoneos --show-sdk-path)" |
@javache That fixes the build for me! |
@javache I'm getting that error on my CI, do we have to do anything in particular to fix this? This is what I'm getting:
|
Can you attach the config.log to get more details. #14267 may also fix this. |
5c53f89 did fix it for me. Thanks @javache and @janicduplessis ! |
This should be shipping in 0.46.3 once #14174 finishes. |
Facing the same issue. |
@divyanshyadav are you seeing this in 0.46.3? |
Maybe this #14382 (comment) will help |
@javache
After this commit (885856c), I can no longer successfully build my iOS app for use on my device (building for simulator works).
The error occurs when configuring glog (delete the directory called "third-party" before building for device to repro). The error is:
I'm building on a late 2014 Mac Mini for an iPhone 6s+.
The text was updated successfully, but these errors were encountered: