diff --git a/Configurations/ConfigSwift.xcconfig b/Configurations/ConfigSwift.xcconfig new file mode 100644 index 00000000..8e0862f9 --- /dev/null +++ b/Configurations/ConfigSwift.xcconfig @@ -0,0 +1 @@ +SWIFT_VERSION = 3.0 diff --git a/Configurations/ConfigUITest.xcconfig b/Configurations/ConfigUITest.xcconfig index 5e421513..169cd79f 100644 --- a/Configurations/ConfigUITest.xcconfig +++ b/Configurations/ConfigUITest.xcconfig @@ -1,5 +1,7 @@ // UI Test only +#include "ConfigSwift.xcconfig" + INFOPLIST_FILE = UITests/UITests-Info.plist WRAPPER_EXTENSION = xctest MACOSX_DEPLOYMENT_TARGET = 10.11 @@ -10,5 +12,4 @@ 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 598d55e2..e1faca70 100644 --- a/Configurations/ConfigUnitTest.xcconfig +++ b/Configurations/ConfigUnitTest.xcconfig @@ -1,5 +1,7 @@ // Unit Test only +#include "ConfigSwift.xcconfig" + INFOPLIST_FILE = Tests/SparkleTests-Info.plist WRAPPER_EXTENSION = xctest OTHER_CFLAGS = $(inherited) -iframework"$(DEVELOPER_FRAMEWORKS_DIR)" -iframework"$(PLATFORM_DIR)/Developer/Library/Frameworks" @@ -9,5 +11,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 +SWIFT_OPTIMIZATION_LEVEL = -Onone diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index f409354f..c9a56230 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -911,6 +911,7 @@ 7229E1B81C97CC4D00CB50D0 /* SPUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUScheduledUpdateDriver.m; sourceTree = ""; }; 7229E1BB1C98EFF200CB50D0 /* SPUDownloadDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPUDownloadDriver.h; sourceTree = ""; }; 7229E1BC1C98EFF200CB50D0 /* SPUDownloadDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPUDownloadDriver.m; sourceTree = ""; }; + 722FB7CA1DD69897001D40CE /* ConfigSwift.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigSwift.xcconfig; sourceTree = ""; }; 723B5D9F1CF7AB0100365F95 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Downloader/Info.plist; sourceTree = SOURCE_ROOT; }; 723B5DA01CF7AB0100365F95 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Downloader/main.m; sourceTree = SOURCE_ROOT; }; 723B5DA21CF7AB0100365F95 /* SPUDownloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SPUDownloader.h; path = Downloader/SPUDownloader.h; sourceTree = SOURCE_ROOT; }; @@ -1910,6 +1911,7 @@ 728638EE1CAF589C00783084 /* ConfigDownloader.xcconfig */, 72F94ED61CC344A7002DEE68 /* ConfigDownloaderDebug.xcconfig */, 72D954B01CBB41E2006F28BD /* ConfigSparkleTool.xcconfig */, + 722FB7CA1DD69897001D40CE /* ConfigSwift.xcconfig */, 14732BC91960F70A00593899 /* make-release-package.sh */, 14652F7919A93E5F00959E44 /* set-git-version-info.sh */, 729BB3CE1D50344A007C4276 /* set-ats-exceptions-downloader-service.sh */,