我想将我的AFNetworking更新到版本 pod'AFNetworking','〜> 4.0',但是出现以下错误。
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
In Podfile:
AFNetworking (~> 4.0)
AFOAuth2Manager was resolved to 2.0.0, which depends on
AFNetworking (~> 2.2)
CocoaPods could not find compatible versions for pod "AFNetworking/NSURLConnection":
In Podfile:
AFOAuth2Manager was resolved to 2.2.0, which depends on
AFNetworking/NSURLConnection (~> 2.2)
None of your spec sources contain a spec satisfying the dependency: `AFNetworking/NSURLConnection (~> 2.2)`.
我正在将pod版本1.8.4和macOS 10.15.3与xcode11.3.1一起使用。 您能帮我解决问题吗
答案 0 :(得分:0)
遇到类似的问题,更改为
pod 'AFNetworking', '~> 4.0.1'
并删除过时的依赖项
# pod 'AFNetworking+RetryPolicy', '~>1.0.3'
足以解决这个问题
答案 1 :(得分:0)
我已经在AFNetworking贡献者的帮助下解决了此问题
请通过以下链接
https://github.com/AFNetworking/AFNetworking/issues/4567#event-3368598218
我已经更新了我的podfile,如下所示:
pod 'AFNetworking', :source => 'https://github.com/ElfSundae/CocoaPods-Specs.git'
pod 'AFOAuth2Manager','~> 3.0'