请问为什么mach_vm_remap无法链接

日志:
Undefined symbols for architecture arm64:
"mach_vm_remap(unsigned int, unsigned long long
, unsigned long long, unsigned long long, int, unsigned int, unsigned long long, int, int
, int*, unsigned int)", referenced from:
_logosLocalCtor_1477b421(int, char**, char**) in Tweak.xm.25dfd4f4.o
ld: symbol(s) not found for architecture arm64

**代码:
Tweak.x
extern kern_return_t mach_vm_remap(vm_map_t, mach_vm_address_t *, mach_vm_size_t,
mach_vm_offset_t, int, vm_map_t, mach_vm_address_t,
boolean_t, vm_prot_t *, vm_prot_t *, vm_inherit_t);
MakeFile:
TARGET = iphone:clang:11.2:11.0
ARCHS=arm64
操作步骤: 按http://4ch12dy.site/2019/08/12/xia0lldb-anti-anti-debug/xia0lldb-anti-anti-debug/ 这篇文章里的步骤试着修改单个指令,但无法链接,用vm_remap可以链接,但是第5个参数为VM_FLAGS_OVERWRITE应用会crash,查看文档vm_remap这个参数只能是YES/NO,但是似乎都不能修改原位置的内容
** 任何其他描述: mach_vm_read/write/protect/region都能链接

自己在 sdks\iPhoneOS10.2.sdk\usr\lib\libSystem.B.tbd 里加一个 _mach_vm_remap 就好了

谢谢你的回复,检查了一下sdk都正常,结果发现自己是xm文件,应该extern "C"的,傻逼了。。。