DEBUG always defined for Swift

I put this into a file:

#if DEBUG
#warning("Building with debug")
#endif

It always warns when I build in Xcode -- even when I'm (allegedly) using the Release configuration.

I created a new scheme called "Release", and changed the Run > Build Configuration to "Release". (And then I went and changed everything from "Debug" to "Release" in the scheme.)

But I always get the warning. (In Xcode. If I use xcodebuild -configuration Release I don't get the warning.)

Oh, no, it's weirder -- command-B defines it, but command-R's build does not. Weird, but ok I guess.

DEBUG always defined for Swift
 
 
Q