-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
App hangs on boot, iOS 12.2 #24023
Comments
Little Update: When loading the app onto the device via When loading via xcode, the app loads, hangs for about ~30s then loads the app from what i'm assuming is
EDIT: The above errors not relevant to the issue as noted here: #21030 |
The issue appears to be when my system is connected to Wi-Fi and Ethernet, which are on two different networks. If Ethernet is disabled, app works as expect, but if Ethernet is enabled, even if it has a lower network priority it doesn't connect. There also doesn't appear to be a option to change to the IP to connect to, nor does it log the IP in xcode any more. |
@dotconnor thanks for reaching out. Can you post what your AppDelegate.m looks like? Is it exactly the same as the init template? |
@patrickkempff Yeah, it should be the same as the template.
|
@dotconnor what happens when you load |
@patrickkempff The packager correctly binds to
But connecting to the ethernet interface (en0), results in connection error (as expected) |
can you try to change:
to:
does that yield better results? |
Yep! That works. Thanks! But maybe allowing to set an IP manually should be a little bit more simipler than modifing
|
@dotconnor very nice 👍 If you have any idea's on how to improve this mechanism, a PR would be really awesome! Would you mind and help us all to improve this by submitting a PR? 🥇 |
thank you @patrickkempff that solved. sorry @dotconnor i didnt understand your solution, i dont have much xcode or RN knowledge (yet :) ) |
@patrickkempff which IP should I use if I debug on my device via a cable from xcode? |
🐛 Bug Report
When opening in the app (at least in dev mode) the app will hang for a few minutes, then produce some errors then load.
Errors:
To Reproduce
react-native init demo
react-native run-ios --device
Expected Behavior
App doesn't hang on boot.
Environment
The text was updated successfully, but these errors were encountered: