ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Not work livereload after adding platform ios

Open jgw96 opened this issue 10 years ago • 8 comments

From @tenorok on April 15, 2016 21:26

Short description of the problem:

Not work livereload after adding platform ios.

What behavior are you expecting?

Livereload should work.

Steps to reproduce:

$ ionic start blankApp blank
$ cd blankApp/
$ ionic platform remove ios // It's important step!
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios --livereload

After that will launched simulator, in which infinitely spinning load indicator. 2016-04-16 0 15 10

But just emulate without livereloading work well:

$ ionic emulate ios

Run ionic info from terminal/cmd prompt: (paste output below)

Your system information:

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.7.1
Xcode version: Xcode 7.3 Build version 7D175

Copied from original issue: driftyco/ionic#6184

jgw96 avatar Apr 19 '16 05:04 jgw96

From @jacobdr on April 17, 2016 18:12

I have seen a similar issue, but with ionc@beta and using Typescript, when running ionic emulate ios -s -c -l.

Your system information:

Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.4
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.10.1
Xcode version: Xcode 7.3 Build version 7D175

I chalked it up to the fact that fancy things like livereload are want to break at the bleeding edge. However, curious to see if maybe it is an OS X config issue and might be able to get my issue fixed as well.

jgw96 avatar Apr 19 '16 05:04 jgw96

From @jacobdr on April 17, 2016 22:10

Also worth noting that I am seeing the same behavior on live-reload when using ion run ios

jgw96 avatar Apr 19 '16 05:04 jgw96

Hello! Thanks for opening an issue with us! So since this issue is related to the ionic cli and not the framework i will be moving this issue over to that repo. Thanks again!

jgw96 avatar Apr 19 '16 05:04 jgw96

+1

kabus202 avatar Apr 21 '16 12:04 kabus202

Is there any workaround for this problem?

kabus202 avatar Apr 26 '16 07:04 kabus202

A possible workaround: (I tested it for Android)

The trick is to share internet connection from my device (connected to the wifi) to my PC through USB.

It is able to find the address and livereload works as expected. It works well for me at least until this problem gets fixed.

Your system information:

Cordova CLI: 6.1.1 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.6 Ionic CLI Version: 2.0.0-beta.25 Ionic App Lib Version: 2.0.0-beta.15 OS: Windows 8.1 Node Version: v4.1.0

ggardiles avatar May 08 '16 23:05 ggardiles

For iOS, I've succeeded adding this line to config.xml:

<allow-navigation href="http://localhost:8100/*"/>

I found the answer at #605

I think #826 is related

jordipuig avatar May 20 '16 08:05 jordipuig

+1 for @jordipuig his solution worked for me, just had to add --address localhost to the ionic emulate ios -l command

alphashuro avatar May 24 '16 07:05 alphashuro