我正在使用 CocoaPods 安装 AFNetworking 库。这是我的简单 CocoaPods 文件:
platform :ios
pod 'FMDB'
pod 'AFNetworking'
我的 Pods 项目和我的主项目是 iOS 6 部署目标和基础 SDK。当我运行 pod install 时,出现以下错误:
AFNetworking not compatible with iOS 4.3
更新:
我将我的 Podfile 编辑为:
platform :ios, '6.0'
pod 'FMDB'
pod 'AFNetworking'
现在,当我运行 pod install 时,它显示以下内容:
更新规范 repo `master'
Cocoapods 0.15.1 可用。
使用 AFNetworking (1.0) 使用 FMDB (2.0) 生成支持文件
但它从未将 AFNetworking pod 添加到 xCode 中的 pods 项目中。