Hello, I'm currently debugging an app that connects to a WiFi access point created by an IOT device. This is impossible since the Wifi debug link with Xcode is then broken. How can I debug my app using USB only ? thanks.
Xcode debugging through USB
Presumably you are developing an app that runs on something other than a Mac? Connect the destination phone or iPad to the development Mac with a USB cable. The iPad/iPhone will ask if you want to trust the computer. Xcode will take a little while to make the iPad/iPhone ready for debugging. You can monitor its progress using Xcode's Window/Devices and Simulators menu.
I don't think there's any control over how Xcode begins debugging - it uses USB if there's a connection, WiFi otherwise. If I break the USB connection mid-session, Xcode does not fail over to WiFi automatically.