17
votes

getting this error

** BUILD FAILED **

The following build commands failed: CompileC /Users/karthikn/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o Views/RCTTabBarItem.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist

11

11 Answers

7
votes

Xcode 8.2 still occur same error. Three lines bellow fixed it for me :) Downgrade react(16.0.0-alpha.12 -> 16.0.0-alpha.6) & react-native(0.45.0 -> 0.44.0)
rm -rf node_modules/react
npm i react@16.0.0-alpha.6 -S
npm i react-native@0.44.0 -S
Then run react-native run-ios

3
votes

If it's your first project, you may have the same problem than me: do NOT use space in your project path! 🎉 😄

2
votes
  1. If your xcode is open, close it
  2. Remove DrivedData
  3. Update your pod files using pod update command
  4. Run npx react-native ios command

its worked for me i hope work for you too

2
votes

Your build could be failing because of the current node js version installed, or due to your pod files or a number of other reasons.

This error may also be when cloning a react native repository from github.

This solution may work as I was able to recreate this issue(refer to the screen shots):

Solution one:

firstly:

If you have the latest version of node js installed you may have some compatibility issues with some of the dependencies, install the recommended version of Nodejs instead.

enter image description here

after installation, reinstall your dependencies and update your pod files:

npm install
cd ios
pod install 

or

pod update

solution two:

this can happen if you haven't installed react native previously on your system and are trying to run a clone react native repository from github.

brew install watchman
sudo gem install cocoapods

then in the rn project clone

 cd ios 
 pod install

Problem:

This is what the error message looks like:

legacy compatibility issues:

enter image description here

Build failed

enter image description here

Solution:

After following the above steps this issue was resolved instantly:

enter image description here

1
votes

There's a good chance you're running an outdated version of React-Native and your template is no longer compatible.

There are instructions provided on ways to upgrade.

The simplest would be to run react-native upgrade and you'll be prompted with files react-native wants to overwrite. Clicking yes through all the prompts solved this issue for me but if you're concerned about losing any changes, it's recommended to install npm install -g react-native-git-upgrade and merge any conflicts after running react-native-git-upgrade

1
votes

Try sudo react-native run-ios This helped me

0
votes

Check this In Your info.plist Bundle identifier

Or Add this Bundle identifier name as --> com.cmpname.yourapp // change name according

enter image description here

0
votes

DO NOT use space in project path. It had solved my problem.

0
votes

Replace Boost C++ Libraries with this one Download Link

/node_modules/react-native/third-party/boost_1_63_0

-1
votes

There are different problems that cause this issue. I'll post here what I did to resolve in my case.

1 - Delete the folder node_modules and the folders of android and ios from project root:

rm -rf node_modules/ ios/ android/

2 - Rebuild the folders:

npm install && react-native upgrade

or (If you have used yarn in the project)

yarn install && react-native upgrade 

3 - After that, just run the command again:

react-native run-ios 

or

react-native run-android.

I hope it helped =)

-2
votes

seems like there is an issue with the react-native version, downgrading the version will resolve the issue. Use the following commands:

  • rm -rf node_modules/react
  • npm i react@16.0.0-alpha.6 -S
  • npm i react-native@0.44.0-alpha.6 -S
  • react-native run-ios