Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 Wireless debugging not working

Tags:

xcode

ios

For some reason the wireless debugging does not work here. Here is what I've done:

  • Using newest Xcode 9
  • Using newest iOS 11 on my iPhone 7+
  • Both devices are in the same network
  • Connected the iPhone via Lightning, selected "Connect via Network" in the Devices & Simulator menu
  • Run an app on the iPhone while still connected via Lightning - everything works

But as soon as I unplug the phone, Xcode is no longer able to connect with the phone. I can ping the phone with the Mac, but even the "connect via ip" option in Xcode does not work.

Anybody got tips on how to get this working?

like image 809
user2529173 Avatar asked Sep 22 '17 06:09

user2529173


People also ask

What is wireless debugging?

You can run or debug an Android application directly to a real Android device using Wireless Network. This way you don't have to connect your device to a USB port all the time. This is specially useful and easier when developing on a Virtual Machine.


2 Answers

I had the same issue, but it was intermittent - i.e. sometimes the globe would not appear next to the phone name in Xcode Devices and Simulators window and when the phone was disconnected from the lighting cable, I could not debug to it from Xcode. My fix was much simpler, though - I just turned WiFi on and off both on the Mac and on the phone. After the devices reconnected to the network wireless debugging was available again. This seems to be an issue with the network communication (regardless whether the device can be pinged or not).

like image 65
Fuad Kamal Avatar answered Sep 23 '22 02:09

Fuad Kamal


Make sure System Preferences->Internet Sharing is enabled using USB ports:

Sharing is caring

like image 36
Matthew Korporaal Avatar answered Sep 21 '22 02:09

Matthew Korporaal