Run and emulate ios with live reload not working in iOS9

Same here, I’m having this kind of issue.
So I’ve stopped using for a while.

Ok, I got it working with a combination of all answers :smile:

npm install -g cordova
cd my_project
cordova platform update ios@3.9.2

Then
go to xcode 7.1 ->Preferences ->download -> download iOS 8.4 Simulator

Then I did not remove any simulator from Simulator ->HArdware ->Device-> Manage Devices
However, I gave the following command a try

ionic emulate -l -c --target=‘iPhone-5s, 8.4’ --debug ios

It worked perfectly fine. and to test that I change my source code and changes got reflected in the simulator live reload :slight_smile:

I know its kind of weird it did not work for @telekosmos :wink:

3 Likes

try

ionic run ios -l -c --address localhost

5 Likes

Works like a charm, thanks

Was this ever fixed?

what is fixed? I still cannot start an 8.4 version like :
ionic run ios --target “iPhone-5, 8.4” on El Capitan.
localhost as address does not work either (without other mod), nor does :
ionic emulate -l -c --target=‘iPhone-5s, 8.4’ --debug ios
that gives me:
No target specified for emulator. Deploying to iPhone-6s-Plus, 9.2 simulator

I hope there will be a structural fix in the future, for now I will debug on Android, which nicely shows console output in the terminal and responds to restart commands at least once :slightly_smiling:

still not working for me I’m getting crazy of this shit.

I’ve been running into the same issue and for me adding the following to my config.xml file fixed the problem for using live reload on the emulator (still hangs when using live reload on an actual device though):

<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />
8 Likes

Nowhere in the documentation does it say to add the plugin to config.xml:

This very much worked for me for emulate. *high five8

While this would definitely work, all you really need to do is whitelist your dev server. It’s most likely localhost, but it could be different so run ionic run --livereload and it’ll show you something like this:

Setup Live Reload
Running live reload server: http://10.1.10.10:35729
Watching: 0=www/**/*, 1=!www/lib/**/*
Running dev server:  http://10.1.10.10:8100

Whitelist your dev server by adding

<allow-navigation href="*://10.1.10.10*"/>

to config.xml and livereload should work.

1 Like

Thanks you save my life.