如何使用类转储获取IOHIDLib的标头? [英] How can I use class-dump to get the headers of IOHIDLib?

查看:126
本文介绍了如何使用类转储获取IOHIDLib的标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它可以通过class-dump工具转储iOS私有框架的运行时标头.但我正在寻找IOHIDEvent的标头,该标头已移至iOS 6之后找不到的任何位置.但是,在iOS 6 SDK中,lib看起来像这样:

It can dump the runtime headers of private frameworks of iOS by class-dump tool. but I'm looking for the headers of the IOHIDEvent which has been moved to any where that I can not find after iOS 6. But, in the iOS 6 SDK there is lib looks like it:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Extensions/IOHIDFamily.kext/PlugIns/IOHIDLib.plugin

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Extensions/IOHIDFamily.kext/PlugIns/IOHIDLib.plugin

如何转储IOHIDLib的标头?

How can I dump the headers of the IOHIDLib?

推荐答案

class-dump是使您可以反向工程 Objective-C 二进制文件的工具.但是,在我看来IOHIDLib是一个C/C ++库,所以class-dump在那里对您没有帮助:

class-dump is a tool that lets you reverse engineer Objective-C binaries. But, it looks to me like IOHIDLib is a C/C++ library, so class-dump won't help you there:

$ class-dump -H IOHIDLib 
2013-06-14 02:55:39.104 class-dump[4676:707] Unknown load command: 0x0000002a
2013-06-14 02:55:39.106 class-dump[4676:707] Unknown load command: 0x0000002b
2013-06-14 02:55:39.109 class-dump[4676:707] Warning: This file does not contain any Objective-C runtime information.

幸运的是,IOHIDEvent似乎是iOS开源部分的一部分.您可以在这里找到标题(和.cpp文件) .

Luckily, IOHIDEvent appears to be part of the open-source part of iOS. You can find headers (and .cpp file) for it here.

我不知道您要使用它做什么,但是如果它是一些基本的触摸事件处理,则可以尝试使用GSEvent.有很多关于此的文档,尤其是在搜索stackoverflow时.

I don't know what you're trying to do with it, but if it's some basic touch event handling, you might try using GSEvent. There's a good bit more documentation for that, especially if you search on stackoverflow.

这篇关于如何使用类转储获取IOHIDLib的标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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