FBRetainCycleDetector build报错

2,057 阅读1分钟

Pod Installing FBRetainCycleDetector (0.1.4) Installing MLeaksFinder (1.0.0)

FBClassStrongLayout 这个类build报错

Cannot initialize a parameter of type 'id<NSCopying> _Nonnull' with an rvalue of type 'Class'

Xnip2021-06-07_10-52-32.jpg

 if (!ivars) {
      ivars = FBGetStrongReferencesForClass(currentClass);
      if (layoutCache && currentClass) {
       '要修改的地方'
       'layoutCache[(id<NSCopying>)currentClass] = ivars;'
      }
    }