加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – React本机构建命令失败:PhaseScriptExecution …(domain

发布时间:2020-12-15 01:40:30 所属栏目:百科 来源:网络整理
导读:环境 Mac OS X Version 10.11.3 (15D21)Xcode Version 7.2 (7C68)Simulator Version 9.2 (SimulatorApp-643)react-native-cli 0.1.10node v5.5.0 我在运行应用程序之前做了什么 npm install -g react-native-clireact-native init DemoProjectDELETEMEcd ./D
环境

Mac OS X Version 10.11.3 (15D21)
Xcode Version 7.2 (7C68)
Simulator Version 9.2 (SimulatorApp-643)
react-native-cli 0.1.10
node v5.5.0

我在运行应用程序之前做了什么

npm install -g react-native-cli
react-native init DemoProjectDELETEME
cd ./DemoProjectDELETEME
react-native run-ios

我是React Native的新手.当我尝试在iOS模拟器上运行默认应用程序时,我遇到以下错误.我发现一个类似的问题,但它并不能解决我的问题.

Xcode6 can’t run any app in simulator ( Domain = NSPOSIXErrorDomain,Code = 3 )

重新启动机器和模拟器后,问题仍然持续.

** BUILD FAILED **


The following build commands failed:
    PhaseScriptExecution Run Script /Users/x/Desktop/DemoProjectDELETEME/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/DemoProjectDELETEME.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain,code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry,":CFBundleIdentifier",Does Not Exist
/Users/x/Desktop/DemoProjectDELETEME/node_modules/promise/lib/done.js:10
      throw err;
      ^

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

    at checkExecSyncError (child_process.js:464:13)
    at Object.execFileSync (child_process.js:484:13)
    at _runIOS (runIOS.js:77:34)
    at runIOS.js:24:5
    at tryCallTwo (/Users/x/Desktop/DemoProjectDELETEME/node_modules/promise/lib/core.js:45:5)
    at doResolve (/Users/x/Desktop/DemoProjectDELETEME/node_modules/promise/lib/core.js:200:13)
    at new Promise (/Users/x/Desktop/DemoProjectDELETEME/node_modules/promise/lib/core.js:66:3)
    at Array.runIOS (runIOS.js:23:10)
    at Object.run (/Users/x/Desktop/DemoProjectDELETEME/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)

当我尝试从Xcode启动应用程序时发生跟随错误.

enter image description here

sudo npm在项目根目录中解决问题,但是反应性本机运行仍然BUILD FAILED.

谢谢你的时间查看我的问题.

解决方法

尝试运行反应本机升级

参见Github线程:https://github.com/facebook/react-native/issues/7308#issuecomment-219597774

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读