Neither protocol NSCopying
nor protocol NSObject
declares -copy
.
NSCopying
declares -copyWithZone:
only. One solution would be to call [_localData copyWithZone:nil]
.
Class NSObject
declares -copy
even though protocol NSObject
does not. One solution would be to declare your ivar as type NSObject<IGTestClassData> *
.