是否可以在不同的目标中使用不同版本的Pod? [英] Is It possible to use different versions of Pods in different targets?

查看:77
本文介绍了是否可以在不同的目标中使用不同版本的Pod?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我要在Podfile中执行的操作:

This is what I'm trying to do in 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 =>确实可以,它不会改变任何东西。

There is not anyway that I can have multiple targets with different versions of pods ? Even by setting : :exclusive => true do, it doesn't change anything.

推荐答案

我已经发布了与Cocoapods Github中的问题。
我得到了他的回应:
不,不支持。因此,我想我们可能会忘记这样做。
除非有一天有新版本支持。

I've posted same question as an issue in Cocoapods Github. I've got his response : "No, that's not supported." So I guess we can forget doing that. Unless someday there is a new release supporting that.

这篇关于是否可以在不同的目标中使用不同版本的Pod?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆