Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to wirelessly connect Apple devices (iPad or iPhone) to Xcode without connecting the device to the Macbook using USB cable?

Tags:

ios

iphone

ipad

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:

enter image description here

I tried clicking on "+" at the bottom left to see if my iPad connected:

enter image description here

Is there a way for me to connect my device using IP address?

like image 685
jamryu Avatar asked Dec 10 '17 23:12

jamryu


People also ask

How do I connect my iPhone to Xcode wirelessly?

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.

How do I connect my iOS device wirelessly to my Mac?

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.

How to sync devices on MacBook Air with WiFi?

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.

How to enable wireless debugging in Xcode?

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.


1 Answers

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

like image 135
Helam Avatar answered Nov 15 '22 08:11

Helam