Real machine wireless debugging steps:
1. Connect the real machine debugging data cable, click on Xcode
the tool bar, click Window -> Devices and Simulators
to display:
selected Connect via network
, the default is not selected, then you will see a network ball icon on the left device.
2. Unplug the data cable connected to the real device. Note that there is no “ ” option when you click on the device on the leftConnect via IP Address...
, that is, you can’t see the status of the picture below . 3. You need to restart after unplugging the data cable Real machine, because it has been checked Connect via network
, so even if the data cable is disconnected, this real machine will be displayed
After running, I found that it couldn’t run. At this time, I went to Window -> Devices and Simulators
the middle right button of the real machine and found that there was already Connect via IP Address...
an option.
4. Click Connect via IP Address...
to enter the IP address of the mobile phone.
5. Check the IP address of the mobile phone: Settings->WLAN->Details. After obtaining the IP address, fill it into the address in step 4 and click connect. Wait for a while and the connection will be successful. 6.
Connect After success, a network dome logo will be displayed on the device, and you can directly debug wirelessly in the future.
Note:
1. The real device and the computer need to be connected in the same LAN. After the connection is successful, it will be automatically recognized in the future
; After the data line, it will not be displayed Connect via IP Address...
, and it will only appear after running the real machine again.