Build Information
Failed to build IBM Security Verify, reference v3.0.11 (4189b9
), with Swift 6.0 for macOS (SPM) on 21 Dec 2024 05:04:54 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ibm-security-verify/verify-sdk-ios.git
Reference: v3.0.11
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ibm-security-verify/verify-sdk-ios
* tag v3.0.11 -> FETCH_HEAD
HEAD is now at 4189b9c Support for digital credentials (#14)
Cloned https://github.com/ibm-security-verify/verify-sdk-ios.git
Revision (git rev-parse @):
4189b9c5ec63b4a53b6de05f26b0de5072ab0989
SUCCESS checkout https://github.com/ibm-security-verify/verify-sdk-ios.git at v3.0.11
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "verify-sdk-ios",
"name": "IBM Security Verify",
"url": "https://github.com/ibm-security-verify/verify-sdk-ios.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/verify-sdk-ios",
"dependencies": [
]
}
]
}
Fetching https://github.com/ibm-security-verify/verify-sdk-ios.git
[1/1306] Fetching verify-sdk-ios
Fetched https://github.com/ibm-security-verify/verify-sdk-ios.git from cache (1.15s)
Creating working copy for https://github.com/ibm-security-verify/verify-sdk-ios.git
Working copy of https://github.com/ibm-security-verify/verify-sdk-ios.git resolved at v3.0.11 (4189b9c)
warning: '.resolve-product-dependencies': dependency 'verify-sdk-ios' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ibm-security-verify/verify-sdk-ios.git
https://github.com/ibm-security-verify/verify-sdk-ios.git
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "IBM Security Verify",
"name" : "IBM Security Verify",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "FIDO2",
"targets" : [
"FIDO2"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Adaptive",
"targets" : [
"Adaptive"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Core",
"targets" : [
"Core"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Authentication",
"targets" : [
"Authentication"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MFA",
"targets" : [
"MFA"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DC",
"targets" : [
"DC"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MFATests",
"module_type" : "SwiftTarget",
"name" : "MFATests",
"path" : "Tests/MFATests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/MFATests/Files",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"CloudAuthenticatorServiceTests.swift",
"CloudAuthenticatorTests.swift",
"CloudRegistrationProviderTests.swift",
"MFAAttributeInfoTests.swift",
"MFARegistrationControllerTests.swift",
"MFAServiceControllerTests.swift",
"MockHTTPResponse.swift",
"OTPAuthenticatorTests.swift",
"OTPGeneratorTests.swift",
"OnPremiseAuthenticatorServiceTests.swift",
"OnPremiseAuthenticatorTests.swift",
"OnPremiseRegistrationProviderTest.swift",
"PendingTransactionInfoTest.swift",
"StringExtensionTests.swift"
],
"target_dependencies" : [
"MFA",
"Core",
"Authentication"
],
"type" : "test"
},
{
"c99name" : "MFA",
"module_type" : "SwiftTarget",
"name" : "MFA",
"path" : "Sources/mfa",
"product_memberships" : [
"MFA"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/mfa/README.md",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/mfa/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
}
],
"sources" : [
"AuthenticatorDescriptor.swift",
"CloudAuthenticator.swift",
"CloudAuthenticatorService.swift",
"CloudRegistrationProvider.swift",
"EnrollableFactor.swift",
"FaceFactorInfo.swift",
"FactorDescriptor.swift",
"FingerprintFactorInfo.swift",
"HOTPFactorInfo.swift",
"MFAAttributeInfo.swift",
"MFARegistrationController.swift",
"MFAServiceController.swift",
"OTPAuthenticator.swift",
"OTPDescriptor.swift",
"OnPremiseAuthenticator.swift",
"OnPremiseAuthenticatorService.swift",
"OnPremiseRegistrationProvider.swift",
"PendingTransactionInfo.swift",
"String+Extension.swift",
"TOTPFactorInfo.swift",
"UserPresenceFactorInfo.swift"
],
"target_dependencies" : [
"Core",
"Authentication"
],
"type" : "library"
},
{
"c99name" : "FIDO2Tests",
"module_type" : "SwiftTarget",
"name" : "FIDO2Tests",
"path" : "Tests/FIDO2Tests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/FIDO2Tests/Files",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AttestationStatementProviderTests.swift",
"CBORTests.swift",
"COSETests.swift",
"ExtensionsTests.swift",
"PublicKeyCredentialCreationOptionsTests.swift",
"PublicKeyCredentialProviderTests.swift",
"PublicKeyCredentialRequestOptionsTest.swift",
"PublicKeyCredentialTests.swift"
],
"target_dependencies" : [
"FIDO2"
],
"type" : "test"
},
{
"c99name" : "FIDO2",
"module_type" : "SwiftTarget",
"name" : "FIDO2",
"path" : "Sources/fido2",
"product_memberships" : [
"FIDO2"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/fido2/README.md",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AttestationStatementProvider.swift",
"AuthenticatorExtensions.swift",
"AuthenticatorSelectionCriteria.swift",
"CBOR.swift",
"COSE.swift",
"Extensions.swift",
"PublicKeyCredential.swift",
"PublicKeyCredentialProvider.swift",
"SecKeyConvertible.swift",
"SecKeyStore.swift"
],
"type" : "library"
},
{
"c99name" : "DCTests",
"module_type" : "SwiftTarget",
"name" : "DCTests",
"path" : "Tests/DCTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/DCTests/Files",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AgentTests.swift",
"ConnectionTests.swift",
"IndyCredentialTests.swift",
"InvitationTests.swift",
"JSONLDCredentialTests.swift",
"MDocCredentialTests.swift",
"MockHTTPResponse.swift",
"PreviewDescriptorTest.swift",
"ProofRequestTest.swift",
"VerificationInfoTest.swift",
"WalletProviderTest.swift",
"WalletServiceTest.swift"
],
"target_dependencies" : [
"DC",
"Core",
"Authentication"
],
"type" : "test"
},
{
"c99name" : "DC",
"module_type" : "SwiftTarget",
"name" : "DC",
"path" : "Sources/dc",
"product_memberships" : [
"DC"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/dc/README.md",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AgentInfo.swift",
"ConnectionInfo.swift",
"CredentialDescriptor.swift",
"CredentialPreviewInfo.swift",
"IndyCredential.swift",
"InvitationInfo.swift",
"JSONLDCredential.swift",
"MDocCredential.swift",
"PreviewDescriptor.swift",
"ProofRequest.swift",
"VerificationInfo.swift",
"VerificationPreviewInfo.swift",
"Wallet.swift",
"WalletDescriptor.swift",
"WalletProvider.swift",
"WalletService.swift"
],
"target_dependencies" : [
"Core",
"Authentication"
],
"type" : "library"
},
{
"c99name" : "CoreTests",
"module_type" : "SwiftTarget",
"name" : "CoreTests",
"path" : "Tests/CoreTests",
"sources" : [
"CryptoKit+ExtensionTests.swift",
"Data+ExtensionTests.swift",
"DefaultValueTests.swift",
"JSONDecoderTest.swift",
"KeychainServiceTests.swift",
"KeyedDecodingContainerTest.swift",
"String+ExtensionTests.swift",
"Thread+ExtensionTests.swift",
"URLSession+ExtensionTests.swift",
"URLSessionDelegateHelperTests.swift"
],
"target_dependencies" : [
"Core"
],
"type" : "test"
},
{
"c99name" : "Core",
"module_type" : "SwiftTarget",
"name" : "Core",
"path" : "Sources/core",
"product_memberships" : [
"Core",
"Authentication",
"MFA",
"DC"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/core/README.md",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Codeable+Extension.swift",
"CryptoKit+Extension.swift",
"Data+Extension.swift",
"DateFormatter+Extension.swift",
"DefaultValue+Extension.swift",
"DefaultValuePropertyWrapper.swift",
"JSONDecoder+Extension.swift",
"KeychainService.swift",
"KeyedDecodingContainer+Extension.swift",
"NSNumber+Extension.swift",
"String+Extension.swift",
"Thread+Extension.swift",
"URLSession+Extension.swift",
"URLSessionDelegateHelper.swift"
],
"type" : "library"
},
{
"c99name" : "AuthenticationTests",
"module_type" : "SwiftTarget",
"name" : "AuthenticationTests",
"path" : "Tests/AuthenticationTests",
"sources" : [
"DPoPHelperTest.swift",
"MockToken.swift",
"OAuthProviderTests.swift",
"PKCEHelperTests.swift",
"TokenInfoTests.swift"
],
"target_dependencies" : [
"Authentication",
"Core"
],
"type" : "test"
},
{
"c99name" : "Authentication",
"module_type" : "SwiftTarget",
"name" : "Authentication",
"path" : "Sources/authentication",
"product_memberships" : [
"Authentication",
"MFA",
"DC"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/authentication/README.md",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DPoPHelper.swift",
"OAuthProvider.swift",
"OIDCMetadataInfo.swift",
"PKCEHelper.swift",
"TokenInfo.swift"
],
"target_dependencies" : [
"Core"
],
"type" : "library"
},
{
"c99name" : "AdaptiveTests",
"module_type" : "SwiftTarget",
"name" : "AdaptiveTests",
"path" : "Tests/AdaptiveTests",
"sources" : [
"AdaptiveContextTests.swift",
"AdaptiveError.swift",
"FactorTypeTests.swift",
"LocalMock.swift",
"LocalMockAdaptiveTests.swift",
"MockCollectionService.swift",
"MockHelpers.swift",
"RemoteMock.swift",
"RemoteMockAdaptiveTests.swift",
"SessionIdTests.swift"
],
"target_dependencies" : [
"Adaptive"
],
"type" : "test"
},
{
"c99name" : "Adaptive",
"module_type" : "SwiftTarget",
"name" : "Adaptive",
"path" : "Sources/adaptive",
"product_memberships" : [
"Adaptive"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/adaptive/README.md",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AdaptiveContext.swift",
"AdaptiveResult.swift",
"AssessmentsFactors.swift",
"Enums.swift",
"Evaluation.swift",
"Helpers.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/20] Write sources
[4/20] Copying README.md
[4/20] Copying Info.plist
[4/20] Copying Localizable.strings
[4/20] Copying README.md
[11/20] Copying Info.plist
[13/20] Copying README.md
[14/20] Copying Info.plist
[15/20] Write sources
[16/20] Copying README.md
[16/20] Copying Info.plist
[19/20] Write swift-version-5BDAB9E9C0126B9D.txt
[21/54] Compiling Adaptive AssessmentsFactors.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[22/54] Compiling Adaptive Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[23/54] Compiling Adaptive resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/54] Emitting module Adaptive
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[25/54] Compiling Adaptive Evaluation.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[26/54] Compiling Adaptive AdaptiveResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[27/54] Compiling Adaptive Enums.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[28/54] Compiling Adaptive AdaptiveContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:16:25: error: 'Logger' is only available in macOS 11.0 or newer
12 | /// The `SelfSignedCertificateDelegate` will allow SSL traffic to be transferred using a self signed certificate.
13 | /// - Remark: Using this class should **ONLY** be used for testing purposes.
14 | public final class SelfSignedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
15 | // MARK: Variables
16 | private let logger: Logger
| `- error: 'Logger' is only available in macOS 11.0 or newer
17 | private let serviceName = Bundle.main.bundleIdentifier!
18 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:52:25: error: 'Logger' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
| `- error: 'Logger' is only available in macOS 11.0 or newer
53 | private let serviceName = Bundle.main.bundleIdentifier!
54 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:21:18: error: 'Logger' is only available in macOS 11.0 or newer
12 | /// The `SelfSignedCertificateDelegate` will allow SSL traffic to be transferred using a self signed certificate.
13 | /// - Remark: Using this class should **ONLY** be used for testing purposes.
14 | public final class SelfSignedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
15 | // MARK: Variables
16 | private let logger: Logger
:
18 |
19 | /// Initializes the `SelfSignedCertificateDelegate`.
20 | public override init() {
| `- note: add @available attribute to enclosing initializer
21 | logger = Logger(subsystem: serviceName, category: "networking")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:32:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
12 | /// The `SelfSignedCertificateDelegate` will allow SSL traffic to be transferred using a self signed certificate.
13 | /// - Remark: Using this class should **ONLY** be used for testing purposes.
14 | public final class SelfSignedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
15 | // MARK: Variables
16 | private let logger: Logger
:
28 | /// - completionHandler: A handler that your delegate method must call.
29 | /// - Remark: This completion handler uses `credential`.
30 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
31 | if let error = challenge.error {
32 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
33 | completionHandler(.cancelAuthenticationChallenge, nil)
34 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:32:61: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
12 | /// The `SelfSignedCertificateDelegate` will allow SSL traffic to be transferred using a self signed certificate.
13 | /// - Remark: Using this class should **ONLY** be used for testing purposes.
14 | public final class SelfSignedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
15 | // MARK: Variables
16 | private let logger: Logger
:
28 | /// - completionHandler: A handler that your delegate method must call.
29 | /// - Remark: This completion handler uses `credential`.
30 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
31 | if let error = challenge.error {
32 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
33 | completionHandler(.cancelAuthenticationChallenge, nil)
34 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:38:25: error: 'OSLogMessage' is only available in macOS 11.0 or newer
12 | /// The `SelfSignedCertificateDelegate` will allow SSL traffic to be transferred using a self signed certificate.
13 | /// - Remark: Using this class should **ONLY** be used for testing purposes.
14 | public final class SelfSignedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
15 | // MARK: Variables
16 | private let logger: Logger
:
28 | /// - completionHandler: A handler that your delegate method must call.
29 | /// - Remark: This completion handler uses `credential`.
30 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
31 | if let error = challenge.error {
32 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
36 |
37 | guard let serverTrust = challenge.protectionSpace.serverTrust else {
38 | logger.info("SSL certificate trust for the challenge protection space was nil.")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
39 | completionHandler(.performDefaultHandling, nil)
40 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:43:21: error: 'OSLogMessage' is only available in macOS 11.0 or newer
12 | /// The `SelfSignedCertificateDelegate` will allow SSL traffic to be transferred using a self signed certificate.
13 | /// - Remark: Using this class should **ONLY** be used for testing purposes.
14 | public final class SelfSignedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
15 | // MARK: Variables
16 | private let logger: Logger
:
28 | /// - completionHandler: A handler that your delegate method must call.
29 | /// - Remark: This completion handler uses `credential`.
30 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
31 | if let error = challenge.error {
32 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
41 | }
42 |
43 | logger.info("Allowing self-signed certificate to be trusted for challenge.")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
44 |
45 | completionHandler(.useCredential, URLCredential(trust: serverTrust))
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:61:18: error: 'Logger' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
58 | /// Initializes a `PinnedCertificateDelegate` with a certificate represented as a base64 `String`.
59 | /// - Parameter certificate: A base64 encoded DER (Distinguished Encoding Rules) representation of an X.509 certificate.
60 | public init?(with certificate: String) {
| `- note: add @available attribute to enclosing initializer
61 | logger = Logger(subsystem: serviceName, category: "networking")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
62 |
63 | guard let data = Data(base64Encoded: certificate) else {
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:64:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
58 | /// Initializes a `PinnedCertificateDelegate` with a certificate represented as a base64 `String`.
59 | /// - Parameter certificate: A base64 encoded DER (Distinguished Encoding Rules) representation of an X.509 certificate.
60 | public init?(with certificate: String) {
| `- note: add @available attribute to enclosing initializer
61 | logger = Logger(subsystem: serviceName, category: "networking")
62 |
63 | guard let data = Data(base64Encoded: certificate) else {
64 | logger.error("The base64 encoded certificate was invalid.")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
65 | return nil
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:79:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
75 | /// - challenge: An object that contains the request for authentication.
76 | /// - completionHandler: A handler that your delegate method must call.
77 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
78 | if let error = challenge.error {
79 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
80 | completionHandler(.cancelAuthenticationChallenge, nil)
81 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:79:61: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
75 | /// - challenge: An object that contains the request for authentication.
76 | /// - completionHandler: A handler that your delegate method must call.
77 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
78 | if let error = challenge.error {
79 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
80 | completionHandler(.cancelAuthenticationChallenge, nil)
81 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:86:25: error: 'OSLogMessage' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
75 | /// - challenge: An object that contains the request for authentication.
76 | /// - completionHandler: A handler that your delegate method must call.
77 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
78 | if let error = challenge.error {
79 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
84 | guard let serverTrust = challenge.protectionSpace.serverTrust else {
85 | // Terminate further processing, no certificate at index 0
86 | logger.info("SSL certificate trust chain for the challenge protection space was not found.")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
87 | completionHandler(.cancelAuthenticationChallenge, nil)
88 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:92:31: error: 'SecTrustCopyCertificateChain' is only available in macOS 12.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
75 | /// - challenge: An object that contains the request for authentication.
76 | /// - completionHandler: A handler that your delegate method must call.
77 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
78 | if let error = challenge.error {
79 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
90 |
91 | // Compare the presented certificate to the pinned certificate.
92 | if let certificates = SecTrustCopyCertificateChain(serverTrust) as? [SecCertificate] {
| |- error: 'SecTrustCopyCertificateChain' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
93 | let serverCertificatesData = Set(
94 | certificates.map { SecCertificateCopyData($0) as Data }
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:98:29: error: 'OSLogMessage' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
75 | /// - challenge: An object that contains the request for authentication.
76 | /// - completionHandler: A handler that your delegate method must call.
77 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
78 | if let error = challenge.error {
79 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
96 |
97 | if serverCertificatesData.contains(certificateData) {
98 | logger.info("SSL certificate presented in challenge matches the pinned certificate.")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
99 | completionHandler(.useCredential, URLCredential(trust: serverTrust))
100 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:106:21: error: 'OSLogMessage' is only available in macOS 11.0 or newer
48 |
49 | /// The `PinnedCertificateDelegate` compares certificate provided by the SSL handshake to a certificate presented by the client.
50 | public final class PinnedCertificateDelegate: NSObject, URLSessionDelegate {
| `- note: add @available attribute to enclosing class
51 | // MARK: Variables
52 | private let logger: Logger
:
75 | /// - challenge: An object that contains the request for authentication.
76 | /// - completionHandler: A handler that your delegate method must call.
77 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add @available attribute to enclosing instance method
78 | if let error = challenge.error {
79 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
104 |
105 | // Don't trust the presented certificate by default.
106 | logger.info("SSL certificate presented in challenge does not match the pinned certificate.")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
107 | completionHandler(.cancelAuthenticationChallenge, nil)
108 | }
[29/54] Compiling FIDO2 SecKeyConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/fido2/PublicKeyCredentialProvider.swift:9:8: error: no such module 'UIKit'
7 | import LocalAuthentication
8 | import os.log
9 | import UIKit
| `- error: no such module 'UIKit'
10 |
11 | /// A type that indicates when Fido2ApiClient encounters an error.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/35] Compiling Adaptive resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[3/35] Compiling Adaptive AssessmentsFactors.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[4/35] Compiling Adaptive Evaluation.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[5/35] Compiling Adaptive Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/35] Emitting module Adaptive
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[7/35] Compiling Adaptive Enums.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[8/35] Compiling Adaptive AdaptiveResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
[9/35] Compiling Adaptive AdaptiveContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/adaptive/AdaptiveContext.swift:5:8: error: no such module 'UIKit'
3 | //
4 |
5 | import UIKit
| `- error: no such module 'UIKit'
6 | import os.log
7 |
BUILD FAILURE 6.0 macosSpm