IOHIDFamily的神秘控制台错误 [英] Mystery console error with IOHIDFamily

查看:267
本文介绍了IOHIDFamily的神秘控制台错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的一个项目,每次在iOS模拟器中运行构建时,Xcode控制台中都会出现此错误消息。它已经发生了一年多,我认为它最终会消失Xcode的更新。我已经取消引用并重新链接了所有的框架,我没有明确地从IOHIDFamily中调用任何东西,不管是什么!它似乎并没有影响我的程序执行,但我真的想弄清楚为什么它每次都会转储所有这些。

For one of my projects, this error message in Xcode's console happens every time I run a build in the iOS Simulator. It's been happening for over a year and I thought it would eventually go away with an update to Xcode. I've dereferenced and relinked all the Frameworks and I am not explicitly calling anything from the IOHIDFamily, whatever that is! It doesn't seem to affect my program execution but I would really like to figure out why it dumps all this every time.

2015-04-21 18:20:13.997 Vector-Z_beta[12370:1453236] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib:  dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found.  Did find:
    /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for iOS simulator
2015-04-21 18:20:13.997 Vector-Z_beta[12370:1453236] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x78da9a80 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)
2015-04-21 18:20:13.997 Vector-Z_beta[12370:1453236] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib:  dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found.  Did find:
    /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for iOS simulator
2015-04-21 18:20:13.997 Vector-Z_beta[12370:1453236] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x78da9a80 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)
2015-04-21 18:20:13.998 Vector-Z_beta[12370:1453236] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib:  dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found.  Did find:
    /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for iOS simulator
2015-04-21 18:20:13.998 Vector-Z_beta[12370:1453236] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x78da9a80 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)
2015-04-21 18:20:13.998 Vector-Z_beta[12370:1453236] Error loading /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib:  dlopen(/System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib, 262): no suitable image found.  Did find:
    /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib: mach-o, but not built for iOS simulator
2015-04-21 18:20:13.998 Vector-Z_beta[12370:1453236] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x78da9a80 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)


推荐答案

部署到真实时您正在为ARM体系结构构建的iOS设备,在部署到为x386体系结构构建的iOS模拟器时。

When deploying to a real iOS device you are building for an ARM architecture, when deploying to the iOS simulator you are building for an x386 architecture.

在后一种情况下,您的应用程序链接到mach-o Mac上存在的文件(除非有人建议你只链接SDK程序集,而不是原生的Mac程序集,但这确实会降低你的构建速度,并且在我认为最新的Xcode版本中不再是一个可用的选项)。

In the latter case your app links with mach-o files present on your Mac (unless as someone suggested you only link with SDK assemblies, not native Mac ones, but this will really slow down your build and isn’t an available option anymore in recent Xcode versions I believe).

显然,其中一个mach-o文件--IOHIDFamily扩展名,如果将GameKit.framework链接为库,似乎是链接的 - 不是专门为iOS模拟器。因此,消息。
据我所知,这是一个确认的Apple漏洞,Apple将在某些时候修复。

Apparently, one of these mach-o files - the IOHIDFamily extension one, which seems to be linked if GameKit.framework is linked as a library - is not specifically built for the iOS simulator. Hence, the message. As I understand this is a confirmed Apple bug and will be fixed by Apple at some point.

这只是iOS模拟器的一个问题,可以是安全地忽略了。

It is an issue with the iOS simulator only and can be safely ignored.

这篇关于IOHIDFamily的神秘控制台错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆