-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Xcode 10: third-party: 'config.h' file not found #14382
Comments
I’ve got the same issue. :( |
Can you try removing the third-party folder in your node_modules/react-native folder? |
Looks like there's a bug with the install-third-party scripts. In |
Removing the third party folder did the trick. (I left the third-party-podspecs folder, though). Do you still want me to try the other fix? |
Yeah, if you could try removing the folder again, and try if running that script still works, that'd be awesome! |
Sorry, I meant the react-native folder. |
@javache
|
Fixed using earlier versions. Try this react-native init --version="0.42.0" AwesomeProject |
I’ve got the same issue. :( |
I also have the same issue after updating from 0.44.0 > 0.45.1:
Xcode build fails:
Xcode build succeeds. Edit: |
Building my parent / main project still fails:
I also noticed that the files linked from the React project are wrong/missing. For example: If I build a new project using (btw I'm not using CocoaPods) |
I have same problem at version 0.45.0 and 0.45.1. I am using npm version 5.0.3. |
My above comment about files that are not linked correctly solved by itself so I don't think the errors were related to that at all:
Basically the paths were changed / fixed after a successful build of the I still get the same |
Finally fixed the |
For me, removing
So I need to reinstall Aside from DX, the potential problem I noticed with doing this is when I reinstall |
you can just install glog yourself to solve this program. build in Xcode again, problem never comes back . |
For me:
did the trick! |
just use previous version 0.44 |
Running into the same issue here after upgrading from
|
It works ! thank u @Ignigena |
Same issue with RN 0.46 |
This is not a problem only for upgrades. I get the same error even on new RN 0.46 projects. |
@Ignigena thanks! It works for me. |
@Ignigena Thanks man |
@Ignigena, Thank you for your help! It works |
Running into the same issue. rn 0.46 is completely broken for me. Reverting to 0.44 |
@Ignigena, when I followed your steps, the build worked, but app crashed on my phone. Interestingly enough |
Looks like this is fixed in 0.47-RC. Hopefully, they will roll a 0.46.1 out with this fix: |
I got it fixed by following this steps:
Hope this solves the issue |
what worked for me:
|
Fix my bug. rm -rf node_modules/ && yarn cache clean && yarn install from @mattijsf |
Thank you @Ignigena! Your solution was the only that really worked for me. |
Thank you everyone, I solved my problem. i am Share the steps I solved:
hope to help friends who have the same problem. |
@coicoichip xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist sudo xcode-select --switch path/to/Xcode.app The path to Xcode.app carried out xcode-select --switch Xcode.app |
I tried the above code, then I got the following error like I solved by using the following command $ ./configure --host arm-apple-darwin |
Just received same issue with v 0.56.0, seems to be ongoing? This was for existing project. |
This is a returning issue every now an then. This time I got it after upgrading to Xcode 10. The steps from @lyon007 worked for me. |
Just got this with 0.50.4 and the steps from @lyon007 did the trick. |
For everyone else getting the error when building for devices in Xcode 10:
Do not use Note that the version in the path might differ per react-native version... |
In my case, it was actually related to having Xcode app named |
thank you! @Ignigena EnvironmentEnvironment: Packages: (wanted => installed) |
I am getting |
be in node_modules/react-native folder. run ./scripts/ios-install-third-party.sh. go to node_modules/react-native/third-party/glog-0.3.4. run ../../scripts/ios-configure.sh. done. |
Re-opening as it looks like the introduction of Xcode 10 has re-surfaced the issue. For future reference, please open a new issue if you find a closed issue with many comments claiming it's still happening. Comments on closed issues like this one generally go unnoticed by us maintainers. |
Actually, on a closer look, this appears to be covered already in #20774, which is still open. The root cause is projects using the new build system fail to run the third party install script at the right time. I'm closing this again, and please use #20774 as the central place to discuss solutions to the root cause. Duplicate of #20774 |
After upgrading from
0.44.3
->0.45.0
, XCode no longer builds for me with the following error:I am not using cocoa pods, just npm packages. Seems like some related changes have been made that may be causing this issue?
The text was updated successfully, but these errors were encountered: