您好,我有以下 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/