In the case of no data line around, can we carry out real machine debugging? The answer is yes. The real machine must meet the following two conditions:

1. The computer and mobile phone are under the same WIFI;

2. Mobile devices must have previously trusted computers and been configured for remote debugging

How to Configure

1. Connect the phone with data cable, open Xcode, and select WIndow -> Devices and Simulators as shown below

2. Select Show as run destination and Connect via network, and check whether the corresponding identifier is displayed in the list on the left. If yes, the configuration is successful. As shown in the figure below

After successful configuration, the device you configured will appear in the debugging bar without using the data line connection, which can be debugged using the real machine

If the configuration is not successful, check:

1. Whether the computer and mobile phone are connected to the same WIFI;

2. Whether the mobile phone trusts the current computer side;