1.導(dǎo)入之后報錯在這一行:
layoutCache[currentClass] = ivars;
解決方案蓝丙,替換為:
layoutCache[(id<NSCopying>)currentClass] = ivars;
2.運(yùn)行之后報錯在這一行:
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