Livereload on iOS - App gets stuck on white screen with loading spinner
See original GitHub issueDescription:
When I execute ionic cordova run ios --device --livereload
, the app gets stuck on white screen with a loading indicator as seen in the image below.
Steps to Reproduce:
ionic start myApp blank --cordova
ionic cordova platform add ios
ionic cordova run ios --device --livereload
My ionic info
:
Ionic:
Ionic CLI : 5.1.0 (/Users/emre/.nvm/versions/node/v10.15.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.5.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.0, (and 5 other plugins)
Utility:
cordova-res : 0.3.0 (update available: 0.4.0)
native-run : 0.2.6
System:
Android SDK Tools : 26.1.1 (/Users/emre/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.15.3 (/Users/emre/.nvm/versions/node/v10.15.3/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001
Other Information:
I tried ionic cordova run ios --device --livereload --no-native-run
, but no luck.
What works for me is build and run the app with Xcode.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
livereload causes app to stall on splash screen (continuous ...
If I try to use livereload, it hangs on the splash screen - with the loading wheel spinning. Here is some info about...
Read more >Live reload iOS gets stuck on splash screen on both emulator ...
The server doesn't appear to be loaded when the app starts and it gets stuck on the splash screen.
Read more >Stuck on Spinning Wheel on iPhone X/XS/XR/11 ... - YouTube
Note that If this video was not helpful then you can also try Tenorshare Reiboot (https://bit.ly/3giXphd), an iOS sytem recovery tool, ...
Read more >Jokes App Tutorial - Remix
Jokes App Tutorial. You want to learn Remix? You're in the right place. Let's build Remix Jokes! Work through this tutorial with Kent...
Read more >Top 18 Most Common AngularJS Developer Mistakes - Toptal
Single page apps demand the front-end developers to become better software engineers. CSS and HTML are not the biggest concern anymore, in fact,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dwieeb I’ve just tested it with
--address=0.0.0.0
and I can confirm that it did the trick! I’m closing the issue now. Thanks.@accerpcom That’s an entirely different issue and was fixed in our starters here. There’s little we can do when Android changes security requirements between major versions. Anything that uses HTTP traffic will encounter that issue, Ionic is not alone here.
I believe the issue people are running into here is that deploying to devices with livereload requires
--address=0.0.0.0
for iOS. We need to document this requirement better, but the reasoning is listed in the breaking changes for CLI 5.I also created an issue in our Webview plugin repo for showing a message when it can’t connect: https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/381