我有几种构建配置: Develop,RC,Release,ReleaseDebug 等。 我想为除 Release 和 ReleaseDebug 之外的所有配置安装一些pod。我发现我们具有:configurations 功能,以便定义应为哪些配置Pod安装,但是否定呢?
有人对此有任何想法吗?
P.s。 请不要在我应该定义Pod出现的所有配置的地方提供解决方案。我想要一个解决方案,可以在其中定义不应使用的配置。
答案 0 :(得分:0)
使用目标
尝试此Podfile配置def develop
pod 'xxxx'
pod 'yyyy'
end
def release
pod 'xxxx'
pod 'yyyy'
end
target 'Develop' do
develop
end
target 'Release' do
release
end
答案 1 :(得分:0)