0
votes

I have converted non-ARC project into ARC, but XCode5.0 is giving below warning for line

@property (nonatomic) NSNumber *latitude;

Warning: No 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed

When I add strong life time qualifier then Warning goes out.

@property (nonatomic, strong) NSNumber *latitude;

Under ARC, strong is the default for object types, so why XCode is giving warning if I dont mention its a strong property?

1
Thanks..Yes I know this is abovious error in non-ARC project. As I mentioned I am getting this error after enabling ARC and converting non-arc project into ARC.Gaurav Borole
Yes, I have tried cleaning. If I add strong then error goes out.Gaurav Borole
Check Objective C Automatic Reference Counting flag in build settings of your project is Yes or No. I think your project is not converted to ARC properly.Aniket Kote
Yes Checked Flag is set to YES, Its running properly without crashing..first I enabled ARC in project setting and then converted project into ARC using option provided using XCode(Edit->Refactor->Convert to Objective-C ARC). Also did some changes manually at some places for ARC.Gaurav Borole

1 Answers

0
votes

Did you through "Edit->Refactor->Convert to Objective-C ARC" to enable ARC? Or just change project setting? You can try first method to convert project to ARC.