新鲜的反应本土ios应用程序没有建立?

前端之家收集整理的这篇文章主要介绍了新鲜的反应本土ios应用程序没有建立?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
以下是有关我的环境和构建失败日志的详细信息.
任何面临类似问题或知道步骤来克服这个问题的人,请指出相关步骤或文档.

> Xcode:7.2.1
>节点:v5.9.0
> npm:3.7.3
反应物:0.1.10
反应性:0.22.2

运行“sudo反应本机run-ios”留下以下日志.

日志:

** BUILD Failed **


The following build commands Failed:
    PhaseScriptExecution Run\ Script /Users/abc/Desktop/REACT-NATIVE/demo/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/demo.app
No devices are booted.
Print: Entry,":CFBundleIdentifier",Does Not Exist
/Users/abc/Desktop/REACT-NATIVE/demo/node_modules/promise/lib/done.js:10
      throw err;
      ^

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

    at checkExecSyncError (child_process.js:469:13)
    at Object.execFileSync (child_process.js:489:13)
    at _runIOS (runIOS.js:83:34)
    at runIOS.js:24:5
    at tryCallTwo (/Users/abc/Desktop/REACT-NATIVE/demo/node_modules/promise/lib/core.js:45:5)
    at doResolve (/Users/abc/Desktop/REACT-NATIVE/demo/node_modules/promise/lib/core.js:200:13)
    at new Promise (/Users/abc/Desktop/REACT-NATIVE/demo/node_modules/promise/lib/core.js:66:3)
    at Array.runIOS (runIOS.js:23:10)
    at Object.run (/Users/abc/Desktop/REACT-NATIVE/demo/node_modules/react-native/local-cli/cli.js:86:13)
    at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:73:7)

解决方法

我在OS X El Capitan v10.11.4上有类似的问题
node --version v6.0.0
npm --v 3.8.8
react-native-cli: 0.2.0
react-native: 0.24.1
watchman --v 4.4.0
xcode 7.3

我在react-native github创造了一个问题.

我能够解决我的问题:

对我来说,8081端口正在使用中:

lsof -n -i4TCP:8081

节点7601 arun 23u IPv6 0xc6b249599e5f1169 0t0 TCP *:sunproxyadmin(LISTEN)

所以我按照React Native Troubleshooting的指示,杀死了pid

杀 – 9 7601

并再次运行命令react-native run-ios,并且一切都按预期工作(在节点6上).

原文链接:https://www.f2er.com/iOS/336105.html

猜你在找的iOS相关文章