Development cannot be enabled while your device is locked.

问题:Development cannot be enabled while your device is locked.


分析原因:由于第一次连接MAC时,在iOS设备上点击了"不信任"选项,所以XCode 8不能访问手机,所以才出现这个问题


解决方法:

英文好的同学,可以看到原文章

http://stackoverflow.com/questions/26791477/xcode-device-locked-when-iphone-is-unlocked


以下我说下方法

这是APPLE官网的解释

https://support.apple.com/en-us/HT202778


重点是这段

Change your settings for trusted computers

Your iOS device remembers the computers you've chosen to trust.

If you don't want to trust a computer or other device anymore, change the privacy settings on your iPhone, iPad, or iPod touch: In iOS 8 or later, tap Settings > General > Reset > Reset Location & Privacy. Now when you connect to formerly trusted computers, the Trust alert will ask you whether you trust that computer. 

意思是说重置隐私设置

点击 设置 --> 通用 --> 重置  --> 重置位置和隐私 


然后关闭xcode 8, 拔掉数据线,重启xocde 8开启项目, 重新插上数据线,此时手机上会显示mac与手机设备的连接访问权限,选择“信任”,

大功告成了~~~ 

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值