問題: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與手機設備的銜接訪問權限,選擇“信任”,
半途而廢了~~~
【Development cannot be enabled while your device is locked.】的相關資料介紹到這裡,希望對您有所幫助! 提示:不會對讀者因本文所帶來的任何損失負責。如果您支持就請把本站添加至收藏夾哦!