CocoaPods - 明确更新依赖冲突问题

时间:2016-05-13 13:08:39

标签: ios cocoapods

我正面临着需要AFNetworking 3.0的场景。但是signalR依赖于AFNetworking 2.0,所以它会导致冲突

 target “MyTestApp” do
  pod 'SignalR-ObjC', '~> 2.0'
  pod 'AFNetworking', '~> 3.0'
 end

现在当我尝试显式更新(pod'AFNetworking','〜> 3.0')时,我收到了错误

[!] Unable to satisfy the following requirements:

AFNetworking (~> 3.0) required by Podfile
AFNetworking (~> 2.0) required by SignalR-ObjC/Core (2.0.2)

我该如何解决这个冲突?

另一种方式,如果我尝试更新AFNetworking(由SignalR包含)

target “MyTestApp” do
 pod 'SignalR-ObjC', '~> 2.0'
end

然后

[!] The [AFNetworking] Pod is not installed and cannot be updated

那么,我们如何明确更新呢?

0 个答案:

没有答案