Xcode 9.2 says my "iPhone has recently restarted" and won't run Xcode 9.2 says my "iPhone has recently restarted" and won't run xcode xcode

Xcode 9.2 says my "iPhone has recently restarted" and won't run


Unpair the device and pair it again from xcode -> Window -> Devices will solve this issue.

Posted as answer after the confirmation from @brettf.


Just to clarify:

  1. Unplug device

  2. In Xcode, windows -> devices and simulators

  3. Right-click the device shown in the left pane. Select 'Unpair device'

  4. Plug in device

  5. Follow the prompts on the iPhone and Mac


I just encountered this problem for Xcode 12(both release and beta version), the unpair and repair solution does not resolve, so I reset all settings(Settings -> General -> Reset -> Reset All Settings), and then the problem solved.