Skip to content

Commit 44f4b7a

Browse files
committed
Fix for CommonCrypto inclusion in Swift 4.2
1 parent 708c7a7 commit 44f4b7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: Package.swift

+4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ import PackageDescription
44

55

66
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
7+
#if canImport(CommonCrypto)
8+
let dependencies: [Package.Dependency] = []
9+
#else
710
let dependencies = [
811
Package.Dependency.package(url: "https://github.com/kylef-archive/CommonCrypto.git", from: "1.0.0"),
912
]
13+
#endif
1014
let excludes = ["HMAC/HMACCryptoSwift.swift"]
1115
let targetDependencies: [Target.Dependency] = []
1216
#else

0 commit comments

Comments
 (0)