Does AFNetworking 2.2.1 support iOS 6.0?
This question already has an answer here:
您是否添加了这些框架:SystemConfiguration,Security,CFNetwork?
AFNetworking 2.X has been updated for iOS 7 and the new NSURLSession protocols, which are only available in iOS 7. In order to use this great toolbelt with prior versions of iOS, you have to specify in your podfile.
platform :ios, '6.0'
~>
So your podfile for AFNetworking should look like this on below
platform :ios, '6.0'
xcodeproj 'MyProject'
pod 'AFNetworking', '~> 1.8'
or
platform :ios, '6.0'
xcodeproj 'MyProject'
pod 'AFNetworking', '< 2.0'
Hope this post help !
链接地址: http://www.djcxy.com/p/96774.html