I've had a function that always worked, still works in older xcode versions (currently using 11.4) but breaks in 12.1.
I'm getting an error "Incompatible block pointer typers sending 'void(^)(ObjName *strong)' to parameter of type 'void (^)(strong id<ProtocolName>)'
ObjName is defined as:
The function throwing the error is defined as:
and I'm calling it with:
The error is highlighting the start of
Any ideas what causes this?
I'm getting an error "Incompatible block pointer typers sending 'void(^)(ObjName *strong)' to parameter of type 'void (^)(strong id<ProtocolName>)'
ObjName is defined as:
Code Block @interface ObjName : OtherObject <ProtocolName>
The function throwing the error is defined as:
Code Block - (void)functionName:(BOOL)enabled topic:(id <ProtocolName>)topic success:(void (^)(id <ProtocolName> topic))success failure:(void (^)(NSError *error))failure;
and I'm calling it with:
Code Block [self functionName:NO topic:otherObj.topic success:^(ObjName *obj) { } failure:^(NSError *error) { }];
The error is highlighting the start of
Code Block ^(ObjName *obj)
Any ideas what causes this?