Reputation: 779
I tried almost all the solutions given to resolve this issue but nothing is working for me.
This issue is occurring when I am opening .xcodeproj
Can anyone please provide a permanent solution for this?
Upvotes: 1
Views: 3049
Reputation: 441
This issue is caused by Xcode's recent update. I fixed this issue by the following easy steps and I found this to be the best solution after searching for a while and tried many.
cd /to-your-project-folder
rm -rf node_modules && yarn
(to remove node_modules and reinstall them)Now you can run the project from Xcode or on the terminal run yarn run ios
or react-native run-ios
Credits to Spencer Carli's video on YouTube
I hope this helps :-)
Upvotes: 1
Reputation: 981
You need to change to the legacy build system in Xcode 10 and install third party scripts manually.
File > Project/Workspace settings
Build System: dropdown > change to Legacy Build system
Follow this to manually install third party scripts for RN:
Clean RN cache
$ rm -rf ~/.rncache
Re-install the deps
$ cd your_project_path
$ rm -rf node_modules/ && npm install
Then install the third-party
$ cd node_modules/react-native/scripts
$ ./ios-install-third-party.sh
Run the commands below if glog installation failed.
$ cd ../third-party/glog-0.3.x
$ ./configure
Upvotes: 1
Reputation: 1906
1) Close your Xcode.
2) Open Terminal, go to your project's root folder and do:
cd node_modules/react-native/third-party/glog-0.3.4/
3) Run the configure script:
./configure
4) Open Xcode and try to run your app.
Upvotes: 2