Xcode “Device Locked” When iPhone is unlocked

前端 未结 30 2368
失恋的感觉
失恋的感觉 2021-01-29 18:53

When I tried to build and run, Xcode said my device was locked. I looked at my iPhone, and it\'s not locked at all. How do I fix this?

30条回答
  •  不要未来只要你来
    2021-01-29 19:34

    I run into this problem quite often (at least like 5 times a week). Almost every time this happens, a Xcode restart fixes it. But this time nothing seemed to work including:

    • Restarting Xcode;
    • Unplugging and re-plugging the iPhone;
    • Cleaning the project (cmd+shift+k);
    • Cleaning derived data (cmd+option+shift+k)

    Done dozens of times in all sorts of different orders.

    What fixed the issue for me this time was simply:

    ✅ Rebooting the Mac.

提交回复
热议问题