Does AFNetworking 2.2.1 support iOS 6.0?

This question already has an answer here:

  • Does AFNetworking 2.0 support iOS 6.0? 5 answers

  • 您是否添加了这些框架: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.

  • The platform version, like this platform :ios, '6.0'
  • The version of AFNetworking you need with the optimistic operator ~>
  • 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

    上一篇: AFNetworking 2.0支持iOS 6和iOS 7的后台任务吗?

    下一篇: AFNetworking 2.2.1是否支持iOS 6.0?