Skip to content

Instantly share code, notes, and snippets.

@jazzedge
Last active January 27, 2018 17:53
Show Gist options
  • Save jazzedge/eb3a179517b57820d1bee4e9b3ab7528 to your computer and use it in GitHub Desktop.
Save jazzedge/eb3a179517b57820d1bee4e9b3ab7528 to your computer and use it in GitHub Desktop.
See:https://stackoverflow.com/questions/26791477/xcode-device-locked-when-iphone-is-unlocked
As is mentioned in several answers, the device is locked message is actually referring to the device not trusting the MacBook. In my case, I think my phone defaulted to not trusting my computer after updating to iOS 10. Here are the steps that worked for me to reset the settings (this is the same process that is mentioned in the Apple support page in tehprofessors' answer):
Disconnect your device from your MacBook
On your device go to Settings > General > Reset, then tap Reset Location & Privacy
Plug your device back into your computer, and on the device you will be prompted to trust the computer. Tap trust.
Rebuild in XCode and the device locked error should disappear.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment