简体   繁体   English

如何在添加了 CocoaPods 的项目中为每个目标中的每个配置(调试、发布)配置独立.xcconfig

[英]How to configure independent .xcconfig for every Configuration(Debug, Release) in each target on a project with CocoaPods added

I have a project which supports multiple Brands (used targets to configure appicon, Launch Screen.., etc) and each targets needs multiple environments where am using Configuration (Debug, Release) with schemes for every configuration.我有一个支持多个品牌的项目(用于配置appicon 、启动屏幕等的目标),每个目标都需要多个环境,其中使用配置(调试、发布)和每个配置的方案。

Now to add environment variables am using.xcconfig files which am not sure how to configure for every target.现在添加环境变量正在使用.xcconfig 文件,这些文件不确定如何为每个目标进行配置。 The Configuration on Project level in Xcode has Cocoapods configured. Xcode 中项目级别的配置已配置 Cocoapods。

NOTE: While pod install, it shows warning in terminal to include pods config data into my custom config file.注意:安装 pod 时,它会在终端中显示警告,将 pod 配置数据包含到我的自定义配置文件中。 Any easy way to achieve this?有什么简单的方法可以实现这一目标吗?

Found a helpful link where it explains about import config into a config.找到了一个有用的链接,其中解释了有关将配置导入配置的信息。

https://betterprogramming.pub/working-with-custom-xcconfigs-and-coccoapods-6b87ead94708 https://betterprogramming.pub/working-with-custom-xcconfigs-and-coccoapods-6b87ead94708

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM