Skip to content
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

Error: "react-native run-ios" not working even for sample apps, AwesomeProject #9391

Closed
bluej-21 opened this issue Aug 13, 2016 · 14 comments
Closed
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@bluej-21
Copy link

I'm using a Macbook air to test run some application for ios. the react-native run-ios does not seem to work appropriately as I always get the "unable to connect to server... do npm start" error message as soon as I open up the app on the emulator.
I've tried this again for facebook's example app, AwesomeProject and I still got the same error.
The react-native version I am using is 0.30.0 and the react-native-cli is 1.0.0

@st0ffern
Copy link

@bluej-21
Copy link
Author

bluej-21 commented Aug 14, 2016

yes, I do. Also it seems like the packager is running, it'll display the "start" messages on the packager but it doesn't seem to display the "end" messages.

@tjfi222
Copy link

tjfi222 commented Aug 14, 2016

I also am having trouble running the AwesomeProject example. I've looked through every Github/Stack solutions and none of them work. Using fresh installs of literally everything.

:CFBundleIdentifier does not exist

Please advise!
.

@itinance
Copy link
Contributor

For me everything is working fine.
Have you tried to reset the packager?
node node_modules/react-native/local-cli/cli.js start --reset-cache

Or the hard way with reinstalling everything and restarting watchman also:
rm -rf node_modules/ && npm cache clear && watchman watch-del-all && npm i

Is network working well? Can you open the index.js-File in your browser?
Something like this: http://localhost:8081/index.ios.js?platform=ios&dev=true&minify=false

Anyhow, let's compare versions:

within the Project after "react-native init AwesomProject":

$ react-native --version
react-native-cli: 1.0.0
react-native: 0.31.0

$ node -v
v6.3.1

$ uname -a
Darwin macbook.fritz.box 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64

(OSX El Capitain Version 10.11.6 (15G31))

XCode Version 7.3.1 (7D1014)

@nicholasstephan
Copy link

I've run into this issue since upgrading to Xcode 8.

@ericvicenti
Copy link
Contributor

I'm on Xcode 8 and I haven't seen this problem yet. Is it still causing troubles for people?

@ericvicenti ericvicenti added the Platform: iOS iOS applications. label Oct 24, 2016
@ostigley
Copy link

ostigley commented Nov 1, 2016

I have a similar problem. I don't get an error; instead it just hangs. Nothing happens. Only since upgrading Xcode and OSX

UPDATE:
I discovered watchman was the problem. Fix here:
facebook/watchman#381 (comment)

@blackburnian
Copy link

Earlier today watchman was not reloading my JS when I made changes. Tried fresh install of watchman, react-native-cli, rebooting, etc. Now I’m experiencing a similar issue to @ostigley . In my current react native project when I run react-native run-ios, nothing happens. No errors. Just hangs.

Tried creating a new project with react-native init AwesomeProject, and this hangs as well.

@itinance I tried running node node_modules/react-native/local-cli/cli.js start --reset-cache, and this hangs as well.

Tried running rm -rf node_modules/ && npm cache clear && watchman watch-del-all && npm i, and this hangs on the watchman command.

So something seems to be wrong with my watchman. I might be related to the Xcode and or OS update (recently updated to macOS 10.12.1 and Xcode 8), but not sure.

watchman -v
4.7.0
react-native -v
react-native-cli: 1.2.0
react-native: 0.34.1
node -v
v5.7.1

Any ideas?

@ostigley
Copy link

ostigley commented Nov 2, 2016

@blackburnian I found the problem was with watchman. Fixed it here:
facebook/watchman#381 (comment)

@vikrampanwar
Copy link

I tried many github examples but non of them is working with latest react native installation, but my own made projects are working fine

@hepiska
Copy link

hepiska commented Jun 16, 2017

@vikrampanwar get same issue, have u update your node to node 8?

@hramos
Copy link
Contributor

hramos commented Aug 3, 2017

Let's merge this into a more recent issue, for clarity.

@hramos
Copy link
Contributor

hramos commented Aug 3, 2017

Duplicate of #14447

@hramos hramos marked this as a duplicate of #14447 Aug 3, 2017
@hramos hramos closed this as completed Aug 3, 2017
@hramos
Copy link
Contributor

hramos commented Aug 3, 2017

Duplicate of #14423

@hramos hramos marked this as a duplicate of #14423 Aug 3, 2017
@facebook facebook locked and limited conversation to collaborators Aug 3, 2017
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests