Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am making an app in Xcode 9.2 and trying to run it on my iPhone (5S running iOS 11.2.1), Xcode compiles the application fine (I can run it in the simulator) but it does not run on my iPhone.

When I try to run it on my iPhone it just says "iPhone has recently restarted" and "Xcode will continue when iPhone is unlocked." Now, my phone has not recently restarted and I tried unlocking the phone and restarting it but neither works. I also tried restarting Xcode.

Is anyone else getting this "recently restarted" error? Is there anything I can do about it?

like image 387
brettfazio Avatar asked Dec 27 '17 01:12

brettfazio


2 Answers

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

Posted as answer after the confirmation from @brettf.

like image 94
RJV Kumar Avatar answered Oct 12 '22 05:10

RJV Kumar


if you using vpn services, then you need to turn off vpn. It will help

like image 14
Artsem Sharubin Avatar answered Oct 12 '22 04:10

Artsem Sharubin