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


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

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


6- Unplug your USB cord
7- Go back to Xcode and Hit the Run button