xcode 添加configuration
作者:
yxc木易星辰 | 来源:发表于
2020-05-14 15:40 被阅读0次
主工程PROJECT->info->Configurations 下
点击+,重命名为Test
主工程TARGETS->Build Settings->Preprocesser Macros
Test 下删除debug(如果复制的debug环境变量的话)相关,如DEBUG=1,添加TEST=1
pch 配置
#ifdef DEBUG
//debug configuration preprocesser macros
#elif defined TEST
//test configuration preprocesser macros
#else
//other configuration preprocesser macros
#endif
pod 配置 项目中只用pod 需要重新install
pod install
本文标题:xcode 添加configuration
本文链接:https://www.haomeiwen.com/subject/skitohtx.html
网友评论