昨天?更新了系統(tǒng)性含,今天進行項目調(diào)試時報了這個問題:Development cannot be enabled while your device is locked.
分析原因:由于第一次連接MAC時绊袋,在iOS設(shè)備上點擊了"不信任"選項癞埠,所以XCode 8不能訪問手機买羞,所以才出現(xiàn)這個問題
解決方法:
英文好的同學忍捡,可以看到原文章
http://stackoverflow.com/questions/26791477/xcode-device-locked-when-iphone-is-unlocked
以下我說下方法
這是APPLE官網(wǎng)的解釋
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.
意思是說重置隱私設(shè)置
點擊 設(shè)置 --> 通用 --> 重置 ?--> 重置位置和隱私
然后關(guān)閉xcode 8, 拔掉數(shù)據(jù)線譬涡,重啟xocde 8開啟項目合蔽, 重新插上數(shù)據(jù)線怀骤,此時手機上會顯示mac與手機設(shè)備的連接訪問權(quán)限费封,選擇“信任”,
大功告成了~~~