ios - PodFile 未安装指定版本

标签 ios cocoapods

我正在使用 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

no descr

换句话说,你做对了。这可能是 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/

相关文章:

react-native - 在 macOS Big sur 上安装 pod 失败

ios - UIView 数组

ios - 如何从 UIImageView 上传图片到 Parse.com

ios - 如何在所有 Controller 中显示 subview ?像导航栏

ios - 确定哪个 CocoaPod(s) 需要特定的依赖

ios - 从 cocoapods 过渡到 Swift Package Manager

cocoapods - Podfile 没有下载最新版本的 pod

ios - 将具有静态框架的 pod 作为 podspec 中的依赖项连接到另一个 pod

ios - 如何让 SpriteKit Playgrounds 在 Xcode 8 beta 中工作?

ios - UIDocument & NSFileWrapper 架构和性能