diff --git a/Tests/X509Tests/SecKeyWrapperTests.swift b/Tests/X509Tests/SecKeyWrapperTests.swift index afd1e38..8fee824 100644 --- a/Tests/X509Tests/SecKeyWrapperTests.swift +++ b/Tests/X509Tests/SecKeyWrapperTests.swift @@ -12,8 +12,11 @@ // //===----------------------------------------------------------------------===// -@preconcurrency import XCTest +import XCTest @_spi(Testing) @testable import X509 +#if canImport(Darwin) +@preconcurrency import Security +#endif #if canImport(Darwin) final class SecKeyWrapperTests: XCTestCase { diff --git a/Tests/X509Tests/SignatureTests.swift b/Tests/X509Tests/SignatureTests.swift index 9a7ae8a..efc9d0f 100644 --- a/Tests/X509Tests/SignatureTests.swift +++ b/Tests/X509Tests/SignatureTests.swift @@ -12,11 +12,14 @@ // //===----------------------------------------------------------------------===// -@preconcurrency import XCTest +import XCTest @preconcurrency import Crypto import _CryptoExtras import SwiftASN1 @testable import X509 +#if canImport(Darwin) +@preconcurrency import Security +#endif final class SignatureTests: XCTestCase { static let now = Date()