Mystery console error with IOHIDFamily

后端 未结 6 1708
孤街浪徒
孤街浪徒 2020-12-23 09:31

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 w

相关标签:
6条回答
  • 2020-12-23 09:48

    Disabling Game Center capabilities remove these messages for me. On your Project, select the Desired target and go to Capabilities.

    0 讨论(0)
  • 2020-12-23 09:49

    On new Xcode 7.2 these messages do not display anymore.

    But I have new messages related to SpriteKit :
    CUICatalog: Invalid Request: requesting subtype without specifying idiom

    CUICatalog: Invalid Request: requesting subtype without specifying idiom

    0 讨论(0)
  • 2020-12-23 09:50

    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.

    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).

    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.

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

    0 讨论(0)
  • 2020-12-23 09:55

    When I encountered this problem in iOS code, it was because two of my classes contained an import Foundation. New File was defaulting to OS X / Source / Swift file and I hadn't noticed.

    Removing those imports eliminated the problem.

    0 讨论(0)
  • 2020-12-23 10:03

    Vinnie posted this solution

    try setting the IOS Build Options: Linker options to "Link SDK assemblies only", fixed it for me

    here: http://forums.xamarin.com/discussion/24656/error-running-app-after-upgrading-xamarin

    0 讨论(0)
  • 2020-12-23 10:10

    I solved this issue by going on GENERAL tab and uncheck Requires Full Screen option to disable iPad multitasking. But you can get validation errors if multitasking is not handled properly!

    0 讨论(0)
提交回复
热议问题