ionic 4 - livereload does not work
Asked Answered
K

4

7

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

Kai answered 31/7, 2018 at 10:31 Comment(1)
Had the same problem, ran npm uninstall ionic, then ran npm i -g [email protected] and livereload is working again.Train
B
3

Try with below mentioned command

ionic cordova run ios --device -lcs
Bernal answered 25/12, 2018 at 7:10 Comment(0)
H
2

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

sudo ionic serve
Haland answered 25/12, 2018 at 6:24 Comment(1)
Work like a charm. Never think it could be on sudoParolee
T
0

Try to use this command

ionic cordova run browser --livereload --port=4200
Thompson answered 22/1, 2022 at 20:29 Comment(0)
C
-1
ionic cordova emulate ios --livereload --external
Counterpressure answered 18/11, 2020 at 12:23 Comment(1)
Welcome to Stack Overflow! While this code may answer the question, providing additional context regarding why and/or how this code answers the question improves its long-term value. How to answerGynecoid

© 2022 - 2024 — McMap. All rights reserved.