Is It possible to use different versions of Pods in different targets?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 10:22:30

问题


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

Here's the output :

[!] Unable to satisfy the following requirements:

- `AFNetworking (= 2.6.0)` required by `Podfile`
- `AFNetworking (= 2.5.0)` required by `Podfile`

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.


回答1:


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.



来源:https://stackoverflow.com/questions/33003331/is-it-possible-to-use-different-versions-of-pods-in-different-targets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!