Issue
When you develop an App with Xcode on macOS you can test your app without the need for a cable. Once setup is done you can select your iPhone in Xcode and just hit the โถ๏ธ Button. The app starts directly on your device, no cable required.
However, sometimes Xcode seems to forget how to reconnect to your device. I haven’t figured out the exact circumstances but I figured out a workaround.
Fix
If connections fails or takes very very long, try this:
- Select an emulator (like iPhone 12 mini)
- Start your app on that emulator
- Wait for the Xcode debugger to connect (at least one line should be printed into the dev-console)
- Kill the emulator
- Select your device again
- Hit play, be happy