Make sure you have at least Xcode 9 or later and a device with iOS 11 or later
1- Open your project on Xcode
2- Connect the iPhone to the USB cable.
3- Open window> Devices and simulators
You should see your device as a connected device.
4- Select the devices on the top, select the device on the left and check the box "Connect via network" 
5- Now, if Xcode can connect to your device through the network, you should see the network icon after your phone name

6- Unplug the USB cable
7- Return to Xcode and click Run

Viraj Padsala Sep 16 '17 at 5:11 2017-09-16 05:11
source share