[英]How to wirelessly connect Apple devices (iPad or iPhone) to Xcode without connecting the device to the Macbook using USB cable?
I want to wirelessly debug my app. 我想无线调试我的应用程序。 How do I wirelessly connect my iPad to Xcode?
如何将iPad无线连接到Xcode? It is required of me to connect my device to my Macbook using USB cable first, but my USB port is not working at all and it is impossible for me to do so.
我需要先用USB线将我的设备连接到我的Macbook,但我的USB端口根本不工作,我不可能这样做。 I looked everywhere on the web but cannot seem to get it working.
我在网上到处寻找,但似乎无法让它正常工作。
Here is what I get when I go to Window -> Devices and Simulators: 这是我进入Window - > Devices and Simulators时得到的结果:
I tried clicking on "+" at the bottom left to see if my iPad connected: 我尝试点击左下方的“+”以查看我的iPad是否已连接:
Is there a way for me to connect my device using IP address? 有没有办法让我使用IP地址连接我的设备?
In the Xcode help documentation it states: 在Xcode帮助文档中,它指出:
Before you can launch your app on a wireless device, you must pair the device with Xcode.
在无线设备上启动应用程序之前,必须将设备与Xcode配对。
And then in the same documentation it gives instructions on how to pair the device where it states: 然后在同一文档中,它提供了有关如何将设备配对的说明:
Connect the iOS device to your Mac with a lightning cable.
使用闪电线将iOS设备连接到Mac。
So, in short, in order to get wireless debugging to work you have to connect the device using a wire the first time. 因此,简而言之,为了使无线调试工作,您必须首次使用电线连接设备。
AFTER you have paired the device with Xcode using a wire, you should see something like this (image taken from Apple's help docs) in Devices and Simulators. 在使用电线将设备与Xcode配对后,您应该在设备和模拟器中看到类似的内容(图像取自Apple的帮助文档)。
Enable wireless debugging with a paired device 使用配对设备启用无线调试
Once this pairing has taken place the device will show up in Devices and Simulators whether it is connected or not. 一旦完成此配对,设备将显示在设备和模拟器中是否已连接。
At this stage if the device does not connect automatically then there is a way to connect via ip address by right clicking on the device in Devices and Simulators: 在此阶段,如果设备未自动连接,则可通过右键单击设备和模拟器中的设备,通过IP地址进行连接:
Connecting to disconnected (paired) device via IP address 通过IP地址连接到断开连接(配对)设备
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.