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.


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!

Try Out Code2care Dev Tools:


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, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

๐ŸŽ‰ We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.