React Native, AwesomeProject, run-ios for response: ** BUILD FAILED **

I am trying to run my first React Native ... with AwesomeProject ... After the "native-react run-ios response" I got:

** BUILD FAILED **

The following commands caused problems with the analyzer: Analyze RCTLocationObserver.m (1 command with analyzer problems)

The following build commands could not be executed: CompileC /Users/nicolasjoly/Devel/AwesomeProject/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/Objects-normal/x86_64/RCTSRWebSocketWebSebsweb normal x86_64 objective-ccom.apple.compilers.llvm.clang.1_0.compiler Analysis of RCTLocationObserver.m CompileC /Users/nicolasjoly/Devel/AwesomeProject/ios/build/Build/Intermediates/RCTNetwork.build/Debug-iphonesimulator/RCTetwork Objects-normal / x86_64 / RCTNetworkTask.o RCTNetworkTask.m normal x86_64 objective-ccom.apple.compilers.llvm.clang.1_0.compiler (3 failures) Install build / Build / Products / Debug-iphonesimulator / AwesomeProject.app No devices are loading . Seal: write, ": CFBundleIdentifier", do not exist / Users / nicolasjoly / Devel / AwesomeProject / node_modules / react-native / node_modules / promise / lib / done.js: 10 throw an error; ^

Error: command failed: / usr / libexec / PlistBuddy -c Print: CFBundleIdentifier Build / Build / Products / Debug-iphonesimulator / AwesomeProject.app / Info.plist Print: record, ": CFBundleIdentifier", does not exist

at checkExecSyncError (child_process.js:464:13) at Object.execFileSync (child_process.js:484:13) at _runIOS (/Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/local-cli/runIOS/runIOS.js:82:34) at /Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/local-cli/runIOS/runIOS.js:24:5 at tryCallTwo (/Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/node_modules/promise/lib/core.js:45:5) at doResolve (/Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/node_modules/promise/lib/core.js:200:13) at new Promise (/Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/node_modules/promise/lib/core.js:66:3) at Array.runIOS (/Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/local-cli/runIOS/runIOS.js:23:10) at Object.run (/Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/local-cli/cliEntry.js:88:13) at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:88:7) 

Thank you for your help!

+6
source share
2 answers

Try running react-native upgrade , and then say yes to all subscription messages. After that try react-native run-ios again

+7
source

First run the react-native upgrade command. Then delete the ios and android folders. Then run react-native eject . Then run react-native-git-upgrade . Then run react-native link .

Finally, run the react-native run-ios command again.

0
source

All Articles