Runtime Error - loading IOHIDLib

My app is running ok in the Simulator but I'm getting an error I hadn't noticed before, so I can't tell what I changed that introduced it. I've searched for an IOHIDLib, but never had to include or deal with this before. I'm concerned that everything will be fine in the Simulator and running on a connected device, but will fail in "real life" or in Apple approval, etc without dealing with this apparently missing bundle or plug-in.


I'm running the latest released XCode 7.1 (7B91b) with the latest released components for an iOS 9.1 build, on a MacOS (mid-2010) with El Capitan.


Any help or explanation is greatly appreciated! Thanks!



I'm getting the following error in the debug console output:


2015-10-26 08:19:35.797 MyGame[8020:505427] 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-10-26 08:19:35.798 MyGame[8020:505427] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7ae45830 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-10-26 08:19:35.799 MyGame[8020:505427] 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-10-26 08:19:35.800 MyGame[8020:505427] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7ae45830 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-10-26 08:19:35.801 MyGame[8020:505427] 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-10-26 08:19:35.802 MyGame[8020:505427] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7ae45830 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-10-26 08:19:35.803 MyGame[8020:505427] 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-10-26 08:19:35.803 MyGame[8020:505427] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7ae45830 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2015-10-26 08:19:35.805 MyGame[8020:505427] 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-10-26 08:19:35.805 MyGame[8020:505427] Cannot find function pointer IOHIDLibFactory for factory 13AA9C44-6F1B-11D4-907C-0005028F18D5 in CFBundle/CFPlugIn 0x7ae45830 </System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin> (bundle, not loaded)

2

Now I have the same issue with XCode7.0.1 & iOS 9.0.

Also, I do not know is it linked with second issue: with that error messages was disabled all touch interactions (event dispatcher, buttons callbacks..,) of my cocos2d-x-based project.

So after Mac rebooting touch interaction is repaired, but error messages are still exist.

I have the same problem, and I think I've had it since Xcode7.


I found the following suggestion somewhere

You can disable them by setting "Linker Behavior" in "Build Settings" to "Link SDK Assemblies Only"

but I can't find that build setting in Xcode.


xcodebuild in my CI environment fails, and I guess it fails because of this error. I really don't know what to do.

I just got this issue too. Do you have GameKit imported? Once I removed this line of code, the error goes away. Doesn't solve the problem but that seems to be the culprit.

Runtime Error - loading IOHIDLib
 
 
Q