Troubleshooting:
- plug in your iPhone.
- Open Xcode
- go to
window->Devices and Simulators - Right click on your device
- click
Unpair Deviceand unplug it. - restart Xcode
- restart your iPhone.
- Connect your iPhone via USB
- run your app
- then unplug it, and it should run via the wifi again.
Set up
- Window -> Devices and Simulators

- Choose your device from the list.

- Tick the box for “connect via network.”
