React Native,AwesomeProject,react-native run-ios:** BUILD FAILED **

时间:2016-06-25 11:44:33

标签: ios react-native

我尝试使用AwesomeProject运行我的第一个React Native ... 经过“反应本地运行ios”后,我得到了:

  

**建筑失败**

     

以下命令产生分析器问题:分析   RCTLocationObserver.m(带分析器问题的1命令)

     

以下构建命令失败:CompileC   /Users/nicolasjoly/Devel/AwesomeProject/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/Objects-normal/x86_64/RCTSRWebSocket.o   RCTSRWebSocket.m正常x86_64 objective-c   com.apple.compilers.llvm.clang.1_0.compiler分析   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正常x86_64 objective-c   com.apple.compilers.llvm.clang.1_0.compiler(3次失败)安装   build / Build / Products / Debug-iphonesimulator / AwesomeProject.app没有   设备启动。打印:条目,“:CFBundleIdentifier”,不是   存在   /Users/nicolasjoly/Devel/AwesomeProject/node_modules/react-native/node_modules/promise/lib/done.js:10         扔错了;         ^

     

错误:命令失败:/ usr / libexec / PlistBuddy -c   打印:CFBundleIdentifier   构建/编译/产品/调试-iphonesimulator / AwesomeProject.app / Info.plist中   打印:输入,“:CFBundleIdentifier”,不存在

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)

感谢您的帮助!!

2 个答案:

答案 0 :(得分:7)

尝试运行react-native upgrade然后对所有订阅消息说“是”。之后,再次尝试react-native run-ios

答案 1 :(得分:0)

首先,运行命令import admin from "abstracted-admin"; const { DB } = admin; 。然后,删除您的react-native upgradeios文件夹。然后,运行android。然后,运行react-native eject。然后,运行react-native-git-upgrade

最后,再次运行react-native link命令。