这就是我在 Podfile 中尝试做的事情:
platform :ios, '7.0'
target TargetOne, :exclusive => true do
pod 'AFNetworking', '2.6.0'
end
target TargetTwo, :exclusive => true do
pod 'AFNetworking', '2.5.0'
end
这是输出:
[!] Unable to satisfy the following requirements:
- `AFNetworking (= 2.6.0)` required by `Podfile`
- `AFNetworking (= 2.5.0)` required by `Podfile`
无论如何,我不能拥有具有不同版本 Pod 的多个目标吗?
即使通过设置::exclusive => true do
,它也不会改变任何东西。
最佳答案
我已经在 Cocoapods Github 中发布了与问题相同的问题。 我收到了他的回复: “不,这不受支持。”所以我想我们可以忘记这样做。 除非有一天有新版本支持这一点。
关于ios - 是否可以在不同的目标中使用不同版本的 Pod?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33003331/