Iphone 在iOS中,从连接到计算机的设备加载摄像头速度较慢
我收到以下警告:Iphone 在iOS中,从连接到计算机的设备加载摄像头速度较慢,iphone,objective-c,ipad,Iphone,Objective C,Ipad,我收到以下警告: 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 f
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
这是为什么?如何解决?此错误表示您缺少/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,以便通过打开Terminal.app并键入以下命令,将其复制到xcode正在查找的位置:
[ 16:01 root@MacBookPro / ]# 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 root@MacBookPro / ]# mkdir -p "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/"
然后:
选择2
再次下载xcode/developer工具,将其安装到/developer以外的位置,例如/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 root@MacBookPro / ]# cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
[ 16:01 root@MacBookPro / ]# ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 "4.3.5 (8L1)"
或者,只需通过运行/Developer/Library/uninstall devtools命令卸载xcode,然后下载并重新安装。我检查了,实际上有一个IOKit.framework。。。我尝试了选项3,似乎有4.3.5 8L1,但没有4.3.5
[ 16:01 root@MacBookPro / ]# cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/
[ 16:01 root@MacBookPro / ]# ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 "4.3.5 (8L1)"