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- Plugged in your iPhone with USB cable (Just for the first time 🤣)

3- Open Window > Devices and Simulators
You should see your device as connected devices

wireless1wireless1

4- Select Devices from the top, Select your device from left and Check the “Connect via network” box

wireless2

5- Now if Xcode can connect to your device via a network, you should see a network icon after your phone name

wireless3
wireless3

6- Unplug your USB cord

7- Go back to Xcode and Hit the Run button