Swift 区分不同的target 在 Build Settings中,找到 Swift Compiler - Custom Flags 。设置值为 -DDEV 来表明当前为 target 为开发版 判断用法 #if #else #end