Throw a build failure if not compiled with ARC (boosted from AFNetworking/AFNetworking#541)

This commit is contained in:
Blake Watters
2012-09-26 20:44:17 -04:00
parent afd9d16419
commit 098edd1fec

View File

@@ -28,6 +28,11 @@
#import "RKLog.h"
#import "RKMIMETypeSerialization.h"
#if !__has_feature(objc_arc)
#error RestKit must be built with ARC.
// You can turn on ARC for only RestKit files by adding "-fobjc-arc" to the build phase for each of its files.
#endif
//////////////////////////////////
// Shared Instance