Open Project in Xcode
If Xcode > 9
run command react-native upgrade
(this overwrites all your iOS configurations, use with caution!)
then
1.Go to File -> Project settings
2.Click the Advanced button
3.Select "Custom" and select "Relative to Workspace" in the pull down
4.Change "Build/Products" to "build/Build/Products" and "Build/Intermediates" to "build/Build/Intermediates"
5.click done, done
This is may occurs if you are missing config.h file,
For update config.h file,
1) Close your Xcode.
2) Open Terminal, go to your project's root folder and do:
cd node_modules/react-native/third-party/glog-{X}.{X}.{X}/
3) Run the configure script:
./configure
4) Open Xcode and try to run your app.
{X}: version number glog
If you're using Xcode 10, it may be due to an incompatibility with the latest build system of Xcode. Try switching to the legacy build system.
Open Xcode 10, File > Project Settings > Build System > switch dropdown to Legacy Build System.
Update React using react-native upgrade
did it for me.
Disclaimer: this overwrites all your iOS configurations, use with caution!
I faced the same problem with iOS 14 and Xcode 12.
Error: Command failed: ...../Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I solved it by removing my yarn.lock
file and node_modules
folder. Then install everything again with yarn install
. The logic behind it is that this will upgrade your react-native-cli
which fixes this error.
My problem was actually that my build was in Release mode instead of Debug mode. As a result, the identifier was pointing to something that was not in existence. I changed the build type and it ended up working.
I also came across this issue as well and I found a way to fix it
Here is what i did:
1) Make sure there is no white spaces in the file directory.
2) cd project directory
3) run command react-native upgrade
4) Go to native ios folder and open xcode project.
5) Go to File > Project Settings > Advanced...
6) select custom > Relative to workspace
7) products path should be 'build/Build/Products'
8) intermediates path should be 'build/Build/Intermediates'
9) now try running command in your terminal react-native run-ios
I hope that this solutions will help some of us facing this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With