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

标签 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,它也不会改变任何东西。

最佳答案

我已经在 Cocoapods Github 中发布了与问题相同的问题。 我收到了他的回复: “不,这不受支持。”所以我想我们可以忘记这样做。 除非有一天有新版本支持这一点。

关于ios - 是否可以在不同的目标中使用不同版本的 Pod?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33003331/

相关文章:

ios - 如何在 iOS Swift 中使用 Watson Conversation?

ios - 使用特定标识符设置所有单元格的高度?

xcode - 奇怪的错误消息: xcode-select: error: malformed developer path ("/Library/Developer/CommandLineTools")

javascript - 在 javascript 函数中设置 ruby​​ 实例变量

ruby - 将 10 进制数转换为 N 进制数的算法

swift - 在 Xcode 上的设备上测试时如何检查正在执行哪个类/UIViewController?

ios - Jenkins - 失败 : No test report files were found. 配置错误?

ios - Xcode 在尝试提交应用程序时出现奇怪的报摊错误

ios - 将下载的 Gif 存储在 Firebase 中

ruby - 如何测量 eval "def ..."和 define_method 的性能