我一直在使用AFNetworking处理xcode 5.0.2,一切都很完美.
当我升级到 xcode 6 GM时,我得到了警告:自动属性合成不会合成属性’已取消’,因为它是’readwrite’但它将通过此行上的另一个属性合成’readonly’:
当我升级到 xcode 6 GM时,我得到了警告:自动属性合成不会合成属性’已取消’,因为它是’readwrite’但它将通过此行上的另一个属性合成’readonly’:
@property (readwrite,nonatomic,assign,getter = isCancelled) BOOL cancelled
和错误:使用未声明的标识符’_cancelled’
- (void)cancel { [self.lock lock]; if (![self isFinished] && ![self isCancelled]) { [self willChangeValueForKey:@"isCancelled"]; _cancelled = YES; <-- THIS LINE CAUSES THE ERROR [super cancel]; [self didChangeValueForKey:@"isCancelled"]; // Cancel the connection on the thread it runs on to prevent race conditions [self performSelector:@selector(cancelConnection) onThread:[[self class] networkRequestThread] withObject:nil waitUntilDone:NO modes:[self.runLoopModes allObjects]]; } [self.lock unlock]; }
我在SO上发现this answer并下载xcode 5.1.1复制了库,就像建议将基本sdk设置为7.1并且错误仍然存在
有什么建议?