I am using CocoaPods to install the AFNetworking library. Here is my simple CocoaPods file:
platform :ios
pod 'FMDB'
pod 'AFNetworking'
My Pods project and my main project are iOS 6 deployment target and base SDK. When I run the pod install I get the following error:
AFNetworking not compatible with iOS 4.3
UPDATED:
I edited my Podfile to this:
platform :ios, '6.0'
pod 'FMDB'
pod 'AFNetworking'
Now when I run pod install it shows the following:
Updating spec repo `master'
Cocoapods 0.15.1 is available.
Using AFNetworking (1.0) Using FMDB (2.0) Generating support files
But it never adds the AFNetworking pod to the pods project in xCode.
Specifying your Versions of the desired pods may help.
Also make sure you're opening the correct
xcworkspace
file.AFNetworking 1.0 and higher requires either iOS 5.0 and above, or Mac OS 10.7 (64-bit with modern Cocoa runtime) and above.
For compatibility with iOS 4.3, use the latest 0.10.x release.
from: https://github.com/AFNetworking/AFNetworking:
UPDATE, specify iOS dependency in Podfile:
UPDATE 2, I create a new project and a new Podfile, run
pod install
:UPDATE 3,