2011-10-08 62 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