2016-06-25 261 views
6

我試圖運行我的第一個React Native ...與AwesomeProject ... 經過「react-native run-ios」我得到:React Native,AwesomeProject,react-native run-ios:** BUILD FAILED **

** BUILD FAILED **

The following commands produced analyzer issues: Analyze RCTLocationObserver.m (1 command with analyzer issues)

The following build commands failed: CompileC /Users/nicolasjoly/Devel/AwesomeProject/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/Objects-normal/x86_64/RCTSRWebSocket.o RCTSRWebSocket.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler Analyze RCTLocationObserver.m CompileC /Users/nicolasjoly/Devel/AwesomeProject/ios/build/Build/Intermediates/RCTNetwork.build/Debug-iphonesimulator/RCTNetwork.build/Objects-normal/x86_64/RCTNetworkTask.o RCTNetworkTask.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (3 failures) Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app No devices are booted. Print: Entry, ":CFBundleIdentifier", Does Not Exist /Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/node_modules/promise/lib/done.js:10 throw err; ^

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist Print: Entry, ":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) 

謝謝你的幫助!

+0

您是否安裝了最新版本的xcode? – borracciaBlu

回答

7

嘗試運行react-native upgrade,然後對所有訂閱消息都回答「是」。之後,再次嘗試react-native run-ios

0

首先,運行命令react-native upgrade。然後,刪除iosandroid文件夾。然後,運行react-native eject。然後,運行react-native-git-upgrade。然後,運行react-native link

最後,再次運行react-native run-ios命令。

相關問題