-
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
NSInternalInconsistencyException: bundleURL must be non-nil when not implementing loadSourceForBridge #9206
Comments
I have the same problem ~ |
Please refer to the accepted answer for this question on stackoverflow. Looks like the IP detection for the ios bundle has been automated due to which the two options were removed and there is just one now. |
@varungupta85 Thank you,I have resolved the problem follow your advice.
|
I sometimes get this error when using the development bundle (served by the packager). Restarting the packager fixes it. |
I solved by turning off WiFi in my mac and turning it on. Same on the iPhone. |
just using this solved my problem. |
None of these solutions worked for me when using:
@nevernet had the best suggestion. Go back to "old school" - it still works and I can debug again!
|
We were able to fix this without changing the jsCodeLocation code. It turns out that rn looks up the localhost ip either in the hosts file or because of the hosts file, I'm not good enough to read the Obj C to figure out exactly what its doing. I don't explicitly set localhost in our hosts files, as DNS will resolve it anyways, but because it isn't explicitly stated as So the solution was to add the localhost line to the hosts file, and the error went away, without changing the scheme to release and without hardcoding the old jsCodeLocation code. I will say that it is also possible some people who do have the localhost line explicitly set in the hosts file may be having issues because the hosts file has been corrupted or is encoded incorrectly. I've read a bunch of places while hunting for the solution to this problem that osx fails to read the hosts file if it has those issues. I've updated the so question here as well with what I've found http://stackoverflow.com/questions/38780325/running-react-native-app-on-ios-device-using-offline-bundle/40730709#40730709. |
thanks for the tip @aleclarson 🎉 |
Still getting the same error. Tried all of it. Can someone help? Dec 12 18:34:41 tw-mbp-stelang logd[6406] : metadata shared cached uuid is null (using logd's shared cache info) AwesomeProject (11002) |
I got this when migrating a native project over to react native: check that the following is in your info.plist (right click it and edit as source).
Note, i did not have to "Go back to old school" - i'm still using |
I am using
react-native 0.31.0-rc.1
. I am observing the error in iOS on Mac.I recently update
react-native
on my app to the latest and started to get this error (detailed error below). This only happens when I try to run the app on the phone by usingOption 2
which is to load using a static bundle. I have tried:Error in Xcode
I can see that this problem is printed here in the code but I am a beginner at best in native iOS development and don't know how to fix this problem.
Please help me in fixing this problem. Thanks!
Code in AppDelegate.swift file
As you can see, I have commented out
Option 1
and uncommented out 'Option 2. The jsCodeLocation is printed as nil. I have run the same app this way on the device like 100 times when I was using
react-native 0.24.0`. I have not made any changes to the code and I started to see this error after the upgrade.I have also asked this question on stackoverflow but since I was not getting any responses, I thought I will raise an issue here as well
The text was updated successfully, but these errors were encountered: