Xcode 9.2 says my "iPhone has recently restarted" and won't run : <p>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.</p>

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

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