#author("2016-09-01T15:54:26+09:00","default:wikiwriter","wikiwriter") [[Objective-C]] &tag(Objective-C/トラブルシューティング); *目次 [#w7db4cb6] #contents *関連ページ [#yacfa624] *参考情報 [#q5dc61a0] **Unsafe unretained property 'xxx' may not also be declared __weak [#ca91a252] -以下がエラー #pre{{ @interface SBJsonStreamWriter : NSObject { @private NSString *error; NSMutableArray *stateStack; __weak SBJsonStreamWriterState *state; id<SBJsonStreamWriterDelegate> delegate; NSUInteger maxDepth; BOOL sortKeys, humanReadable; } @property (nonatomic, assign) __weak SBJsonStreamWriterState *state; // Internal @property (nonatomic, readonly, retain) NSMutableArray *stateStack; // Internal }} -次のように修正。 #pre{{ @interface SBJsonStreamWriter : NSObject { @private NSString *error; NSMutableArray *stateStack; __unsafe_unretained SBJsonStreamWriterState *state; id<SBJsonStreamWriterDelegate> delegate; NSUInteger maxDepth; BOOL sortKeys, humanReadable; } @property (unsafe_unretained) __weak SBJsonStreamWriterState *state; // Internal @property (nonatomic, readonly, retain) NSMutableArray *stateStack; // Internal }}