Closed
Description
On 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 init AwesomeProject
$ cd AwesomeProject
$ react-native run-ios
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Run\ Script /development/misc/react/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.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
/development/misc/react/AwesomeProject/node_modules/promise/lib/done.js:10
throw err;
^
Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
at checkExecSyncError (child_process.js:470:13)
at Object.execFileSync (child_process.js:490:13)
at _runIOS (runIOS.js:91:34)
at runIOS.js:24:5
at tryCallTwo (/development/misc/react/AwesomeProject/node_modules/promise/lib/core.js:45:5)
at doResolve (/development/misc/react/AwesomeProject/node_modules/promise/lib/core.js:200:13)
at new Promise (/development/misc/react/AwesomeProject/node_modules/promise/lib/core.js:66:3)
at Array.runIOS (runIOS.js:23:10)
at Object.run (/development/misc/react/AwesomeProject/node_modules/react-native/local-cli/cli.js:86:13)
at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:88:7)
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
grabbou commentedon Apr 30, 2016
I saw you posted on StackOverflow as well - any luck so far? I am playing around with
master
at the moment and I can't reproduce. Maybe it's one of the problems described there, e.g. thesudo
or permissions? Also do you haveCFBundleIdentifier
in yourInfo.plist
?arun0009 commentedon May 1, 2016
I tried deleting all my node modules, clear cache etc and sudo as well with no luck. I do have CFBundleIdentifier in the Info.plist as:
dsibiski commentedon May 1, 2016
@grabbou Are you trying it with Node 6? I haven't been able to reproduce it, but I've only tried so far with Node 4 & 5, haven't installed 6 yet. Perhaps it's an issue there?
arun0009 commentedon May 1, 2016
@dsibiski I had node 5.9 before and I had the same issue, I uninstalled node/npm and deleted every node module and reinstalled (that's when I got node 6 on my machine) but I still am stuck with the above exception.
shinout commentedon May 1, 2016
I also encountered a similar error.
On OS X El Capitan v10.11.4
node --version v6.0.0
npm --v 3.8.6
react-native-cli: 0.2.0
react-native: 0.24.1
watchman --v 4.4.0
xcode 7.3
$ react-native init AwesomeProject
$ cd AwesomeProject
$ react-native run-ios
** BUILD SUCCEEDED **
The following commands produced analyzer issues:
Analyze Modules/RCTUIManager.m
(1 command with analyzer issues)
Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.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/shinout/workspace/AwesomeProject/node_modules/promise/lib/done.js:10
throw err;
^
In my case, BUILD seems to succeed. However, the process terminates with the error message above.
ms88privat commentedon May 1, 2016
I got the same problem on one of my projects... You could kind work around with only XCode builds. I think it appeared after changing the name of the project.
arun0009 commentedon May 2, 2016
I was able to solve this issue! Looks like port 8081 was in use :
So I followed the instructions from React Native Troubleshooting https://facebook.github.io/react-native/docs/troubleshooting.html
kill - 9 7601
and ran the command react-native run-ios again and everything worked as expected (on node 6 as well).
Closing this issue & thanks for your help!
dsibiski commentedon May 2, 2016
@arun0009 Awesome, thanks for posting the answer back here 👍
ghost commentedon May 13, 2016
@shinout Hello, I have the same problem, you solve?
shinout commentedon May 13, 2016
Not yet... I finally bought a new mac and solved.
consideRatio commentedon May 17, 2016
I solved this issue with the
react-native upgrade
command, which helped me reset some details in various xcode files. At least that is what I think solved the issue.stief510 commentedon May 25, 2016
This isn't working for me. I'm still getting the same error. Node 5.11
341 remaining items