I am trying to convert a project to use ARC.
I have a declared property like such:
@property (nonatomic, retain, setter=setSomeProperty:) SomeClass * someProperty;
A declaration of the setter method in the interface:
-(void)setSomeProperty:(SomeClass *)value;
And I have an implementation of the setter that looks like this:
-(void)setSomeProperty:(SomeClass *)value
{
if (_value != value)
{
[_value release];
_value = [value retain];
}
// Other things...
}
I’m getting an error when trying to use the “Convert to Objective-C ARC…” tool:
error: type of property ‘someProperty’ does not match type of accessor
‘setSomeProperty:’ [-Werror,3]
Remove the declaration of the
setSomePropertymethod from the interface. The@propertycreates a declaration and the default setter is the same as is declared.