iOS   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – React本机构建命令失败:PhaseScriptExecution …(domain = NSPOSIXErrorDomain,code = 2)大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

环境 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 in
环境

@H_450_21@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

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

@H_450_21@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 )

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

@H_450_21@** 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启动应用程序时发生跟随错误.

ios – React本机构建命令失败:PhaseScriptExecution …(domain = NSPOSIXErrorDomain,code = 2)

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

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

解决方法

大佬总结

以上是大佬教程为你收集整理的ios – React本机构建命令失败:PhaseScriptExecution …(domain = NSPOSIXErrorDomain,code = 2)全部内容,希望文章能够帮你解决ios – React本机构建命令失败:PhaseScriptExecution …(domain = NSPOSIXErrorDomain,code = 2)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。