Xcode variables

烈酒焚心 提交于 2019-12-20 08:21:09

问题


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?


回答1:


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




回答2:


Here's a list of the environment variables. I think you might want CURRENT_VARIANT. See also BUILD_VARIANTS.



来源:https://stackoverflow.com/questions/890569/xcode-variables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!