如果想要条件编译, 如下代码
#if PRODUCT #else #endif
在Other Swift Flags里面定义两行 -D PRODUCT
Active Compilation Conditions 中加一行 PRODUCT 这样就与OC的Preprocessor Macros一样的了。
在混编的时候,OC与Swift都需要配置哦。OC配置Preprocessor Macros 或者Other C Flags