From 89ecb88f2b7708b5e3ea36c38352e24b797ab333 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 6 Jun 2021 19:34:53 -0700 Subject: [PATCH] Define DEBUG=0 for release builds --- Configurations/ConfigCommonRelease.xcconfig | 2 +- TestApplication/SUTestApplicationDelegate.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Configurations/ConfigCommonRelease.xcconfig b/Configurations/ConfigCommonRelease.xcconfig index 7b16ab2e..7f5eceab 100644 --- a/Configurations/ConfigCommonRelease.xcconfig +++ b/Configurations/ConfigCommonRelease.xcconfig @@ -11,7 +11,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES; GCC_OPTIMIZATION_LEVEL = s DEBUG_INFORMATION_FORMAT = dwarf-with-dsym GCC_GENERATE_DEBUGGING_SYMBOLS = YES -GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) +GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) DEBUG=0 DEAD_CODE_STRIPPING = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_WARN_UNINITIALIZED_AUTOS = YES diff --git a/TestApplication/SUTestApplicationDelegate.m b/TestApplication/SUTestApplicationDelegate.m index fe51a399..176aa0ac 100644 --- a/TestApplication/SUTestApplicationDelegate.m +++ b/TestApplication/SUTestApplicationDelegate.m @@ -53,7 +53,7 @@ static NSString * const UPDATED_VERSION = @"2.0"; // Apple's file manager may not work well over the network (on macOS 10.11.4 as of writing this), but at the same time // I don't want to have to export SUFileManager in release mode. The test app is primarily // aimed to be used in debug mode, so I think this is a good compromise -#ifdef DEBUG +#if DEBUG SUFileManager *fileManager = [[SUFileManager alloc] init]; #else NSFileManager *fileManager = [NSFileManager defaultManager];