Undefined symbols for architecture arm64: "_MSHookFunction", referenced from

使用HookTweak建的模板编译会找不到MSHookFunction,如果用Log Tweak 在.xm文件里面写,生成的MSHookFunction代码又是可以的。

这是为什么?

使用命令行工程,编译出现这个:
target specifies product type ‘com.apple.product-type.tool’, but there’s no such product type for the ‘iphoneos’ platform

ios 9下不能通过iosopendev编译生成commands line tool吗?总是出现这个错误:

Check dependencies

target specifies product type ‘com.apple.product-type.tool’, but there’s no such product type for the ‘iphoneos’ platform

解决了?还是直接使用Theos代替?

http://www.blogfshare.com/iosopendev.html 使用你的解决方案之后,还是一样的报错。Xcode版本V7.2.1