xcode 添加configuration

2020-05-14  本文已影响0人  yxc木易星辰

主工程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 
上一篇 下一篇

猜你喜欢

热点阅读