Skip to content

Commit bed735a

Browse files
committed
[CocoaPods] Finally (?) a working podspec for Xcode 8.0, Swift 2.3
1 parent 40172c4 commit bed735a

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

IDZSwiftCommonCrypto.podspec

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Pod::Spec.new do |s|
22

33
s.name = "IDZSwiftCommonCrypto"
4-
s.version = "0.8.2"
4+
s.version = "0.8.3"
55
s.summary = "A wrapper for Apple's Common Crypto library written in Swift."
66

77
s.homepage = "https://github.com/iosdevzone/IDZSwiftCommonCrypto"
88
s.license = "MIT"
99
s.author = { "iOSDevZone" => "idz@iosdeveloperzone.com" }
1010
s.social_media_url = "http://twitter.com/iOSDevZone"
1111

12-
s.osx.deployment_target = '10.10'
13-
s.ios.deployment_target = '8.0'
12+
s.osx.deployment_target = '10.11'
13+
s.ios.deployment_target = '9.3'
1414
s.tvos.deployment_target = '9.0'
1515
s.watchos.deployment_target = '2.0'
1616

@@ -24,13 +24,15 @@ Pod::Spec.new do |s|
2424
echo 'Running prepare_command'
2525
pwd
2626
echo Running GenerateCommonCryptoModule
27-
swift ./GenerateCommonCryptoModule.swift macosx .
28-
swift ./GenerateCommonCryptoModule.swift iphonesimulator .
29-
swift ./GenerateCommonCryptoModule.swift iphoneos .
30-
swift ./GenerateCommonCryptoModule.swift appletvsimulator .
31-
swift ./GenerateCommonCryptoModule.swift appletvos .
32-
swift ./GenerateCommonCryptoModule.swift watchsimulator .
33-
swift ./GenerateCommonCryptoModule.swift watchos .
27+
TC="--toolchain com.apple.dt.toolchain.Swift_2_3"
28+
SWIFT="xcrun $TC swift"
29+
$SWIFT ./GenerateCommonCryptoModule.swift macosx .
30+
$SWIFT ./GenerateCommonCryptoModule.swift iphonesimulator .
31+
$SWIFT ./GenerateCommonCryptoModule.swift iphoneos .
32+
$SWIFT ./GenerateCommonCryptoModule.swift appletvsimulator .
33+
$SWIFT ./GenerateCommonCryptoModule.swift appletvos .
34+
$SWIFT ./GenerateCommonCryptoModule.swift watchsimulator .
35+
$SWIFT ./GenerateCommonCryptoModule.swift watchos .
3436
3537
CMD
3638

@@ -41,6 +43,7 @@ CMD
4143

4244
# Make sure we can find the dummy frameworks
4345
s.xcconfig = {
46+
"SWIFT_VERSION" => "2.3",
4447
"SWIFT_INCLUDE_PATHS" => "${PODS_ROOT}/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)",
4548
"FRAMEWORK_SEARCH_PATHS" => "${PODS_ROOT}/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)"
4649
}

0 commit comments

Comments
 (0)