diff --git a/Package.swift b/Package.swift index 0394897b..0fa64b65 100644 --- a/Package.swift +++ b/Package.swift @@ -20,7 +20,7 @@ let package = Package( dependencies: [.target(name: "keccaktiny"), .target(name: "aes"), - .target(name: "CryptoSwift"), + .target(name: "Internal_CryptoSwift_PBDKF2"), "BigInt", "GenericJSON", "secp256k1"], @@ -33,7 +33,7 @@ let package = Package( dependencies: [], path: "web3swift/lib/aes", exclude: ["module.map"]), - .target(name: "CryptoSwift", + .target(name: "Internal_CryptoSwift_PBDKF2", dependencies: [], path: "web3swift/lib/CryptoSwift"), .testTarget(name: "web3swiftTests", diff --git a/web3swift/src/Utils/KeyDerivation.swift b/web3swift/src/Utils/KeyDerivation.swift index 3a2bf9f0..7906b0da 100644 --- a/web3swift/src/Utils/KeyDerivation.swift +++ b/web3swift/src/Utils/KeyDerivation.swift @@ -11,7 +11,7 @@ import Foundation import CommonCrypto #endif #if !COCOAPODS -import CryptoSwift +import Internal_CryptoSwift_PBDKF2 #endif enum KeyDerivationAlgorithm {