为 iPhone 模拟器创建 libsubstrate
我正在 JB iPhone 上开发 mobilesubstrate 插件。我在 xcode 中为我的 iphone 创建了一个 dylib,它可以很好地为设备构建,但是当我尝试为模拟器构建它时,它给了我一个错误“_MSHOOKMESSAGE 引用来自:blah blah”。我已将所有标题放置在正确的位置。我从设备中获取了 libsubstrate,但这就是我认为的问题。设备中的 libsubstrate 不适用于模拟器。所以我的问题是如何为模拟器创建 libsubstrate?
I am working on mobilesubstrate plugins on a JB iPhone. i have created a dylib in xcode for my iphone which builds fine for Device, but when i try to build it for Simulator, it gives me an error "_MSHOOKMESSAGE reference from: blah blah". I have placed all the headers in proper locations. I got libsubstrate from device but that is i think the problem. The libsubstrate from device is not gonna work for Simulator. So my question is how to create a libsubstrate for Simulator?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您只需要使用
MSHookMessageEx
(它取代了MSHookMessage
),您可以当然,Mobile Substrate 中的
MSHookMessageEx
比这更复杂,但是出于测试目的,这通常就足够了。If you simply need to use
MSHookMessageEx
(which supersededMSHookMessage
), you canOf course,
MSHookMessageEx
in Mobile Substrate is more complex than this, but for testing purpose this is usually enough.http://www.ipodtouchfans.com/forums/showthread.php?t= 103558
也许这可以帮助你。
祝你好运。
http://www.ipodtouchfans.com/forums/showthread.php?t=103558
May be this can help you.
Good luck.