From e7f8161ae4a62a3fe7cdc79739f2cd45e0c1b6c9 Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Sat, 25 Jul 2020 02:17:07 -0500 Subject: [PATCH] Update last migration check version of project and schemes as of Xcode 12's checks. Fix how WMO is enabled for Swift code in Release builds. --- Configurations/ConfigSwift.xcconfig | 2 +- Configurations/ConfigSwiftRelease.xcconfig | 3 ++- Sparkle.xcodeproj/project.pbxproj | 3 ++- .../xcschemes/Distribution.xcscheme | 2 +- .../xcshareddata/xcschemes/Sparkle.xcscheme | 17 +------------- .../xcshareddata/xcschemes/UITests.xcscheme | 8 +------ .../xcschemes/generate_appcast.xcscheme | 23 ++++--------------- .../xcschemes/generate_keys.xcscheme | 15 +----------- .../xcschemes/sign_update.xcscheme | 15 +----------- 9 files changed, 14 insertions(+), 74 deletions(-) diff --git a/Configurations/ConfigSwift.xcconfig b/Configurations/ConfigSwift.xcconfig index 95c45171..e806584e 100644 --- a/Configurations/ConfigSwift.xcconfig +++ b/Configurations/ConfigSwift.xcconfig @@ -1,2 +1,2 @@ -SWIFT_VERSION = 4.0 +SWIFT_VERSION = 5 SWIFT_SWIFT3_OBJC_INFERENCE = Off; diff --git a/Configurations/ConfigSwiftRelease.xcconfig b/Configurations/ConfigSwiftRelease.xcconfig index 5ce394ff..89ad1975 100644 --- a/Configurations/ConfigSwiftRelease.xcconfig +++ b/Configurations/ConfigSwiftRelease.xcconfig @@ -1 +1,2 @@ -SWIFT_OPTIMIZATION_LEVEL = -Owholemodule +SWIFT_OPTIMIZATION_LEVEL = -O +SWIFT_COMPILATION_MODE = wholemodule diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 403c1726..8c6cb113 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -2834,7 +2834,7 @@ attributes = { CLASSPREFIX = SU; LastSwiftUpdateCheck = 1020; - LastUpgradeCheck = 0830; + LastUpgradeCheck = 1200; ORGANIZATIONNAME = "Sparkle Project"; TargetAttributes = { 612279D80DB5470200AB99EA = { @@ -2850,6 +2850,7 @@ }; 7205C43D1E13049400E370AE = { CreatedOnToolsVersion = 8.2.1; + LastSwiftMigration = 1200; ProvisioningStyle = Automatic; }; 721C24441CB753E6005440CB = { diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme index 36d55d6f..a788391f 100644 --- a/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme @@ -1,6 +1,6 @@ - - - - - - - - - - - - @@ -26,27 +26,14 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - language = "" shouldUseLaunchSchemeArgsEnv = "YES"> - - - - - - - - diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/generate_keys.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/generate_keys.xcscheme index e4f02895..62ee2add 100644 --- a/Sparkle.xcodeproj/xcshareddata/xcschemes/generate_keys.xcscheme +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/generate_keys.xcscheme @@ -1,6 +1,6 @@ - - - - - - - - - - - - - - - -