如何在 Xcode 4 中使用 .xcconfig 文件? [英] How can I use .xcconfig files in Xcode 4?

查看:22
本文介绍了如何在 Xcode 4 中使用 .xcconfig 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚切换到 Xcode 4,但在使用 .xcconfig 文件进行构建设置时遇到了问题.我已经在 Xcode 3 中分配了文件的目标都已设置 - 标题为 Config.file 的列显示在 Build Settings 的 Levels 视图中.但我不知道如何编辑此视图中的列或将 .xcconfig 文件放在何处以将其附加到新目标.我在网上查过,没有找到答案.有人知道怎么做吗?

I just switched over to Xcode 4 and I'm having trouble working with .xcconfig files for build settings. My targets that already had files assigned in Xcode 3 are all set up - a column titled Config.file shows up in the Levels view of Build Settings. But I can't figure out how to edit the columns in this view or where to put an .xcconfig file to attach it to a new target. I've looked online and haven't found an answer. Anybody know how to do this?

推荐答案

选择文件 |新建,选择其他和配置设置文件",这将为您提供一个新的 .xcconfig 文件.

Pick File | New, choose Other and "Configuration Settings File", this gets you a new .xcconfig file.

然后单击文件浏览器左上角的项目(与构建设置相同的位置),再次单击左第二个面板中的项目,然后单击信息"选项卡内面板顶部.

Then click on the project on the upper left in the file browser (the same place where you get to build settings), click on the project again in the second-to-left panel, and click on the Info tab at the top of the inner panel.

在那里,您可以为每个配置(调试、发布等)的每个目标选择基于配置文件"

There, you can choose "Based on Configuration File" for each of your targets for each of your configurations (debug, release, etc.)

希望这有帮助!

这篇关于如何在 Xcode 4 中使用 .xcconfig 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆