-
Error content
The error is reported in the line layoutCache[currentClass] = ivars; in the FBClassStrongLayout.mm file.
is replaced with layoutCache[(id)currentClass ] = ivars; Just fine -
Compilation is normal, but crash occurs when running
indirect_symbol_bindings[i] = cur->rebinding FBRetainCycleDetector iOS15 fishhook c
Manually replace the content in the Pods/FBRetainCycleDetector/fishhook/fishhook.c file
indirect_symbol_bindings[i] = cur->rebindings[j].replacement;
为
if (i < (sizeof(indirect_symbol_bindings) / sizeof(indirect_symbol_bindings[0]))) {
indirect_symbol_bindings[i]=cur->rebindings[j].replacement;
}
The syntax for installing MLeaksFinder is
pod 'MLeaksFinder', :configurations => ['Debug']
Reference from:
- https://juejin.cn/post/6998096709045714951
https://www.jianshu.com/p/279bbbc87fc9