OTHER_SWIFT_FLAGS_ENABLE_PREVIEWS_YES = "-DENABLE_PREVIEWS"
OTHER_SWIFT_FLAGS_ENABLE_PREVIEWS_NO = ""
OTHER_SWIFT_FLAGS_ENABLE_PREVIEWS = $(OTHER_SWIFT_FLAGS_ENABLE_PREVIEWS_$(ENABLE_PREVIEWS))
Cool. But not usable as Xcode editor does set ENABLE_PREVIEWS
build flag, so all errors are missing in editor, which makes it hard to use.
In theory, could be useful when you want to exclude something during debug build that is not in active preview.