From d82a2ea0aa5ee0b11e841b09b380640f0e96427b Mon Sep 17 00:00:00 2001 From: Steve Nygard Date: Mon, 5 Jun 2017 23:27:03 -0600 Subject: [PATCH] Apply Xcode 9 beta recommended settings. --- UnitTests/UnitTests-Info.plist | 2 +- class-dump.xcodeproj/project.pbxproj | 21 ++++++++++++++++++- .../xcschemes/MachObjC.xcscheme | 13 +++++++----- .../nygard.xcuserdatad/xcschemes/all.xcscheme | 13 +++++++----- .../xcschemes/class-dump.xcscheme | 13 +++++++----- .../xcschemes/deprotect.xcscheme | 13 +++++++----- .../xcschemes/formatType.xcscheme | 13 +++++++----- 7 files changed, 61 insertions(+), 27 deletions(-) diff --git a/UnitTests/UnitTests-Info.plist b/UnitTests/UnitTests-Info.plist index aea98b08..169b6f71 100644 --- a/UnitTests/UnitTests-Info.plist +++ b/UnitTests/UnitTests-Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - com.stevenygard.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType diff --git a/class-dump.xcodeproj/project.pbxproj b/class-dump.xcodeproj/project.pbxproj index 207acd70..d92ecdbc 100644 --- a/class-dump.xcodeproj/project.pbxproj +++ b/class-dump.xcodeproj/project.pbxproj @@ -926,7 +926,7 @@ 01EB825613A590D9003EDE60 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0640; + LastUpgradeCheck = 0900; }; buildConfigurationList = 01EB825913A590D9003EDE60 /* Build configuration list for PBXProject "class-dump" */; compatibilityVersion = "Xcode 3.2"; @@ -1219,6 +1219,7 @@ "-all_load", "-ObjC", ); + PRODUCT_BUNDLE_IDENTIFIER = "com.stevenygard.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = xctest; }; @@ -1252,6 +1253,7 @@ "___info_plist", Info.plist, ); + PRODUCT_BUNDLE_IDENTIFIER = "com.stevenygard.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = xctest; }; @@ -1305,16 +1307,25 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_OBJC_EXCEPTIONS = YES; @@ -1354,12 +1365,20 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = YES; diff --git a/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/MachObjC.xcscheme b/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/MachObjC.xcscheme index 1e64857d..ba5e77d7 100644 --- a/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/MachObjC.xcscheme +++ b/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/MachObjC.xcscheme @@ -1,6 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -39,17 +39,20 @@ + + + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -70,17 +70,20 @@ ReferencedContainer = "container:class-dump.xcodeproj"> + + @@ -98,10 +101,10 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -56,17 +56,20 @@ ReferencedContainer = "container:class-dump.xcodeproj"> + + @@ -114,10 +117,10 @@ diff --git a/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/deprotect.xcscheme b/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/deprotect.xcscheme index 1a59429b..21ee3b01 100644 --- a/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/deprotect.xcscheme +++ b/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/deprotect.xcscheme @@ -1,6 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -56,17 +56,20 @@ ReferencedContainer = "container:class-dump.xcodeproj"> + + @@ -84,10 +87,10 @@ diff --git a/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/formatType.xcscheme b/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/formatType.xcscheme index 9f0da0c3..cb03a8c9 100644 --- a/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/formatType.xcscheme +++ b/class-dump.xcodeproj/xcuserdata/nygard.xcuserdatad/xcschemes/formatType.xcscheme @@ -1,6 +1,6 @@ + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -56,17 +56,20 @@ ReferencedContainer = "container:class-dump.xcodeproj"> + + @@ -84,10 +87,10 @@