Browse Source

Explicitly importing MobileCoreServices.
Fixes failing test

Diego Torres 11 years ago
parent
commit
bd22c7c581
1 changed files with 6 additions and 0 deletions
  1. 6 0
      AFNetworking/AFURLRequestSerialization.m

+ 6 - 0
AFNetworking/AFURLRequestSerialization.m

@@ -22,6 +22,12 @@
 
 #import "AFURLRequestSerialization.h"
 
+#if __IPHONE_OS_VERSION_MIN_REQUIRED
+#import <MobileCoreServices/MobileCoreServices.h>
+#else
+#import <CoreServices/CoreServices.h>
+#endif
+
 extern NSString * const AFNetworkingErrorDomain;
 
 typedef NSString * (^AFQueryStringSerializationBlock)(NSURLRequest *request, NSDictionary *parameters, NSError *__autoreleasing *error);