Xcode “Device Locked” When iPhone is unlocked

前端 未结 30 2124
失恋的感觉
失恋的感觉 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:35

    This happens at times while using Xcode 9.

    There are multiple solution to this as mentioned below :

    Note : Make sure that your device is not locked when Xcode is trying to install app.

    Solution 1 :

    i. Disconnect device and connect again

    Solution 2 :

    i. Restart you device

    Solution 3 :

    i. Disconnect device

    ii. Quit Xcode (Shortcut key : cmd + Q)

    iii. Open your project

    iv. Clean project (Shortcut key : cmd + shift + K)

    v. Now connect device

    vi. Run your project

    For me Solution 3 worked perfectly

提交回复
热议问题