

The device locked error should disappear.

Now reopen Xcode and rebuild the project.Plug your device back into your computer, and on the device you will be prompted to trust the computer.On your device go to Settings > General > Reset, then tap Reset Location & Privacy.Disconnect your device from your MacBook and close Xcode.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):

In my case, I think my phone defaulted to not trusting my computer after updating to iOS 10.

I received this error even when my phone was unlocked, and after unplugging and re-plugging in the device.Īs is mentioned in several answers, the device is locked message is actually referring to the device not trusting the MacBook. The exact error I received was: Development cannot be enabled while your device is locked. So, how did it go? Know of any other fixes? Do let us know in comments.I recently ran into this issue with XCode 8 just after updating my device from iOS 9 to 10. iTunes brings enough problems as it is, and having to deal with some stupid prompt that doesn't show up at the most inconvenient of times just compounds the issue. This is a common issue that you may get from time to time, and any one of the above fixes should work in resolving things. Hopefully, you should've got the 'Trust This Computer' pop-up and successfully established a connection between your iPhone or iPad and your computer. Once your network settings are reset, you should receive the 'Trust This Computer?' prompt on your iPhone or iPad, provided that you've worked your way through the other fixes as well. Step 1: On the Settings screen, tap General, and then tap Reset. Note: Keep in mind that any saved Wi-Fi networks and passwords, along with any VPN and APN settings, are completely removed when resetting network settings. If the 'Trust This Computer?' message shows up on your iPhone or iPad, tap Trust. If you have a new update available, proceed with installing it.Īfter applying any updates, restart your computer and relaunch iTunes. To check for updates, click Help on the iTunes menu bar, and then click Check for Updates. Therefore, make sure that you have the most recent version of iTunes running on your PC or Mac. expand to Portable Devices > Apple iPhone right click and select Update Driver. Update iTunesĪn outdated version of iTunes may cause connection issues and prevent the 'Trust This Computer?' prompt from showing up. Keep iPhone plugged in to your computer open device manager (type devmgmt. If that didn't work, let's look at what you can do next. In that case, simply disconnect and reconnect the device to your computer.Īlso, it’s a good idea to do this while iTunes is actively launched on your PC or Mac. If you connected your iPhone or iPad while your PC or Mac was booting up, there’s a chance for the 'Trust This Computer?' prompt to glitch out. Also Read: How to Quickly Transfer Videos or Music to iPhone Using VLC, Without iTunes Disconnect and Reconnect
