Have added two properties in a .h file:
@property (assign, nonatomic, readonly) float weightInLbs;
@property (strong, nonatomic, readonly) NSDate *date;
They generate this Xcode error: Auto property synthesis is synthesizing property not explicitly synthesized
Am running Xcode 5.1 and am targeting iOS 7.1.
What does this mean, and what do I need to do about it?
Try to change 'implicit synthesized properties' flag in Project Build Settings
Do you have implemented a Getter Method? Like:
-(float)weightInLbs
If you do so, your properties do not get synthesized automatically anymore (if you have readwrite properties it's the same if you implement both, a getter and a setter).
To fix this you only need to add @synthesize weightInLbs;
in your implementation file (.m).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With