NSArrayidFBObjectReference *FBGetObjectStrongReferences(id obj,
NSMutableDictionaryClass, NSArrayidFBObjectReference * *layoutCache) {
NSMutableArrayidFBObjectReference *array = [NSMutableArray new];
__unsafe_unretained Class previousClass = nil;
__unsafe_unretained Class currentClass = object_getClass(obj);
while (previousClass != currentClass) {
NSArrayidFBObjectReference *ivars;
if (layoutCache && currentClass) {
ivars = layoutCache[currentClass];
}
if (!ivars) {
ivars = FBGetStrongReferencesForClass(currentClass);
if (layoutCache && currentClass) {
layoutCache[currentClass] = ivars;
}
}
[array addObjectsFromArray:ivars];
previousClass = currentClass;
currentClass = class_getSuperclass(currentClass);
}
return [array copy];
}
Same issue here. This won't compile on Xcode 12.5