遇到一個棘手的問題,原以為重開筆電或手機就可以解決,沒想到會需要點技巧!
想透過iTunes存取iPhone,但是出現以下訊息:
iTunes could not connect to this iPhone. Could not allocate a resource.
想透過Xcode編譯App安裝到iPhone上,不過出現如下訊息:
Your iPhone is not available. Please select a different device and try again.
原來是系統出現問題,原本還想拿去Apple Store讓專業服務人員幫我解決,剛拿到1週的Macbook Pro居然會出現問題,著實讓人驚訝~不過身為一個專業的軟體設計師,還是可以透過網路上的文章來一一解析問題根源⋯⋯
最後,終於找到一個部落格,底下有許多苦主的感謝留言!從2012年到2016年都有人遇到此問題,那麼就趕緊來try一下唄~
Mac OS X上操作流程如下:
- Disconnect all iOS devices from your computer and quit iTunes.
- From the Finder, choose Go > Go to folder.
- Type the following and then press Return:
/var/db/lockdown - Choose View > as Icons.
- The Finder window should display one or more files with long alphanumeric file names.
- In the Finder, choose Edit > Select all. Then, choose File > Move to Trash. Enter an administrator password if prompted.Note: Do not delete the Lockdown folder itself. Delete only the files contained inside the Lockdown folder.
- Reconnect your iOS device and open iTunes.
lockdown資料夾有奇妙的東西,所以全部都要刪除掉XD~
很神奇的事情發生,我總算可以把我自己寫的App安裝到iPhone上囉~
參考:iTunes could not connect to this iPhone. Could not allocate a resource.、OS X Yosemite: 若您沒有權限來打開檔案或檔案夾。
隨意留個言吧:)~