iOS 配置多target

215 阅读1分钟
流程

copy出一个新target
修改 target info.plist Scheme 名称
配置Info.plist
设置宏定义(Preprocessor Macros)
通过宏判断区分不同target 编译不同代码
#ifdef

#else

#endif