Detailed explanation of Xcode 9 setting IOS wireless real machine debugging


This article mainly introduces the debugging of Xcode 9 setting IOS wireless real machine, and shares it with you as follows:

Environmental requirements:

  1. At least Mac OSX 10.12.6
  2. iOS 11
  3. Xcode 9

The first case

Before I wrote, MAC and iPhone were connected to the same router, that is, the same LAN, through WiFi. This situation requires relatively simple operation.

Next, do the following:

1. “Own project” – > windows – > device and simulators, open the device and simulator interface

Device and Simulators

After the iPhone processing is completed, the figure is as follows:

Device and Simulators

2 check connect via network

Device and Simulators

It can be seen that a reticulated sphere appears on the left side, and the real machine debugging can be carried out at this time

On the basis of displaying the mesh sphere in the second step, remove the check of connect via network and check again. The mesh sphere will no longer be displayed. What we need to make sure is to unplug the cable, as long as we can select the real machine in Xcode

The second situation

Here is a Mac wired connection, and then create a hotspot. The iPhone connects through the hotspot, and the Mac and iPhone form a local area network. Someone has written the specific steps for this situation, which will not be described here


System version problem

4G and wireless issues

In addition, I found that after the iPhone is connected to WiFi, if it is plugged in, the WiFi in the status bar cannot be displayed, but the mobile network 4G will be displayed. I don’t know whether it is a bug or just like this

Unconnected line

Connecting line

The above is the whole content of this article, I hope to help you learn, and I hope you can support developer more.