我想安装 AFNetworking 但遇到问题,如何修复和安装?我用了Getting Started with AFNetworking :
1.下载 CocoaPods
sudo gem install cocoapods
pod setup
2.a.创建 Pod 文件
touch Podfile
open -a Xcode Podfile
2.b.然后复制粘贴:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'AFNetworking', '~> 2.5'
最佳答案
添加:
target 'MyApp' do
pod 'AFNetworking', '~> 2.5'
end
参见:https://guides.cocoapods.org/using/the-podfile.html
然后从项目目录运行pod install
。
关于ios - 依赖项 `AFNetworking (~> 2.5)` 未在任何具体目标中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37464977/