As recently Apple rolled out iOS11 and Xcode-9, we can now debug apps on devices without connecting devices to Xcode through USB.
We can take advantage of wireless debugging feature added to this Xcode-9.
To enable wireless debugging, we have to configure some steps in Xcode.
1 First connect the device running iOS11 to the Xcode-9.
2 Go to Window > Devices and Simulators in Xcode menus and under Devices tab connected device will be listed.
3 Then check the checkbox named Connect vis network as in this picture:
(Image courtesy: Surjeets' SO post)
4 Then disconnect your device from USB cord, make sure iPhone/iPad/iPod device and Mac running Xcode are in same wireless network.
5 In Xcode you will see this devices listed and you can directly run your app on that device.
We can perform all the operations with Xcode on that device same as if it is connected using USB; except that we can not see logs if app is run using Xcode, put it in background and suspended in background state and we launch it again. This is possible with USB debugging.
NOTES:
1 We have to use Xcode-9, iOS 11 running on device
2 Both device and Mac should on same wireless network