Xcode“设备锁定”当iPhone解锁时

本文翻译自:Xcode “Device Locked” When iPhone is unlocked

When I tried to build and run, Xcode said my device was locked. 当我尝试构建和运行时,Xcode表示我的设备已被锁定。 I looked at my iPhone, and it's not locked at all. 我看着我的iPhone,它根本没有锁定。 How do I fix this? 我该如何解决?


#1楼

参考:https://stackoom.com/question/1OpGB/Xcode-设备锁定-当iPhone解锁时


#2楼

Did you by chance not "trust" the device? 你偶然不“信任”这个设备吗? This will prevent it from communicating with xcode even if the device is unlocked. 这将阻止它与xcode通信,即使设备已解锁。

Update here's a support doc from Apple: http://support.apple.com/en-us/HT5868 这里更新来自Apple的支持文档: http//support.apple.com/en-us/HT5868


#3楼

When you plug in your iPhone, it will ask you to trust the computer. 当您插入iPhone时,它会要求您信任计算机。 If you already trust and unlocked but still said your device was locked (bug). 如果您已经信任并解锁但仍然说您的设备已被锁定(错误)。 Just unplug and plug again then it will work 只需拔下插头再插上即可


#4楼

My phone was set to "trust" the Mac, and I still ran into this error with Xcode 6.1.1. 我的手机设置为“信任”Mac,我仍然遇到了Xcode 6.1.1的这个错误。

This worked for me: 这对我有用:

  • unplug device 拔掉设备
  • quit xcode 退出xcode
  • open xcode 打开xcode
  • plug in device 插入设备
  • build/run 构建/运行

#5楼

I ran in to the same issue even though i selected "Trust this computer" option first time. 即使我第一次选择“信任这台电脑”选项,我也遇到了同样的问题。

This worked for me 这对我有用

  1. Lock the device 锁定设备
  2. Remove cable from device. 从设备上拔下电缆。
  3. Unlock the device 解锁设备
  4. Connect again to Mac 再次连接到Mac

#6楼

These steps worked for me in iOS 10. 这些步骤适用于iOS 10。

  1. Remove the cable from device. 从设备上拔下电缆。
  2. Plug in the device. 插入设备。
  3. Clean and build the Xcode project. 清理并构建Xcode项目。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值