1.导入之后报错在这一行:
layoutCache[currentClass] = ivars;
解决方案,替换为:
layoutCache[(id<NSCopying>)currentClass] = ivars;
2.运行之后报错在这一行:
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;
}
Note:记得放开 MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED