[英]Cocoapods multiple library versions in same pod file
您好,我有以下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中發現了版本沖突 ,但這不能解決我的問題。
最后,我想我會使用由RestKit AFNetworking提供的建議之前的版本在這里 ,我希望在未來的CocoaPods可以解決這個問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.