I'm using MSHookFunction for hooking system call in ios.static int (*original_gethostname)(char *, size_t);static int replace_gethostname(char *value, size_t valueLen) {    int ret = gethostname(value, valueLen);    if (value) strcpy(value, [SystemInfo getHostName]);    return ret;}MSHookFunction((void*)gethostname, (void*)replace_gethostname, (void**)&original_gethostname);I can compile successfully and hook function worked. (hostname has changed). But I don't know why all my apps crash when opening.
MSHookFunction causes all apps crash
ios