Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic 4 - livereload does not work

Livereload on iOS device (ionic cordova run ios -l) with ionic 4 does not seem to work. It stuck at the initial loading at splash screen. I've tried with fresh project right after ionic start **** blank, it still does not work.

livereload on browser (ionic serve) and emulator (ionic cordova emulate ios -l) works fine.

ionic info:

Ionic:

   ionic (Ionic CLI)  : 4.0.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : ios 4.5.5

System:

   ios-deploy : 2.0.0
   NodeJS     : v8.11.3 (/usr/local/bin/node)
   npm        : 5.6.0
   OS         : macOS High Sierra
   Xcode      : Xcode 9.4.1 Build version 9F2000


Device info:
iphone X, iOS 11.4 (15F79)

does anyone have a clue of how to fix this?

Thank you

like image 274
Nanako Avatar asked Jul 31 '18 10:07

Nanako


People also ask

Does ionic support hot reload?

Remember ionic serve ? That was Live Reload working in the browser, allowing us to iterate quickly. We can also use it when developing on iOS and Android devices.

How do I run an ionic capacitor app on Android?

If you already have an Ionic project with Capacitor integrated, just run npx cap open to open Android Studio, and with a device plugged, do Run -> Run 'app' or click the green triangle button. Save this answer.


1 Answers

Try with below mentioned command

ionic cordova run ios --device -lcs
like image 109
paras shah Avatar answered Oct 06 '22 01:10

paras shah