ios - Cocoapods 同一个 pod 文件中的多个库版本

标签 ios ios8 cocoapods

您好,我有以下 pod 文件:

pod "AFNetworking", "~> 2.0"
pod 'RestKit', '~> 0.20.0'

尝试安装 pod 时出现错误:
[!] Unable to satisfy the following requirements:

- `AFNetworking (~> 2.0)` required by `Podfile`
- `AFNetworking (= 1.1.0)` required by `RestKit/Network (0.20.0)`
- `RestKit/Network (= 0.20.0)` required by `RestKit/Core (0.20.0)`

RestKit 需要 AFNetworking 的 1.1.0 版本,但我想在我的项目中使用 2.0,如何同时启用两者?

我在文档中搜索:
我找到了版本冲突 https://guides.cocoapods.org/using/the-podfile.html但这并没有解决我的问题。

最佳答案

最后我想我会按照建议 here 使用 RestKit 提供的以前版本的 AFNetworking ,我希望将来 cocoapods 可以解决这个问题。

关于ios - Cocoapods 同一个 pod 文件中的多个库版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30571552/

相关文章:

ios - 在 <= iOS 8 中是可以的。但是 iOS 9,我收到错误

ios - 如何进行脉冲物理学

ios - UIcollectionView Reloaddata 在显示实际数据之前显示其下方行中的一些随机数据几分之一秒

ios - 在 UICollectionView 中禁用水平滚动

uitableview - 为某些行显式设置行高,但对其他行使用estimatedRowHeight

ios - Travis-ci 卡在 pod 安装中

ios - Xcode 中未显示 Material Design 文本字段自定义类

ios - 如何在 Swift 中为 UIImage 着色?

ios - newBufferWithBytes() 有大小限制吗?

ios - ld : framework not found Alamofire