Mystery console error with IOHIDFamily

后端 未结 6 1726
孤街浪徒
孤街浪徒 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: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.

提交回复
热议问题