Nanako
Nanako

Reputation: 153

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

Upvotes: 7

Views: 5395

Answers (4)

AlexKh
AlexKh

Reputation: 546

Try to use this command

ionic cordova run browser --livereload --port=4200

Upvotes: 0

Kushal Apex
Kushal Apex

Reputation: 1

ionic cordova emulate ios --livereload --external

Upvotes: -1

chraz
chraz

Reputation: 134

A workaround is to run ionic serve from a sudoer user.

sudo ionic serve

Upvotes: 2

paras shah
paras shah

Reputation: 889

Try with below mentioned command

ionic cordova run ios --device -lcs

Upvotes: 3

Related Questions