iOS13 indirect_symbol_bindings[i] = cur->rebindings[j].replacement; 崩溃

iOS13 使用fishhook 会造成崩溃,目前简单处理记录一下,增加修改代码如下

if(i < (sizeof(indirect_symbol_bindings) /sizeof(indirect_symbol_bindings[0]))) {

                indirect_symbol_bindings[i] = cur->rebindings[j].replacement;

}

但是你以为这样解决了? 

是的,现在不会crash了,但是你也发现你的webSocket 也不能hook 了!

正确的解决方式:

1.下载 

https://github.com/facebook/fishhook

2.替换

3.完

你可能感兴趣的:(iOS13 indirect_symbol_bindings[i] = cur->rebindings[j].replacement; 崩溃)