From 6a0b05265915ff863f162a4c9815258d4053eb46 Mon Sep 17 00:00:00 2001 From: Steven Fisher Date: Wed, 26 Sep 2012 16:47:56 -0700 Subject: [PATCH] Add error when building without ARC to a central file. --- AFNetworking/AFURLConnectionOperation.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 49a6730..a743e29 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -25,6 +25,11 @@ #import #endif +#if !__has_feature(objc_arc) +#error AFNetworking must be built with ARC. +// You can turn on ARC for only AFNetworking files by adding -fobjc-arc to the build phase for each of its files. +#endif + typedef enum { AFOperationPausedState = -1, AFOperationReadyState = 1,