是否可以在不同的目标中使用不同版本的Pod?

时间:2015-10-07 22:15:19

标签: ios ruby xcode cocoapods

这就是我在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,它也不会改变任何内容。

1 个答案:

答案 0 :(得分:1)

我在Cocoapods Github上发布了同样的问题。 我得到了他的答复: “不,那是不受支持的。”所以我想我们可以忘记这样做。 除非有一天有新的版本支持它。