2011-10-08 60 views
0

我收到以下警告:裝載相機連接到電腦中的iOS

warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/IOKit.framework/IOKit (file not found). 
warning: No copy of IOKit.framework/IOKit found locally, reading from memory on remote device. This may slow down the debug session. 
warning: Tried to remove a non-existent library: /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/IOKit.framework/IOKit 

這是爲什麼?如何解決這個問題?

回答

0

此錯誤說明您缺少/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/IOKit.framework框架。您是否安裝了xcode/developer工具的其他副本?如果是這樣,您可能需要複製此版本的設備支持。


選項1

這個框架通常是/System/Library/Frameworks/IOKit.framework可用(如果它不存在使用此命令找到它:find /System -type d -name "IOKit.framework"find /Developer -type d -name "IOKit.framework"),這樣你就可以將它複製到您的Xcode正在尋找通過開放Terminal.app和輸入:

[ 16:01 [email protected]/]# sudo cp -rv /System/Library/Frameworks/IOKit.framework "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/IOKit.framework" 

如果失敗,是因爲沒有/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)目錄,那麼你可以做什麼是這樣的:

[ 16:01 [email protected]/]# mkdir -p "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/" 

然後:2再次

下載Xcode中/開發工具

[ 16:01 [email protected]/]# sudo cp -rv /System/Library/Frameworks/IOKit.framework "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/IOKit.framework" 

選項,將其安裝到的東西,除了/Developer,如/Developer-4.2,然後複製目錄/Developer-4.2/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)


選項3

照照/Developer/Platforms/iPhoneOS.platform/DeviceSupport/目錄,可能還有其他的版本,但沒有4.3.5 (8L1)。如果有4.3.5但沒有4.3.5 (8L1)那麼你可以做的是使兩者之間的符號鏈接在期限以下命令:

[ 16:01 [email protected]/]# cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 
[ 16:01 [email protected]/]# ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 "4.3.5 (8L1)" 

或者,只是通過運行/Developer/Library/uninstall-devtools命令卸載Xcode中,然後下載並重新安裝。

+0

我檢查,實際上有一個IOKit.framework ...我試着做選項3,似乎有4.3.5(8L1),但不是4.3.5 – xonegirlz