1 .首先工程打开在configurations中添加其他自定义模式,例如: Test模式

iOS 使用build-configuration配置debug模式和release模式或其他自定义模式,处理开发环境和生产环境

2. 在preprocessor Macros 中添加 DEBUG=1  或者 RELEASE=1  或者 TEST=1 , 即可

iOS 使用build-configuration配置debug模式和release模式或其他自定义模式,处理开发环境和生产环境

3. 新建一个.h文件 ,用于存储常量

iOS 使用build-configuration配置debug模式和release模式或其他自定义模式,处理开发环境和生产环境

相关文章:

  • 2021-06-04
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-12-17
  • 2022-12-23
猜你喜欢
  • 2021-10-18
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-04-18
  • 2021-09-26
相关资源
相似解决方案