iPhone development--XCode14 upgrade MLeaksFinder error reported

  1. 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

  2. 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

Guess you like

Origin blog.csdn.net/zcl369369/article/details/130828740