From fa41b14edede1a3ce6adb0401b2b8aa8eb10ba32 Mon Sep 17 00:00:00 2001 From: Edwin Vermeer Date: Fri, 4 Dec 2015 11:51:55 +0100 Subject: [PATCH] test version --- EVURLCache.podspec | 12 ++- EVURLCache.xcodeproj/project.pbxproj | 98 ++++++++++++++++++- .../xcschemes/OSXcompileTest.xcscheme | 90 +++++++++++++++++ EVURLCache/Pod/EVURLCache.swift | 1 - OSXcompileTest/Info.plist | 24 +++++ OSXcompileTest/OSXcompileTest.swift | 35 +++++++ 6 files changed, 253 insertions(+), 7 deletions(-) create mode 100644 EVURLCache.xcodeproj/xcshareddata/xcschemes/OSXcompileTest.xcscheme create mode 100644 OSXcompileTest/Info.plist create mode 100644 OSXcompileTest/OSXcompileTest.swift diff --git a/EVURLCache.podspec b/EVURLCache.podspec index f5a285f..9f707b1 100644 --- a/EVURLCache.podspec +++ b/EVURLCache.podspec @@ -42,14 +42,16 @@ s.social_media_url = "http://twitter.com/evermeer" # If this Pod runs only on iOS or OS X, then specify the platform and # the deployment target. You can optionally include the target after the platform. # -# s.platform = :ios, "8.0" +s.ios.platform = :ios, "9.0" +s.osx.platform = :osx, "10.11" + # ――― Deployment targets ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # # # Specify the minimum deployment target # -s.ios.deployment_target = '8.0' -s.osx.deployment_target = '10.9' +s.ios.deployment_target = "8.0" +s.osx.deployment_target = "10.9" #s.watchos.deployment_target = '2.0' #s.tvos.deployment_target = '9.0' @@ -78,8 +80,8 @@ s.source_files = 'EVURLCache/Pod/*' # the lib prefix of their name. # -s.frameworks.ios = "Foundation", "MobileCoreServices" -s.frameworks.osx = "Foundation", "CoreServices" +s.ios.frameworks = "Foundation", "MobileCoreServices" +s.osx.frameworks = "Foundation", "CoreServices" # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # # diff --git a/EVURLCache.xcodeproj/project.pbxproj b/EVURLCache.xcodeproj/project.pbxproj index a323262..1bdf833 100644 --- a/EVURLCache.xcodeproj/project.pbxproj +++ b/EVURLCache.xcodeproj/project.pbxproj @@ -15,6 +15,8 @@ 7F4A0D621BEE497100059923 /* EVURLCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F4A0D611BEE497100059923 /* EVURLCache.swift */; }; 7F4A0D6B1BEFE4F400059923 /* PreCache in Resources */ = {isa = PBXBuildFile; fileRef = 7F4A0D6A1BEFE4F400059923 /* PreCache */; }; 7F4A41D71BF1F5BF00969D1F /* .gitattributes in Resources */ = {isa = PBXBuildFile; fileRef = 7F4A41D61BF1F5BF00969D1F /* .gitattributes */; }; + 7F4E25AD1C11A5C6009494A8 /* OSXcompileTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F4E25AC1C11A5C6009494A8 /* OSXcompileTest.swift */; }; + 7F4E25B21C11A5D0009494A8 /* EVURLCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7F4A0D611BEE497100059923 /* EVURLCache.swift */; }; C6963680666F6F39E8889141 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 05EE26FC72733C70FFA7F10C /* Pods.framework */; }; /* End PBXBuildFile section */ @@ -32,12 +34,15 @@ 7F4A0D611BEE497100059923 /* EVURLCache.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EVURLCache.swift; path = Pod/EVURLCache.swift; sourceTree = ""; }; 7F4A0D671BEF9F0700059923 /* EVURLCache.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = EVURLCache.podspec; sourceTree = ""; }; 7F4A0D681BEF9F0700059923 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; - 7F4A0D691BEFA0EB00059923 /* Podfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Podfile; sourceTree = ""; }; + 7F4A0D691BEFA0EB00059923 /* Podfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Podfile; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 7F4A0D6A1BEFE4F400059923 /* PreCache */ = {isa = PBXFileReference; lastKnownFileType = folder; path = PreCache; sourceTree = ""; }; 7F4A0D6C1BF1D4C200059923 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 7F4A0D6D1BF1D4EE00059923 /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = ""; }; 7F4A0D6E1BF1D4EE00059923 /* .travis.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .travis.yml; sourceTree = ""; }; 7F4A41D61BF1F5BF00969D1F /* .gitattributes */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .gitattributes; sourceTree = ""; }; + 7F4E25AA1C11A5C6009494A8 /* OSXcompileTest.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = OSXcompileTest.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 7F4E25AC1C11A5C6009494A8 /* OSXcompileTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OSXcompileTest.swift; sourceTree = ""; }; + 7F4E25AE1C11A5C6009494A8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -49,6 +54,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 7F4E25A71C11A5C6009494A8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -81,6 +93,7 @@ 7F4A0D691BEFA0EB00059923 /* Podfile */, 7F4A0D6A1BEFE4F400059923 /* PreCache */, 7F4A0D4D1BEE481400059923 /* EVURLCache */, + 7F4E25AB1C11A5C6009494A8 /* OSXcompileTest */, 7F4A0D4C1BEE481400059923 /* Products */, 5592D8A256F42507506CAD07 /* Pods */, 19413DFDF2B04B13ECBD1B5F /* Frameworks */, @@ -91,6 +104,7 @@ isa = PBXGroup; children = ( 7F4A0D4B1BEE481400059923 /* EVURLCache.app */, + 7F4E25AA1C11A5C6009494A8 /* OSXcompileTest.xctest */, ); name = Products; sourceTree = ""; @@ -117,6 +131,15 @@ name = Pod; sourceTree = ""; }; + 7F4E25AB1C11A5C6009494A8 /* OSXcompileTest */ = { + isa = PBXGroup; + children = ( + 7F4E25AC1C11A5C6009494A8 /* OSXcompileTest.swift */, + 7F4E25AE1C11A5C6009494A8 /* Info.plist */, + ); + path = OSXcompileTest; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -140,6 +163,23 @@ productReference = 7F4A0D4B1BEE481400059923 /* EVURLCache.app */; productType = "com.apple.product-type.application"; }; + 7F4E25A91C11A5C6009494A8 /* OSXcompileTest */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7F4E25B11C11A5C6009494A8 /* Build configuration list for PBXNativeTarget "OSXcompileTest" */; + buildPhases = ( + 7F4E25A61C11A5C6009494A8 /* Sources */, + 7F4E25A71C11A5C6009494A8 /* Frameworks */, + 7F4E25A81C11A5C6009494A8 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = OSXcompileTest; + productName = OSXcompileTest; + productReference = 7F4E25AA1C11A5C6009494A8 /* OSXcompileTest.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -153,6 +193,9 @@ 7F4A0D4A1BEE481400059923 = { CreatedOnToolsVersion = 7.1; }; + 7F4E25A91C11A5C6009494A8 = { + CreatedOnToolsVersion = 7.1.1; + }; }; }; buildConfigurationList = 7F4A0D461BEE481400059923 /* Build configuration list for PBXProject "EVURLCache" */; @@ -169,6 +212,7 @@ projectRoot = ""; targets = ( 7F4A0D4A1BEE481400059923 /* EVURLCache */, + 7F4E25A91C11A5C6009494A8 /* OSXcompileTest */, ); }; /* End PBXProject section */ @@ -186,6 +230,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 7F4E25A81C11A5C6009494A8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ @@ -247,6 +298,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 7F4E25A61C11A5C6009494A8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7F4E25AD1C11A5C6009494A8 /* OSXcompileTest.swift in Sources */, + 7F4E25B21C11A5D0009494A8 /* EVURLCache.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ @@ -376,6 +436,34 @@ }; name = Release; }; + 7F4E25AF1C11A5C6009494A8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "-"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = OSXcompileTest/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.11; + PRODUCT_BUNDLE_IDENTIFIER = nl.evict.OSXcompileTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + }; + name = Debug; + }; + 7F4E25B01C11A5C6009494A8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_IDENTITY = "-"; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = OSXcompileTest/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.11; + PRODUCT_BUNDLE_IDENTIFIER = nl.evict.OSXcompileTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -397,6 +485,14 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 7F4E25B11C11A5C6009494A8 /* Build configuration list for PBXNativeTarget "OSXcompileTest" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7F4E25AF1C11A5C6009494A8 /* Debug */, + 7F4E25B01C11A5C6009494A8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; /* End XCConfigurationList section */ }; rootObject = 7F4A0D431BEE481400059923 /* Project object */; diff --git a/EVURLCache.xcodeproj/xcshareddata/xcschemes/OSXcompileTest.xcscheme b/EVURLCache.xcodeproj/xcshareddata/xcschemes/OSXcompileTest.xcscheme new file mode 100644 index 0000000..768b17d --- /dev/null +++ b/EVURLCache.xcodeproj/xcshareddata/xcschemes/OSXcompileTest.xcscheme @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/EVURLCache/Pod/EVURLCache.swift b/EVURLCache/Pod/EVURLCache.swift index 3373718..c23b2bf 100644 --- a/EVURLCache/Pod/EVURLCache.swift +++ b/EVURLCache/Pod/EVURLCache.swift @@ -245,7 +245,6 @@ public class EVURLCache : NSURLCache { return false } } - } diff --git a/OSXcompileTest/Info.plist b/OSXcompileTest/Info.plist new file mode 100644 index 0000000..ba72822 --- /dev/null +++ b/OSXcompileTest/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/OSXcompileTest/OSXcompileTest.swift b/OSXcompileTest/OSXcompileTest.swift new file mode 100644 index 0000000..75b81e8 --- /dev/null +++ b/OSXcompileTest/OSXcompileTest.swift @@ -0,0 +1,35 @@ +// +// OSXcompileTest.swift +// OSXcompileTest +// +// Created by Edwin Vermeer on 12/4/15. +// Copyright © 2015 evict. All rights reserved. +// + +import XCTest + +class OSXcompileTest: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measureBlock { + // Put the code you want to measure the time of here. + } + } + +}