Tweak 编译错误, 找不到MSImageRef和MSFindSymbol

章节 4.1.1 第79面的例子 TweakProject: iOSREHookerTweak。编译的时候报错,求助

Making all for tweak YoungHookTweak…
Preprocessing Tweak.xm…
Compiling Tweak.xm…
Tweak.xm:31:7: error: unknown type name ‘MSImageRef’; did you mean ‘CGImageRef’?
MSImageRef image = MSGetImageByName(“Applications/youngdemo.app/youngdemo”);
^~~~~~~~~~
CGImageRef
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h:8:25: note:
‘CGImageRef’ declared here
typedef struct CGImage *CGImageRef;
^
Tweak.xm:31:26: error: use of undeclared identifier ‘MSGetImageByName’
MSImageRef image = MSGetImageByName(“Applications/youngdemo.app/youngdemo”);
^
Tweak.xm:32:46: error: use of undeclared identifier ‘MSFindSymbol’; did you mean ‘MSHookSymbol’?

我的也找不到了,同问

后面有知道怎么解决吗

需要手动加入 #import<substrate.h> 才行