One of the features that were introduced with the release of Xcode 9 was Wireless Debugging.
Using Wireless Debugging you can run your iOS project over Wi-Fi without the need to plug in your device every time with a cable.
Before we start, your device needs to have a passcode to work wirelessly with the Xcode. To do that, go to your device Settings>Touch ID & Passcode, or if you have a device that supports Face ID, Settings> Face ID & Passcode
Now that your device is ready, plug it into your Mac with your cable and open Xcode.
Go to Window>Devices and Simulators
After that, in the new window, choose the Devices tab and check the box next to Connect via network.
After that, you’ll see an earth icon on the left column next to your device’s name.
And that’s it! Now remove the device from your computer and run your project!
If you have any questions, please feel free to leave a comment below