简体   繁体   English

如何在不使用USB线将设备连接到Macbook的情况下,将Apple设备(iPad或iPhone)无线连接到Xcode?

[英]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.

相关问题 有没有办法安装 ios 的应用程序,而无需从商店下载,或使用 USB 电缆和使用 xcode 将其连接到 PC? - Is there a way to install an app for ios without downloading it from stores, or connecting it to a PC using a USB cable and using xcode? 在没有Xcode和USB电缆的设备上运行正在开发中的ios应用 - Running ios app under development on devices without Xcode and USB cable 是否可以在XCODE中调试应用程序无线或不连接USB电缆? - Is it possible to debug application wireless or without connecting USB cable in XCODE? 如何在不注册Apple开发者计划的情况下使用Xcode 7在iPhone / iPad上运行应用程序? - How to run apps on iPhone/iPad using Xcode 7 without enrolling to Apple's Developer Program? 将iOS设备添加到Xcode的设备以进行调试/构建而无需使用电缆 - Add iOS device to Xcode's devices for debugging/building without cable 如何在插入或不插入电缆时检测iOS设备(无需向USB充电) - How to detect iOS devices when cable is plugged or not (without adding USB to the charge) 如何在不使用IDP的情况下使用SSH将Xcode应用程序复制到iPhone设备 - How to copy xcode app to iphone device using ssh without IDP 如何在不注册Apple开发人员计划的情况下使用Xcode 8在Real设备上运行应用程序? - How to run apps on Real devices using Xcode 8 without enrolling to Apple's Developer Program? 如何使用Xcode或Swift从iOS连接到USB设备 - How to connect to USB device from iOS with Xcode or swift 如何通过iPhone上的OTG电缆连接到数码单反相机 - how to connect to DSLR camera by OTG cable on iPhone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM