From c49df15f13a5d4a00c83ebc1973823bcab679f36 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 25 May 2020 22:05:57 -0400 Subject: [PATCH 1/9] Use build matrix to test on multiple Xcode versions --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bfec1ffe..841ac7b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,13 @@ +os: osx language: objective-c -osx_image: xcode9 +osx_image: + - xcode8 + - xcode8.3 + - xcode9 + - xcode9.4 + - xcode10.3 + - xcode11.4 before_install: - brew update -script: make ci +script: + - xcodebuild -scheme Distribution -configuration Coverage -derivedDataPath build | xcpretty From 6468ea2bb5d427d425e98b4ca163c6f86bb013ee Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 25 May 2020 22:09:51 -0400 Subject: [PATCH 2/9] Remove brew update, nothing is being installed afterwards --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 841ac7b3..d4153edd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,5 @@ osx_image: - xcode9.4 - xcode10.3 - xcode11.4 -before_install: - - brew update script: - xcodebuild -scheme Distribution -configuration Coverage -derivedDataPath build | xcpretty From 372d75cc098edf90558e171767a41328f4b67042 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 25 May 2020 22:15:39 -0400 Subject: [PATCH 3/9] Fail the build if xcodebuild runs into an error --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d4153edd..711ea0bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ osx_image: - xcode10.3 - xcode11.4 script: - - xcodebuild -scheme Distribution -configuration Coverage -derivedDataPath build | xcpretty + - set -o pipefail && xcodebuild -scheme Distribution -configuration Coverage -derivedDataPath build | xcpretty From 6c3ce5cb97af7c9db75f56a87cc43002fe9a92b1 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 25 May 2020 22:57:43 -0400 Subject: [PATCH 4/9] Remove old code coverage configurations Apple has a new way of enabling and formatting code coverage info --- Configurations/ConfigCommonCoverage.xcconfig | 10 -- Configurations/ConfigUITestCoverage.xcconfig | 4 - .../ConfigUnitTestCoverage.xcconfig | 4 - Sparkle.xcodeproj/project.pbxproj | 143 ------------------ 4 files changed, 161 deletions(-) delete mode 100644 Configurations/ConfigCommonCoverage.xcconfig delete mode 100644 Configurations/ConfigUITestCoverage.xcconfig delete mode 100644 Configurations/ConfigUnitTestCoverage.xcconfig diff --git a/Configurations/ConfigCommonCoverage.xcconfig b/Configurations/ConfigCommonCoverage.xcconfig deleted file mode 100644 index 1f95d774..00000000 --- a/Configurations/ConfigCommonCoverage.xcconfig +++ /dev/null @@ -1,10 +0,0 @@ -#include "ConfigCommonDebug.xcconfig" - -CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; -CLANG_WARN_COMMA = YES; -CLANG_WARN_INFINITE_RECURSION = YES; -CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; -CLANG_WARN_STRICT_PROTOTYPES = YES; -CLANG_WARN_SUSPICIOUS_MOVE = YES; -GCC_GENERATE_TEST_COVERAGE_FILES = YES -GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES diff --git a/Configurations/ConfigUITestCoverage.xcconfig b/Configurations/ConfigUITestCoverage.xcconfig deleted file mode 100644 index c4cf79fd..00000000 --- a/Configurations/ConfigUITestCoverage.xcconfig +++ /dev/null @@ -1,4 +0,0 @@ -#include "ConfigUITest.xcconfig" - -GCC_GENERATE_TEST_COVERAGE_FILES = NO -GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO diff --git a/Configurations/ConfigUnitTestCoverage.xcconfig b/Configurations/ConfigUnitTestCoverage.xcconfig deleted file mode 100644 index f3d5d3db..00000000 --- a/Configurations/ConfigUnitTestCoverage.xcconfig +++ /dev/null @@ -1,4 +0,0 @@ -#include "ConfigUnitTest.xcconfig" - -GCC_GENERATE_TEST_COVERAGE_FILES = NO -GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 73c8b222..e4c3c5de 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -583,8 +583,6 @@ 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdaterTest.m; sourceTree = ""; usesTabs = 0; }; 14958C6B19AEBC530061B14F /* signed-test-file.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "signed-test-file.txt"; sourceTree = ""; }; 14958C6C19AEBC610061B14F /* test-pubkey.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "test-pubkey.pem"; sourceTree = ""; }; - 149B78631B7D3A0C00D7D62C /* ConfigCommonCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigCommonCoverage.xcconfig; sourceTree = ""; }; - 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUnitTestCoverage.xcconfig; sourceTree = ""; }; 1A985A321C5C329C0001163A /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/InfoPlist.strings; sourceTree = ""; }; 1A985A331C5C329D0001163A /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = ""; }; 1A985A341C5C329E0001163A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; @@ -927,7 +925,6 @@ 729924711DF3478A00DBCDF5 /* SUUpdateValidator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateValidator.h; sourceTree = ""; }; 729924721DF3478A00DBCDF5 /* SUUpdateValidator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateValidator.m; sourceTree = ""; }; 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITest.xcconfig; sourceTree = ""; }; - 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestCoverage.xcconfig; sourceTree = ""; }; 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestDebug.xcconfig; sourceTree = ""; }; 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestRelease.xcconfig; sourceTree = ""; }; 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUFileManagerTest.swift; sourceTree = ""; }; @@ -1607,7 +1604,6 @@ 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */, 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */, FA1941D00D94A70100DD942E /* ConfigCommon.xcconfig */, - 149B78631B7D3A0C00D7D62C /* ConfigCommonCoverage.xcconfig */, FA1941CF0D94A70100DD942E /* ConfigCommonDebug.xcconfig */, FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */, 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */, @@ -1630,11 +1626,9 @@ FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */, FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */, 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */, - 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */, 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */, 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */, FA3AAF3B1050B273004B3130 /* ConfigUnitTest.xcconfig */, - 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */, FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */, FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */, EA4311C9229D614300A5503D /* ed25519-Debug.xcconfig */, @@ -2809,70 +2803,6 @@ }; name = Release; }; - 149B785A1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 149B78631B7D3A0C00D7D62C /* ConfigCommonCoverage.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785B1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - DEFINES_MODULE = YES; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Coverage; - }; - 149B785C1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785D1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785E1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785F1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B78601B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Coverage; - }; - 149B78611B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Coverage; - }; - 149B78621B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Coverage; - }; 1DEB91AE08733DA50010E9CD /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; @@ -2933,15 +2863,6 @@ }; name = Debug; }; - 5A5ADEDD214EDE4900DF0099 /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Coverage; - }; 5A5ADEDE214EDE4900DF0099 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 5AB8F1A9214DA85900A1187F /* ConfigGenerateKeysRelease.xcconfig */; @@ -2959,14 +2880,6 @@ }; name = Debug; }; - 5AA96C5A1E0AE0DC00CA4346 /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 7205C4351E12CA7000E370AE /* ConfigGenerateAppcastDebug.xcconfig */; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - }; - name = Coverage; - }; 5AA96C5B1E0AE0DC00CA4346 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 7205C4341E12C66D00E370AE /* ConfigGenerateAppcastRelease.xcconfig */; @@ -2985,16 +2898,6 @@ }; name = Debug; }; - 5AB8F1A5214DA72000A1187F /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5AB8F1AA214DA85900A1187F /* ConfigGenerateKeysDebug.xcconfig */; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - }; - name = Coverage; - }; 5AB8F1A6214DA72000A1187F /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 5AB8F1A9214DA85900A1187F /* ConfigGenerateKeysRelease.xcconfig */; @@ -3056,15 +2959,6 @@ }; name = Debug; }; - 722954B91D04ADAF00ECF9CA /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */; - buildSettings = { - GCC_WARN_UNUSED_VARIABLE = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Coverage; - }; 722954BA1D04ADAF00ECF9CA /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */; @@ -3081,13 +2975,6 @@ }; name = Debug; }; - 726B2B651C645FC900388755 /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; 726B2B661C645FC900388755 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */; @@ -3102,13 +2989,6 @@ }; name = Debug; }; - EA4311A3229D5FBC00A5503D /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = EA4311C9229D614300A5503D /* ed25519-Debug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; EA4311A4229D5FBC00A5503D /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = EA4311C8229D613B00A5503D /* ed25519-Release.xcconfig */; @@ -3123,13 +3003,6 @@ }; name = Debug; }; - EA4311ED229D651300A5503D /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = EA4311FA229D656700A5503D /* bsdiff-Debug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; EA4311EE229D651300A5503D /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = EA4311FB229D657A00A5503D /* bsdiff-Release.xcconfig */; @@ -3144,7 +3017,6 @@ isa = XCConfigurationList; buildConfigurations = ( 1420DF4B1962329200203BB0 /* Debug */, - 149B78611B7D398100D7D62C /* Coverage */, 1420DF4C1962329200203BB0 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3154,7 +3026,6 @@ isa = XCConfigurationList; buildConfigurations = ( 14732BC71960F69300593899 /* Debug */, - 149B78601B7D398100D7D62C /* Coverage */, 14732BC81960F69300593899 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3164,7 +3035,6 @@ isa = XCConfigurationList; buildConfigurations = ( 14950061195FB89500BC5B5B /* Debug */, - 149B78621B7D398100D7D62C /* Coverage */, 14950062195FB89500BC5B5B /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3174,7 +3044,6 @@ isa = XCConfigurationList; buildConfigurations = ( 1DEB91AE08733DA50010E9CD /* Debug */, - 149B785B1B7D398100D7D62C /* Coverage */, 1DEB91AF08733DA50010E9CD /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3184,7 +3053,6 @@ isa = XCConfigurationList; buildConfigurations = ( 1DEB91B208733DA50010E9CD /* Debug */, - 149B785A1B7D398100D7D62C /* Coverage */, 1DEB91B308733DA50010E9CD /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3194,7 +3062,6 @@ isa = XCConfigurationList; buildConfigurations = ( 55C14BBB136EEF1500649790 /* Debug */, - 149B785F1B7D398100D7D62C /* Coverage */, 55C14BBC136EEF1500649790 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3204,7 +3071,6 @@ isa = XCConfigurationList; buildConfigurations = ( 5A5ADEDC214EDE4900DF0099 /* Debug */, - 5A5ADEDD214EDE4900DF0099 /* Coverage */, 5A5ADEDE214EDE4900DF0099 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3214,7 +3080,6 @@ isa = XCConfigurationList; buildConfigurations = ( 5AA96C591E0AE0DC00CA4346 /* Debug */, - 5AA96C5A1E0AE0DC00CA4346 /* Coverage */, 5AA96C5B1E0AE0DC00CA4346 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3224,7 +3089,6 @@ isa = XCConfigurationList; buildConfigurations = ( 5AB8F1A4214DA72000A1187F /* Debug */, - 5AB8F1A5214DA72000A1187F /* Coverage */, 5AB8F1A6214DA72000A1187F /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3234,7 +3098,6 @@ isa = XCConfigurationList; buildConfigurations = ( 5D06E8D20FD68C7D005AE3F6 /* Debug */, - 149B785E1B7D398100D7D62C /* Coverage */, 5D06E8D30FD68C7D005AE3F6 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3244,7 +3107,6 @@ isa = XCConfigurationList; buildConfigurations = ( 612279DB0DB5470300AB99EA /* Debug */, - 149B785D1B7D398100D7D62C /* Coverage */, 612279DC0DB5470300AB99EA /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3254,7 +3116,6 @@ isa = XCConfigurationList; buildConfigurations = ( 61B5F90609C4CEE300B25A18 /* Debug */, - 149B785C1B7D398100D7D62C /* Coverage */, 61B5F90709C4CEE300B25A18 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3264,7 +3125,6 @@ isa = XCConfigurationList; buildConfigurations = ( 722954B81D04ADAF00ECF9CA /* Debug */, - 722954B91D04ADAF00ECF9CA /* Coverage */, 722954BA1D04ADAF00ECF9CA /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3274,7 +3134,6 @@ isa = XCConfigurationList; buildConfigurations = ( 726B2B641C645FC900388755 /* Debug */, - 726B2B651C645FC900388755 /* Coverage */, 726B2B661C645FC900388755 /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3284,7 +3143,6 @@ isa = XCConfigurationList; buildConfigurations = ( EA4311A2229D5FBC00A5503D /* Debug */, - EA4311A3229D5FBC00A5503D /* Coverage */, EA4311A4229D5FBC00A5503D /* Release */, ); defaultConfigurationIsVisible = 0; @@ -3294,7 +3152,6 @@ isa = XCConfigurationList; buildConfigurations = ( EA4311EC229D651300A5503D /* Debug */, - EA4311ED229D651300A5503D /* Coverage */, EA4311EE229D651300A5503D /* Release */, ); defaultConfigurationIsVisible = 0; From 13cadf0118bb113f8d965d822ff1384fa2ff78f1 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 25 May 2020 23:05:13 -0400 Subject: [PATCH 5/9] Fix CI test script --- .travis.yml | 2 +- Sparkle.podspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 711ea0bc..934bb9a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ osx_image: - xcode10.3 - xcode11.4 script: - - set -o pipefail && xcodebuild -scheme Distribution -configuration Coverage -derivedDataPath build | xcpretty + - set -o pipefail && xcodebuild test -project Sparkle.xcodeproj -scheme Distribution -derivedDataPath build -enableCodeCoverage YES | xcpretty diff --git a/Sparkle.podspec b/Sparkle.podspec index c295d446..e1d7f040 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Sparkle" - s.version = "1.23.0" + s.version = "1.24.0" s.summary = "A software update framework for macOS" s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers." s.homepage = "http://sparkle-project.org" From a746675f539e3d65ee74c9bf42d233d09f74660b Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 25 May 2020 23:13:59 -0400 Subject: [PATCH 6/9] Set Swift Language Version to 4.2 in top level config --- Sparkle.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index e4c3c5de..15c0ad6e 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -2828,6 +2828,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941CF0D94A70100DD942E /* ConfigCommonDebug.xcconfig */; buildSettings = { + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -2836,6 +2837,7 @@ baseConfigurationReference = FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */; buildSettings = { SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 4.2; }; name = Release; }; From 1690ce6cbc7db428c8bc57300fce06fd84a7da28 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 25 May 2020 23:39:17 -0400 Subject: [PATCH 7/9] Only run tests on Xcode 10+ Sparkle uses Swift 4.2 which isn't supported on earlier Xcode versions --- .travis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 934bb9a1..5d5897e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,9 @@ os: osx language: objective-c osx_image: - - xcode8 - - xcode8.3 - - xcode9 - - xcode9.4 + - xcode10 - xcode10.3 + - xcode11.3 - xcode11.4 script: - set -o pipefail && xcodebuild test -project Sparkle.xcodeproj -scheme Distribution -derivedDataPath build -enableCodeCoverage YES | xcpretty From df718b0c4c08f6c0b9d162df14d39f263e75f21b Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Tue, 26 May 2020 00:34:15 -0400 Subject: [PATCH 8/9] Fix SUCodeSigningVerifierTest on macOS 10.15 Pre-installed apps, such as Calculator, are now installed under the System folder --- Tests/SUCodeSigningVerifierTest.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/SUCodeSigningVerifierTest.m b/Tests/SUCodeSigningVerifierTest.m index a78b5b2e..460b2c2c 100644 --- a/Tests/SUCodeSigningVerifierTest.m +++ b/Tests/SUCodeSigningVerifierTest.m @@ -11,7 +11,12 @@ #import "SUCodeSigningVerifier.h" #import "SUFileManager.h" +#if defined(__MAC_10_15) +// In macOS 10.15 and later, pre-installed apps are installed under the System folder +#define CALCULATOR_PATH @"/System/Applications/Calculator.app" +#else #define CALCULATOR_PATH @"/Applications/Calculator.app" +#endif @interface SUCodeSigningVerifierTest : XCTestCase From d0e054fc5486db2a1c90a9d2aabe035dc465ed41 Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Tue, 26 May 2020 00:53:54 -0400 Subject: [PATCH 9/9] Only use Xcode 10.3 and 11.4 --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5d5897e9..b46ee7b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,7 @@ os: osx language: objective-c osx_image: - - xcode10 - xcode10.3 - - xcode11.3 - xcode11.4 script: - set -o pipefail && xcodebuild test -project Sparkle.xcodeproj -scheme Distribution -derivedDataPath build -enableCodeCoverage YES | xcpretty