But I got another problem from substitute_hook_functions return:
/* substitute_hook_functions: can't patch a function because one of the
* instructions within the patch region is one of a few special problematic
* cases - if you get this on real code, the library should probably be
* updated to handle that case properly */
SUBSTITUTE_ERR_FUNC_BAD_INSN_AT_START = 2,
Jailbreak iPhone6 iOS11.1.2 Electra version: 1.0.4 Substitute version: 0.0.6-coolstar
Firstly I checked the function of _MGCopyAnswer and it is enough long in iOS11.
But I got another problem from substitute_hook_functions return:
Here is my hook code in Tweak.xm:
Any ideas? Thanks. qingtao.wu@live.cn