<bdo id='iW2lG'></bdo><ul id='iW2lG'></ul>
  • <legend id='iW2lG'><style id='iW2lG'><dir id='iW2lG'><q id='iW2lG'></q></dir></style></legend>

        <i id='iW2lG'><tr id='iW2lG'><dt id='iW2lG'><q id='iW2lG'><span id='iW2lG'><b id='iW2lG'><form id='iW2lG'><ins id='iW2lG'></ins><ul id='iW2lG'></ul><sub id='iW2lG'></sub></form><legend id='iW2lG'></legend><bdo id='iW2lG'><pre id='iW2lG'><center id='iW2lG'></center></pre></bdo></b><th id='iW2lG'></th></span></q></dt></tr></i><div id='iW2lG'><tfoot id='iW2lG'></tfoot><dl id='iW2lG'><fieldset id='iW2lG'></fieldset></dl></div>
      1. <tfoot id='iW2lG'></tfoot>

        <small id='iW2lG'></small><noframes id='iW2lG'>

        在 XCode 中为多个目标编译时,我如何确保某些文件不会包含在一个目标中

        When compiling for multiple targets in XCode, how do i ensure that certain files will not be included one target(在 XCode 中为多个目标编译时,我如何确保某些文件不会包含在一个目标中)

            <tbody id='cqch8'></tbody>
          <legend id='cqch8'><style id='cqch8'><dir id='cqch8'><q id='cqch8'></q></dir></style></legend>

          <small id='cqch8'></small><noframes id='cqch8'>

            • <bdo id='cqch8'></bdo><ul id='cqch8'></ul>

                <tfoot id='cqch8'></tfoot>

                • <i id='cqch8'><tr id='cqch8'><dt id='cqch8'><q id='cqch8'><span id='cqch8'><b id='cqch8'><form id='cqch8'><ins id='cqch8'></ins><ul id='cqch8'></ul><sub id='cqch8'></sub></form><legend id='cqch8'></legend><bdo id='cqch8'><pre id='cqch8'><center id='cqch8'></center></pre></bdo></b><th id='cqch8'></th></span></q></dt></tr></i><div id='cqch8'><tfoot id='cqch8'></tfoot><dl id='cqch8'><fieldset id='cqch8'></fieldset></dl></div>
                  本文介绍了在 XCode 中为多个目标编译时,我如何确保某些文件不会包含在一个目标中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用我能想到的每个关键字在 stackoverflow 上搜索了很长时间来解决这个问题.我正在为 iphone 编程,我的应用程序有一个精简版和付费版本.我按照这里的说明 Creating Lite用于复制目标的 iPhone 游戏/应用程序版本.这行得通,现在我正在努力精简精简版.

                  I searched for a long time on stackoverflow using every keyword I could think of to solve this. I am programming for iphone and I have a lite and paid version of my app. I followed the instructions here Creating Lite Versions of iPhone Games / Apps for duplicating the target. This works and now I am working on slimming down the lite version.

                  主要问题?图片.精简版需要比付费版少几百张图片.所以,我在 XCode 中做了 2 个组.Xcode 中的一个文件夹组" - 名为FreeImages",另一个名为ProImages".我希望所有素材 only 都包含在 lite 应用程序中,所有素材 ProImage 都包含在付费应用程序中.我不在乎 XCode 将这些组视为虚拟文件夹.我将指令颠倒过来,并在 XCode "PLUS_VERSION" 中设置了环境标志 (-D) 我希望 XCode 基本上执行以下操作:

                  Main problem? Images. The lite version needs to have several hundred less images than the paid version. So, I made 2 groups in XCode. One "Folder Group" in Xcode - named "FreeImages" and another "ProImages". I want all FreeImages only to be included in the lite app and all FreeImages and ProImages to be in the paid app. I do not care that XCode considers these Groups to be Virtual Folders. I reversed the instructions to a point and have an environment flag (-D) set in XCode "PLUS_VERSION" I want XCode to basically do the following:

                  If (PLUS_VERSION)
                  {
                   copy contents of FreeImages *and* ProImages where normally they go
                  }
                  else
                  {
                  copy contents of FreeImages where they normally go.
                  }
                  

                  有人知道从哪里开始告诉 XCode 有条件地将组的内容复制到目标中吗?

                  Anyone know where to start to tell XCode to conditionally copy contents of groups into the target?

                  推荐答案

                  对于您想要定向到特定目标的每个资源(或资源文件夹),您可以单击该资源并检查它(通过右键单击并选择获取信息或单击检查工具栏选项).在该信息对话框中将有一个名为 Targets 的选项卡,您可以在其中选中要合并资源(甚至源代码文件)的目标,并取消选中您不希望的目标.

                  For each resource (or folder of resources) you want to direct to a specific target, you can click on the resource and inspect it (either via right-clicking and selecting Get Info or by clicking on the Inspect toolbar option). Within that info dialog will be a tab called Targets, where you can check the targets you want the resource (or even source code file) to be incorporated into, and uncheck the ones you don't.

                  另外,我相信您可以在 Xcode 中导航到目标本身,单击其名称旁边的三角形以展开构建阶段列表,展开 Copy Bundle Resources 构建阶段,然后从列表中手动删除任何资源您不希望复制到该目标中.

                  Alternatively, I believe you can navigate to the target itself in Xcode, click on the triangle next to its name to expand the list of build phases, expand the Copy Bundle Resources build phase, and manually delete from the list there any resources you don't wish to have copied over into that target.

                  这篇关于在 XCode 中为多个目标编译时,我如何确保某些文件不会包含在一个目标中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  what#39;s property copy means in Cocoa#39;s Framework?(like UITabBar#39;s items property)(Cocoa 框架中的属性副本是什么意思?(如 UITabBar 的 items 属性))
                  Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                  SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                  WebKit on th iPhone: is it possible to copy text to the clipboad with JavaScript(iPhone上的WebKit:是否可以使用JavaScript将文本复制到剪贴板)
                  Difference between retain and copy?(保留和复制的区别?)
                  Can`t copy file from bundle to documents directory in iOS(无法将文件从捆绑包复制到 iOS 中的文档目录)
                • <legend id='iJdjE'><style id='iJdjE'><dir id='iJdjE'><q id='iJdjE'></q></dir></style></legend>

                  <tfoot id='iJdjE'></tfoot>

                      <small id='iJdjE'></small><noframes id='iJdjE'>

                        <i id='iJdjE'><tr id='iJdjE'><dt id='iJdjE'><q id='iJdjE'><span id='iJdjE'><b id='iJdjE'><form id='iJdjE'><ins id='iJdjE'></ins><ul id='iJdjE'></ul><sub id='iJdjE'></sub></form><legend id='iJdjE'></legend><bdo id='iJdjE'><pre id='iJdjE'><center id='iJdjE'></center></pre></bdo></b><th id='iJdjE'></th></span></q></dt></tr></i><div id='iJdjE'><tfoot id='iJdjE'></tfoot><dl id='iJdjE'><fieldset id='iJdjE'></fieldset></dl></div>

                          • <bdo id='iJdjE'></bdo><ul id='iJdjE'></ul>
                              <tbody id='iJdjE'></tbody>