AFNetworking not compatible with iOS 4.3

后端 未结 2 1582
一生所求
一生所求 2020-12-28 15:22

I am using CocoaPods to install the AFNetworking library. Here is my simple CocoaPods file:

platform :ios
pod \'FMDB\'
pod \'AFNetworking\'
<
相关标签:
2条回答
  • 2020-12-28 15:39

    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:

    platform :ios, '6.0'
    
    pod 'FMDB'
    pod 'AFNetworking'
    

    UPDATE 2, I create a new project and a new Podfile, run pod install:

    $ pod install
    Resolving dependencies of `./Podfile'
    Updating spec repositories
    Resolving dependencies for target `default' (iOS 6.0)
    Downloading dependencies
    Installing AFNetworking (1.0)
    Installing FMDB (2.0)
    Generating support files
    
    [!] From now on use `AF.xcworkspace'.
    Integrating `libPods.a' into target `AF' of Xcode project `./AF.xcodeproj'.
    

    UPDATE 3,

    screen shot

    0 讨论(0)
  • 2020-12-28 15:45

    Specifying your Versions of the desired pods may help.

    platform :ios, '6.0'
    pod 'FMDB', '~> 2.0'
    pod 'AFNetworking', '~> 1.1.0'
    

    Also make sure you're opening the correct xcworkspace file.

    0 讨论(0)
提交回复
热议问题