Xcode变量 [英] Xcode variables

查看:66
本文介绍了Xcode变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode中,我知道您可以获得诸如$code> PROJECT_DIR 之类的变量,以便在某些情况下使用,例如运行脚本构建阶段。我想知道是否可以获取构建类型(即 Release Debug )。有任何想法吗?

In Xcode, I know that you can get variables such as PROJECT_DIR to use in some situations, such as a run script build phase. I am wondering if it's possible to get the build type (i.e., Release or Debug). Any ideas?

推荐答案

最好的来源可能是 Apple的官方文档。您要查找的特定变量是CONFIGURATION。

The best source is probably Apple's official documentation. The specific variable you are looking for is CONFIGURATION.

这篇关于Xcode变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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