xcconfig 配置正式环境测试环境自动切换 发表于 2021-02-19 | 分类于 iOS 新建 xcconfig 文件夹 接着新建 3 个 xcconfig 文件 接着配置一下 Config.xcconfig 1GCC_PREPROCESSOR_DEFINITIONS = $(inherited) URL='$(URL)' Debug.xcconfig 123456#include "Config.xcconfig"#include "Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig"URL=@"测式" Release.xcconfig 12345#include "Config.xcconfig"#include "Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig"URL=@"正式"