Ionic 2 cli命令“离子模拟ios --livereload“没有在iOs工作9 [英] Ionic 2 cli command " ionic emulate ios --livereload" not working on iOs 9

查看:118
本文介绍了Ionic 2 cli命令“离子模拟ios --livereload“没有在iOs工作9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在试用Ionic 2.我发现这个Ionic Cli命令不起作用:

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

ionic emulate ios --livereload

ionic emulate ios --lc

它显示安装Live Live Reload登录,但应用程序只是挂在开始的启动画面。在日志中找不到更多错误(没有错误输出),但整个事情都被冻结了。它没有-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

它可以运行并启动应用程序。有人知道解决方法吗?我在iOs 9.3上。

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

推荐答案

我遇到了同样的问题,这些是我遵循的步骤:

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


  1. 打开应用程序的根文件夹。

  2. 查找 config.xml 文件。

  3. 查找< allow-navigation href =/>

  4. 将其更改为< allow-navigation href =http: // YOUR_IP_ADDRESS:8100 //> 并保存。例如。 < allow-navigation href =http://192.168.118.25:8100//>

  5. 现在运行离子再次模拟ios -lcs 命令。

  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.

这篇关于Ionic 2 cli命令“离子模拟ios --livereload“没有在iOs工作9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆