Fix - Unlock iPhone to Continue. Xcode cannot launch App on iPhone because the device is locked.


Unlock iPhone to Continue - Xcode cannot launch error

Unlock iPhone to Continue

Xcode cannot launch App on iPhone because the device is locked.


If you are trying to build and run an application that you are building using Xcode on your Macbook device, you may get this error if the iPhone/iPad device that you have connected to your computer is locked. It may so happen that by the time the build is done your device got locked.


Solution:

Simply unlock your phone and run the app - it should get installed and get displayed!

⚠️ You can also increase the auto-lock time to make sure that your phone does not go into idle mode too soon. You can do so by doing the below -

  1. Go to Settings on your iOS device,
  2. Go to Display & Brightness,
  3. Change Auto-Lock time from 30 seconds to what you want it to be!




Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.