Ionic 2 cli command " ionic emulate ios --livereload" not working on iOs 9
Asked Answered
M

2

1

So I am trying out Ionic 2. I found out this Ionic Cli command does not work:

ionic emulate ios --livereload

or

ionic emulate ios --lc

It show "Setup Live Reload" in the log but the app just hang in the opening splash screen. Can not find further error in the log (no error output), but the whole thing is frozen. It work without the -lc flag. So if I just run

ionic emulate ios

It works and the app launch. Anyone know a workaround for this? I am on iOs 9.3.

Mishnah answered 28/6, 2016 at 1:56 Comment(1)
Did you figure out a solution for this? I am running into same issue in xcode and the below solution doesn't work for me.Exact
N
1

I faced the same issue and these are the steps I followed:

  1. Open the root folder of the app.
  2. Find config.xml file.
  3. Look for the line <allow-navigation href="" />
  4. Change it to <allow-navigation href="http://YOUR_IP_ADDRESS:8100/" /> and save. Eg. <allow-navigation href="http://192.168.118.25:8100/" />
  5. Now run the ionic emulate ios -lcs command again.

This time it should work perfectly on your simulator.

Nonmaterial answered 21/7, 2016 at 1:3 Comment(2)
the application loads, but the changes at the code are not reloaded.Indissoluble
does not solve the problem for me. Livereload still does not work for me on ios or android after this.Lightman
M
0

excute ionic address first
then excute ionic emulate ios --livereload
after some step, you have to choose a IP. Choose what ever you want and it will work!

Moiety answered 17/11, 2016 at 2:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.