我想更新我的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.请你帮助我如何解决这个问题。
有一个类似的问题,改变为
pod 'AFNetworking', '~> 4.0.1'
并删除一个过时的依赖关系
# pod 'AFNetworking+RetryPolicy', '~>1.0.3'
足以解决这个问题
在AFNetworking贡献者的帮助下,我已经解决了这个问题。
请通过以下链接
https:/github.comAFNetworkingAFNetworkingissues4567#event-3368598218。
我更新了我的podfile,如下所示。
pod 'AFNetworking', :source => 'https://github.com/ElfSundae/CocoaPods-Specs.git'
pod 'AFOAuth2Manager','~> 3.0'