I added the folders AFNetworking and UIKit+AFNetworking manually to my project.
When I tried to compile (iOS6.1) I get the following errors in AFSecurifyPolicy.m
/AFNetworking/AFSecurityPolicy.m:233:5: Implicit declaration of function 'SecTrustSetPolicies' is invalid in C99
/AFNetworking/AFSecurityPolicy.m:271:44: No visible @interface for 'NSArray' declares the selector 'firstObject'
Trying iOS7.0 doesn't help. Anyone has any idea when I'm getting these errors?
Update: Did a clean and rebuild and its building now.
Update 2: The error is back. It happens when I connect a device and builds for it. Happens for both iOS 6 and 7 devices. Building for simulator is fine. Any ideas?
Attached some information below:
Xcode: Version 5.0.2 (5A3005)