Xcode 9无线调试无法正常工作 [英] Xcode 9 Wireless debugging not working

查看:593
本文介绍了Xcode 9无线调试无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,无线调试在这里不起作用。以下是我所做的:

For some reason the wireless debugging does not work here. Here is what I've done:


  • 使用最新的Xcode 9

  • 使用最新的iOS 11我的iPhone 7 +

  • 两个设备都在同一个网络中

  • 通过Lightning连接iPhone,在设备&中选择通过网络连接。模拟器菜单

  • 在iPhone上运行应用程序,同时仍通过Lightning连接 - 一切正常

  • Using newest Xcode 9
  • Using newest iOS 11 on my iPhone 7+
  • Both devices are in the same network
  • Connected the iPhone via Lightning, selected "Connect via Network" in the Devices & Simulator menu
  • Run an app on the iPhone while still connected via Lightning - everything works

但是一旦我拔掉手机,Xcode就再也无法连接手机了。我可以用Mac ping手机,但即使Xcode中的connect via ip选项也不起作用。

But as soon as I unplug the phone, Xcode is no longer able to connect with the phone. I can ping the phone with the Mac, but even the "connect via ip" option in Xcode does not work.

有人知道如何使用它?

推荐答案

我遇到了同样的问题,但它是间歇性的 - 即有时全球不会出现在Xcode Devices中的电话名称旁边和模拟器窗口,当手机与照明电缆断开连接时,我无法从Xcode调试它。我的解决方案要简单得多 - 我只是在Mac和手机上打开和关闭WiFi。设备重新连接到网络后,无线调试再次可用。这似乎是网络通信的问题(无论设备是否可以ping通)。

I had the same issue, but it was intermittent - i.e. sometimes the globe would not appear next to the phone name in Xcode Devices and Simulators window and when the phone was disconnected from the lighting cable, I could not debug to it from Xcode. My fix was much simpler, though - I just turned WiFi on and off both on the Mac and on the phone. After the devices reconnected to the network wireless debugging was available again. This seems to be an issue with the network communication (regardless whether the device can be pinged or not).

这篇关于Xcode 9无线调试无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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