iOS无线真机调试
2018-09-11 本文已影响789人
fengshaobo
下午看到了一篇iOS无线真机调试的文章,正好没事,想试一下。
配置
主要步骤:
- 打开xcode,选择Window > Devices and Simulators
- 用数据线连接设备
- 选择 Connect via network
![](https://img.haomeiwen.com/i209177/6a3d4f8fdee7ccd4.png)
问题一
经过以上的步骤,发现并没有出现 wireless debugging icon,无线调试也不可用,查了下资料,尝试了下面方法,未果:
- 重启了xcode与iphone,
- 更换了无线网络
直到找到了下面这个可行的方式:通过蓝牙的方式进行链接
主要步骤:
- Turn on Bluetooth of your device.
- Turn on Bluetooth of your MAC.
- Pair up the MAC to the device Bluetooth.
终于出现了下面这个小图标
![](https://img.haomeiwen.com/i209177/e89fd977b4809e18.png)
问题二
运行Demo工程,卡到下面这一步:
![](https://img.haomeiwen.com/i209177/b5ca3d32e5fc8ce1.png)
解决办法:fix: iPhone is busy:Preparing Device...
调试
编译完成后,installing过程特别慢,经常漫长的等待,最后终于在设备上运行起来
![](https://img.haomeiwen.com/i209177/f82fbe4201d1591d.png)
总结
不知跟我的网络和设备有没有关系,本以为很简单的事情,也花费了一些时间。个人感觉:稳定性差,不实用,还是通过数据线的方式靠谱。