Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to debug application wireless or without connecting USB cable in XCODE?

how to connect device in xcode without cable. it is tedious to connect the cable and my USB is lil bit loose, so it disconnects from PC.

like image 389
Indrajit Chavda Avatar asked Aug 18 '15 05:08

Indrajit Chavda


People also ask

Can we connect iPhone to Xcode without cable?

Tick the checkbox and a network icon will be displayed toward the right of the device name. Thats it. Disconnect your device and now you can install or debug without using the cable.

How do I debug an app in Xcode?

To set up your breakpoint, you simply need to open a project in Xcode or Android Studio, and click close to the code line number. That's how it looks in Xcode. You'll see a blue arrow appear, indicating that the execution will pause when it reaches that point.


2 Answers

Over wifi installing and debugging of applications is not possible in ios.

But there are some websites where you can upload your builds and then download on device and test it.

WiFi debugging has never been supported in any public releases of Xcode yet.

  • There are third party hacks that may or may not work: https://github.com/Shopify/superdb

  • There also reports that this works with some workarounds: https://stackoverflow.com/a/7857052/361247

But officially, this isn't supported.

like image 119
Krunal Avatar answered Oct 23 '22 13:10

Krunal


It will be now possible with the latest update of Xcode 9.

Cut the Cord

Choose any of your iOS or tvOS devices on the local network to install, run, and debug your apps – without a USB cord plugged into your Mac. Simply click the ‘Connect via Network’ checkbox the first time you use a new iOS device, and that device will be available over the network from that point forward. Wireless development also works in other apps, including Instruments, Accessibility Inspector, Quicktime Player, and Console.

Check this for the latest updates.

like image 29
Parth Adroja Avatar answered Oct 23 '22 13:10

Parth Adroja