我正在使用 CocoaPods 安装特定版本的 AFNetworking
。我的播客文件如下:
# Uncomment this line to define a global platform for your project
platform :ios, '7.0'
target "WGCore" do
pod 'XMPPFramework'
pod 'AFNetworking’, ’2.3.1’
pod 'FMDB'
pod 'Reachability'', '3.1'
end
target "WGCoreTests" do
end
我的安装命令是pod install --verbose --no-repo-update
我已经尝试删除 pod 的缓存。
我试过删除 podlock。
但无论如何,我仍然得到 AFNetworking 3.1.0
。
这是我第一次使用 CocoaPods
。我错过了什么吗?
最佳答案
About installing specific version
换句话说,你做对了。这可能是 2.3.1(尝试 ~>2)或(<3)的问题。也许这个版本不适用于 ios,'7.0',只能用于较低版本。仅使用 pod install
。试试reinstall椰子类动物。卸载后使用 gem cleanup
。
您可以安装manually或者在 cocoapods (81d54e5) 中使用特定的提交
关于ios - PodFile 未安装指定版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40864848/