React Native ios build failed to execute using run-ios

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 assembly / assembly / products / Debug-iphonesimulator / AwesomeProject.app An error occurred while processing the command (domain = NSPOSIXErrorDomain, code = 2): Failed to install the requested application The application package was not found on the specified path. Specify a valid path to the desired set of applications. Seal: record, ": CFBundleIdentifier", does not exist

Failed to execute the command: / usr / libexec / PlistBuddy -c Print: CFBundleIdentifier build / Build / Products / Debug-iphonesimulator / AwesomeProject.app / Info.plist Print: record, ": CFBundleIdentifier" does not exist

+12
ios terminal xcode react-native
source share
10 answers

Xcode 8.2 still happens with the same error. The three lines below fixed this for me :) Downgrade reaction (16.0.0-alpha.12 โ†’ 16.0.0-alpha.6) and native reaction (0.45.0 โ†’ 0.44.0)
rm -rf node_modules / reaction
npm i react @ 16.0.0-alpha.6 -S
npm i react-native@0.44.0 -S
Then run response-native run-ios

+7
source share

If this is your first project, you may have the same problem as mine: DO NOT use a space in your path to the project! ๐ŸŽ‰ ๐Ÿ˜„

+2
source share

Try sudo react-native run-ios. It helped me

+2
source share

It is very likely that you are using an older version of React-Native and your template is no longer compatible.

There are instructions on how to update.

The simplest would be to run react-native upgrade , and you will be asked to overwrite the files that native-native reacts to. By clicking yes in all the prompts, I solved this problem, but if you are worried about losing any changes, it is recommended that you install npm install -g react-native-git-upgrade and merge any conflicts after running react-native-git-upgrade

+1
source share

Check this in your info.plist id id

Or Add this package identifier name as โ†’ com.cmpname.yourapp // change the name to match

enter image description here

0
source share

DO NOT use a space in the path to the project. This solved my problem.

0
source share

Replace Boost C ++ libraries with this Download Link

/ node_modules / react native / third-party / boost_1_63_0

0
source share

There are various problems that cause this problem. I will post here what I did to solve in my case.

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

 rm -rf node_modules/ ios/ android/ 

2 - Rebuild folders:

 npm install && react-native upgrade 

or (if you 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. 

Hope this helped =)

0
source share

This solution should help you. Please take the time and go through it, and you will be fine.

https://github.com/facebook/react-native/issues/24450#issuecomment-516760157

0
source share

there seems to be a problem with the reaction version, and downgrading will solve the problem. Use the following commands:

  • rm -rf node_modules / reaction
  • npm i react@16.0.0-alpha.6 -S
  • npm i react-native@0.44.0-alpha.6 -S
  • response-native run-ios
-2
source share

All Articles