Xcode cannot launch because the device is locked.

When you plug in your iPhone, it will ask you to trust the computer. If you already trust and unlocked but still said your device was locked (bug). Just unplug and plug again then it will work

拔掉数据线  重新连接 就好了。

原文地址:https://www.cnblogs.com/KiVen2015/p/5394561.html