简体   繁体   English

使用具有不同资源文件夹的Xcode构建iOS项目

[英]Building iOS project with Xcode with different resource folder

I am building multiple app with the same source code but different resource folder. 我正在使用相同的源代码但使用不同的资源文件夹来构建多个应用程序。 How can I configure this, such that profile A will use ResourceA folder. 我如何配置它,以便配置文件A将使用ResourceA文件夹。 and profile B use ResourceB folder? 和配置文件B使用ResourceB文件夹? I am thinking to make it more automatic way, instead of replacing the Resource folder each time of build. 我正在考虑使其更加自动化,而不是每次构建时都替换Resource文件夹。

Thanks 谢谢

When you drag the resource folder in to Xcode just make sure that only add it to the target that you want those resources for. 当您将资源文件夹拖到Xcode时,只需确保仅将其添加到您想要这些资源的目标即可。

在此处输入图片说明

通过“ 添加到目标”部分添加“资源”文件夹时,您可以选择所需的Traget。

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

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