From 6b452b2861ba5785883a52ceb499d34387cda583 Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 16 Sep 2016 15:22:19 -0400 Subject: [PATCH] Move swift build settings to xcconfig files --- Configurations/ConfigUITest.xcconfig | 3 +++ Configurations/ConfigUnitTest.xcconfig | 1 + Sparkle.xcodeproj/project.pbxproj | 11 ----------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Configurations/ConfigUITest.xcconfig b/Configurations/ConfigUITest.xcconfig index 7b1706bd..5e421513 100644 --- a/Configurations/ConfigUITest.xcconfig +++ b/Configurations/ConfigUITest.xcconfig @@ -9,3 +9,6 @@ LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks TEST_TARGET_NAME = Sparkle Test App USES_XCTRUNNER = YES + +SWIFT_VERSION = 3.0 +SWIFT_OPTIMIZATION_LEVEL = -Onone diff --git a/Configurations/ConfigUnitTest.xcconfig b/Configurations/ConfigUnitTest.xcconfig index 36dc8857..598d55e2 100644 --- a/Configurations/ConfigUnitTest.xcconfig +++ b/Configurations/ConfigUnitTest.xcconfig @@ -9,4 +9,5 @@ FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks MACOSX_DEPLOYMENT_TARGET = 10.9 CLANG_ENABLE_MODULES = YES +SWIFT_VERSION = 3.0 SWIFT_OBJC_BRIDGING_HEADER = Tests/Sparkle Unit Tests-Bridging-Header.h diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 6042123d..dbd6a8f2 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -3436,7 +3436,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */; buildSettings = { - SWIFT_VERSION = 3.0; }; name = Coverage; }; @@ -3525,7 +3524,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 72F94EDA1CC36C37002DEE68 /* ConfigTestAppDebug.xcconfig */; buildSettings = { - SWIFT_VERSION = 3.0; }; name = Debug; }; @@ -3533,7 +3531,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941CD0D94A70100DD942E /* ConfigTestApp.xcconfig */; buildSettings = { - SWIFT_VERSION = 3.0; }; name = Release; }; @@ -3604,9 +3601,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */; buildSettings = { - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; }; name = Debug; }; @@ -3614,9 +3608,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */; buildSettings = { - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; }; name = Coverage; }; @@ -3624,8 +3615,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */; buildSettings = { - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; - SWIFT_VERSION = 3.0; }; name = Release; };