From 0dd0fc9418a16d9b265cef9ee55c6163992a6f2a Mon Sep 17 00:00:00 2001 From: Tanner Bennett Date: Sun, 4 Nov 2018 01:20:05 -0600 Subject: [PATCH] Update to recommended project settings Silence warning for "implementing deprecated method" in Apple's own sample code. --- Example/UICatalog.xcodeproj/project.pbxproj | 6 +++++- .../xcshareddata/xcschemes/UICatalog.xcscheme | 4 +--- Example/UICatalog/AAPLSplitViewControllerDelegate.m | 5 +++++ FLEX.xcodeproj/xcshareddata/xcschemes/FLEX.xcscheme | 4 +--- FLEX.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++++ 5 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 FLEX.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Example/UICatalog.xcodeproj/project.pbxproj b/Example/UICatalog.xcodeproj/project.pbxproj index b743b80ea5..d0024ffcc6 100644 --- a/Example/UICatalog.xcodeproj/project.pbxproj +++ b/Example/UICatalog.xcodeproj/project.pbxproj @@ -332,7 +332,7 @@ 5356823218F3656900BAAD62 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0920; + LastUpgradeCheck = 1000; ORGANIZATIONNAME = f; }; buildConfigurationList = 5356823518F3656900BAAD62 /* Build configuration list for PBXProject "UICatalog" */; @@ -448,12 +448,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 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_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -499,12 +501,14 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 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_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; diff --git a/Example/UICatalog.xcodeproj/xcshareddata/xcschemes/UICatalog.xcscheme b/Example/UICatalog.xcodeproj/xcshareddata/xcschemes/UICatalog.xcscheme index 2fe18a9c35..df0b55e7de 100644 --- a/Example/UICatalog.xcodeproj/xcshareddata/xcschemes/UICatalog.xcscheme +++ b/Example/UICatalog.xcodeproj/xcshareddata/xcschemes/UICatalog.xcscheme @@ -1,6 +1,6 @@ @@ -46,7 +45,6 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/Example/UICatalog/AAPLSplitViewControllerDelegate.m b/Example/UICatalog/AAPLSplitViewControllerDelegate.m index 4a6c599839..aa5c9d401d 100644 --- a/Example/UICatalog/AAPLSplitViewControllerDelegate.m +++ b/Example/UICatalog/AAPLSplitViewControllerDelegate.m @@ -49,6 +49,9 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF @implementation AAPLSplitViewControllerDelegate +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-implementations" + #pragma mark - UISplitViewControllerDelegate // Implementing this delegate method allows us to present the detail view controller with the "More" bar button item. @@ -75,4 +78,6 @@ - (void)splitViewController:(UISplitViewController *)splitViewController willSho [detailRootViewController.navigationItem setLeftBarButtonItem:nil animated:YES]; } +#pragma clang diagnostic pop + @end diff --git a/FLEX.xcodeproj/xcshareddata/xcschemes/FLEX.xcscheme b/FLEX.xcodeproj/xcshareddata/xcschemes/FLEX.xcscheme index 0cb113b846..e84ecb3036 100644 --- a/FLEX.xcodeproj/xcshareddata/xcschemes/FLEX.xcscheme +++ b/FLEX.xcodeproj/xcshareddata/xcschemes/FLEX.xcscheme @@ -1,6 +1,6 @@ @@ -46,7 +45,6 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - language = "" launchStyle = "0" useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" diff --git a/FLEX.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/FLEX.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000..18d981003d --- /dev/null +++ b/FLEX.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + +