React-native: No bundle URL present on new project

Created on 17 Apr 2018  路  6Comments  路  Source: facebook/react-native

Environment

OS: macOS High Sierra 10.13.4
Node: 8.9.1
Yarn: 1.6.0
npm: 4.6.1
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.1 AI-173.4697961

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.2 => 0.55.2

Steps to Reproduce

react-native init testProject
cd testProject
react-native run-ios

Expected Behavior

Well I was expecting the app to run on the iOS emulator. I have tried at least 10 times, and 9/10 I get the same error with new projects.

Actual Behavior

simulator screen shot - iphone 6 - 2018-04-17 at 13 09 38

Sometimes there is also this error from the Metro Bundler:

Metro Bundler ready.

ERROR ENOENT: no such file or directory, lstat '/Users/xxxxx/Desktop/test/testProject/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTImageSource.o-041d4dcd'

Ran Commands For Stack Overflow Locked

Most helpful comment

same issues

All 6 comments

Please use Stack Overflow for this type of question.

same issues

Have you find any solution?

same issue. lanchPackager.command window hanging at Loading dependency graph, done.

I had the same issue and I was able to bypass it by run npm start before run react-native run-ios.

Same issue, and I solved by add three lines on host file.

Open hosts file: sudo code /private/etc/hosts (if you use VSCode)

Add three lines:

127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

Run react-native run-ios

Was this page helpful?
0 / 5 - 0 ratings