From 40172c448ec9802c02c5824df28b69e775aefdd3 Mon Sep 17 00:00:00 2001 From: iosdevzone Date: Sat, 24 Sep 2016 14:43:47 -0700 Subject: [PATCH 1/2] [CocoaPods] Added .swift-version. Bumped version. --- .swift-version | 1 + IDZSwiftCommonCrypto.podspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .swift-version diff --git a/.swift-version b/.swift-version new file mode 100644 index 0000000..bb576db --- /dev/null +++ b/.swift-version @@ -0,0 +1 @@ +2.3 diff --git a/IDZSwiftCommonCrypto.podspec b/IDZSwiftCommonCrypto.podspec index 0f2a955..c61978e 100644 --- a/IDZSwiftCommonCrypto.podspec +++ b/IDZSwiftCommonCrypto.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "IDZSwiftCommonCrypto" - s.version = "0.8.1" + s.version = "0.8.2" s.summary = "A wrapper for Apple's Common Crypto library written in Swift." s.homepage = "https://github.com/iosdevzone/IDZSwiftCommonCrypto" From bed735af04eb3d03630c35a7d2960ee56a38c93a Mon Sep 17 00:00:00 2001 From: iosdevzone Date: Sat, 24 Sep 2016 17:12:27 -0700 Subject: [PATCH 2/2] [CocoaPods] Finally (?) a working podspec for Xcode 8.0, Swift 2.3 --- IDZSwiftCommonCrypto.podspec | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/IDZSwiftCommonCrypto.podspec b/IDZSwiftCommonCrypto.podspec index c61978e..e213706 100644 --- a/IDZSwiftCommonCrypto.podspec +++ b/IDZSwiftCommonCrypto.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "IDZSwiftCommonCrypto" - s.version = "0.8.2" + s.version = "0.8.3" s.summary = "A wrapper for Apple's Common Crypto library written in Swift." s.homepage = "https://github.com/iosdevzone/IDZSwiftCommonCrypto" @@ -9,8 +9,8 @@ Pod::Spec.new do |s| s.author = { "iOSDevZone" => "idz@iosdeveloperzone.com" } s.social_media_url = "http://twitter.com/iOSDevZone" - s.osx.deployment_target = '10.10' - s.ios.deployment_target = '8.0' + s.osx.deployment_target = '10.11' + s.ios.deployment_target = '9.3' s.tvos.deployment_target = '9.0' s.watchos.deployment_target = '2.0' @@ -24,13 +24,15 @@ Pod::Spec.new do |s| echo 'Running prepare_command' pwd echo Running GenerateCommonCryptoModule - swift ./GenerateCommonCryptoModule.swift macosx . - swift ./GenerateCommonCryptoModule.swift iphonesimulator . - swift ./GenerateCommonCryptoModule.swift iphoneos . - swift ./GenerateCommonCryptoModule.swift appletvsimulator . - swift ./GenerateCommonCryptoModule.swift appletvos . - swift ./GenerateCommonCryptoModule.swift watchsimulator . - swift ./GenerateCommonCryptoModule.swift watchos . + TC="--toolchain com.apple.dt.toolchain.Swift_2_3" + SWIFT="xcrun $TC swift" + $SWIFT ./GenerateCommonCryptoModule.swift macosx . + $SWIFT ./GenerateCommonCryptoModule.swift iphonesimulator . + $SWIFT ./GenerateCommonCryptoModule.swift iphoneos . + $SWIFT ./GenerateCommonCryptoModule.swift appletvsimulator . + $SWIFT ./GenerateCommonCryptoModule.swift appletvos . + $SWIFT ./GenerateCommonCryptoModule.swift watchsimulator . + $SWIFT ./GenerateCommonCryptoModule.swift watchos . CMD @@ -41,6 +43,7 @@ CMD # Make sure we can find the dummy frameworks s.xcconfig = { + "SWIFT_VERSION" => "2.3", "SWIFT_INCLUDE_PATHS" => "${PODS_ROOT}/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)", "FRAMEWORK_SEARCH_PATHS" => "${PODS_ROOT}/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)" }