I would like to globally ignore all println() calls in my Swift code if I am not in a Debug build. I can\'t find any robust step by step instructions for this a
println()
Even simpler, after making sure -D DEBUG is set for the OTHER_SWIFT_FLAGS Debug build settings:
-D DEBUG
OTHER_SWIFT_FLAGS
#if !DEBUG func print(_ items: Any..., separator: String = " ", terminator: String = "\n") { } #endif