question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic 4 - Ionic 5.0.0 CLI - Livereload to device not working - freezing at splash screen

See original GitHub issue

Description: I would like to be able to serve the app to my physical iPhone plugged into my Macbook with console logs to the terminal and not the DevApp. It appears by the docs and change logs that should be possible, but it was not getting past the splash screen. I have tried ionic cordova run ios -l, ionic cordova run ios --livereload, ionic cordova run ios --device -l --address=0.0.0.0, ionic cordova run ios --device -l --address=0.0.0.0 -disableHostCheck, etc. I was copying the exact commands from the CLI release note docs. I have tried with a physical device and simulator. The building is not the issue. It is when it goes to run it on the device that it hangs up. I am able to ionic cordova run ios no problem without live reload. I am also able to ionic cordova build ios and then open it in XCode and run it no problem there. It would be great to get this resolved and I would be happy to provide any info that is needed.

I finally got it to build and got things updated and installed and the Livereload is not working. For a while I was getting an error that said nodeModule is null. I resolved that issue and both ionic cordova run ios and cordova run ios are launching the app. When I try ionic cordova run ios -l or --livereload it acts like it is building and no errors but it hangs on the splashscreen and won’t go beyond that. I have been testing with this a majority of the day and has been difficult to nail down the issues. It also appears that the Legacy or New Build system in iOS is no longer important to it being able to build. I also tried the clearing the network settings on my iPhone and got a new Trust pop up that I accepted. It seemed to get closer after I did that but would stay loading on the splash screen. Yes I am using Angular.

I got it to at least get past the splash screen but only on iOS emulator, NOT device, and there is no console logging with any of it.

Output: Screen Shot 2019-06-04 at 3 47 53 PM

My ionic info: Ionic:

Ionic CLI : 5.0.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.4.2 @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.0.1, (and 4 other plugins)

Utility:

cordova-res : 0.3.0 native-run : 0.2.2

System:

Android SDK Tools : 26.1.1 (/Users/taylorkorensky/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.1 NodeJS : v10.15.3 (/usr/local/bin/node) npm : 6.9.0 OS : macOS Mojave Xcode : Xcode 10.2.1 Build version 10E1001

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
bnallmastercommented, Jun 5, 2019

With Ionic CLI 5.0.1 with this command, I was able to live reload and console log to my iPhone device connected to my computer. ionic cordova run ios -l --address=0.0.0.0 --consolelogs

Thanks!

7reactions
imhoffdcommented, Jun 4, 2019

@bnallmaster Let’s debug. I want to try to tackle the biggest issue first: getting past the splash screen.

Please try running ionic cordova run ios -l --no-native-run.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic Project Hanging on Splash Screen After Update
It just hangs on the splash screen. It doesn't throw any errors, just hangs. Has anybody experienced something like this before? Ionic: Ionic...
Read more >
Live reload iOS gets stuck on splash screen on both emulator ...
Hi all, I am having issues getting live reload to work after upgrading my macOS to Big Sur (11.4) and Xcode 12.5.1.
Read more >
Blog - Apache Cordova
This release contains small bug fixes, dependency updates and resolves some splashscreen issues. Plugin developers can now hook into the ...
Read more >
Cordova/Ionic Ios App Hangs On Splash Screen While ...
Ionic app stuck on splash screen android websql is depricated in ios 13 ... Ask questionsIonic 4 Ionic 5.0.0 CLI Livereload to device...
Read more >
ionic cordova_not_available | The AI Search Engine You Control
you need to test this code on actual device. this error will be removed then. or you can put a simple check about...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found