I am trying to build an app onto my iPhone using Xcode 14.
The app builds correctly and launches on an Simulator no problem. However, when I attach my iPhone 13 in the code device window it comes up as 'iPhone has recently restarted'. When I then run the app I get an error stating: 'The run destination iPhone is not valid for Running the scheme. iPhone has recently restarted Xcode will continue when iPhone is unlocked.'
The phone has not recently restarted and is fully unlocked.
I saw this was a common issue with Xcode 9, but none of the suggestions for that issue are resolving things on Xcode 14 (e.g. unpair and repair the device). Anyone know how to solve this?
This started to happen to me recently. It is solved every time for me by disabling VPN on the phone.