I want to wirelessly debug my app. How do I wirelessly connect my iPad to 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. 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:
I tried clicking on "+" at the bottom left to see if my iPad connected:
Is there a way for me to connect my device using IP address?
Before you can connect to your iOS device wirelessly, you must first pair it with your Mac by plugging it in with a Lightning cable. Once you do, check the box that reads Connect via network. Now you can disconnect your phone, and it will show up inside of the devices window, and as an option insider of Xcode as a destination to build your apps.
Before you can connect to your iOS device wirelessly, you must first pair it with your Mac by plugging it in with a Lightning cable. Once you do, check the box that reads Connect via network.
Use the button bar to turn on and select sync settings. Click Apply and your device appears via Wi-Fi in the Finder sidebar. Whenever your device connects to your Mac, the device’s icon appears in the sidebar. Select the device in the Finder sidebar to view or change syncing options.
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.
In the Xcode help documentation it states:
Before you can launch your app on a wireless device, you must pair the device with 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.
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.
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:
Connecting to disconnected (paired) device via IP address
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With