-
Notifications
You must be signed in to change notification settings - Fork 24k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Packager] Development server not auto starting from Xcode #3135
Comments
What version of xcode are you running? |
I am running Xcode 7 |
Hi @pangers! That's unfortunate. Did you try rebooting your machine? And close any existing terminal window with the dev server running? |
This could be a path issue somewhere. Is NPM installed properly? is it globally accessible? |
@brentvatne Yep just restarted my machine, with no terminal windows open and I must still run npm start manually before building with Xcode. @jaygarcia I seem to be able to type npm -v in any directory of my computer so I assume it is globally accesible |
There's been also an issue regarding that but I can't find it. Are you running Please check if you have it under Build Phases -> Run Script. |
I discovered the problem. One of the directories that the project folder was in had a space in its name. As soon as I removed the space, hitting command + R automatically ran the npm server! |
Yes I had faced the same issue. It's because of space in the directory name "Test One" - Doesn't work "The file /Users/konstantin/Desktop/Test One/TestMe/node_modules/react-native/React/One/TestMe/node_modules/react-native/packager/launchPackager.command does not exist. Steps to Reproduce:
Open Xcode project and hit build |
May be add double quotes to this line
|
+1 |
I am trying to run the react native application through Xcode, however, the development server does not seem to get started automatically. I must always type npm start at the project root before running in Xcode. Where am I going wrong?
The text was updated successfully, but these errors were encountered: