ios - React Native Build Commands Failed: PhaseScriptExecution ... (domain=NSPOSIXErrorDomain, code=2) -
environment
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 what did before running app
npm install -g react-native-cli react-native init demoprojectdeleteme cd ./demoprojectdeleteme react-native run-ios i new react native. when try run default app on ios simulator got following errors. found similar issue not solve problem.
xcode6 can't run app in simulator ( domain = nsposixerrordomain, code = 3 )
after restart machine , simulator issues still persistent.
** build failed ** 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 error encountered processing command (domain=nsposixerrordomain, code=2): failed install requested application application bundle not found @ provided path. provide valid path desired application bundle. print: entry, ":cfbundleidentifier", 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, ":cfbundleidentifier", not exist @ checkexecsyncerror (child_process.js:464:13) @ object.execfilesync (child_process.js:484:13) @ _runios (runios.js:77:34) @ runios.js:24:5 @ trycalltwo (/users/x/desktop/demoprojectdeleteme/node_modules/promise/lib/core.js:45:5) @ doresolve (/users/x/desktop/demoprojectdeleteme/node_modules/promise/lib/core.js:200:13) @ new promise (/users/x/desktop/demoprojectdeleteme/node_modules/promise/lib/core.js:66:3) @ array.runios (runios.js:23:10) @ object.run (/users/x/desktop/demoprojectdeleteme/node_modules/react-native/local-cli/cli.js:86:13) @ object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:73:7) got follower error when trying launch app xcode.
sudo npm start in project root solves issue, react-native run-ios still build failed.
thanks time viewing question.
try running react-native upgrade
see github thread: https://github.com/facebook/react-native/issues/7308#issuecomment-219597774

Comments
Post a Comment