Build Information
Failed to build IBM Verify, reference v3.1.1 (1f800f), with Swift 6.3 for macOS (SPM) on 23 Apr 2026 03:51:14 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/IBM-Verify/verify-sdk-ios.git
Reference: v3.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/IBM-Verify/verify-sdk-ios
* tag v3.1.1 -> FETCH_HEAD
HEAD is now at 1f800ff Release/3.1.1 (#21)
Cloned https://github.com/IBM-Verify/verify-sdk-ios.git
Revision (git rev-parse @):
1f800fff5a5d317968691ac395cf2357aa5dcd3a
SUCCESS checkout https://github.com/IBM-Verify/verify-sdk-ios.git at v3.1.1
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "verify-sdk-ios",
"name": "IBM Verify",
"url": "https://github.com/IBM-Verify/verify-sdk-ios.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/verify-sdk-ios",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/IBM-Verify/verify-sdk-ios.git
[1/1850] Fetching verify-sdk-ios
Fetched https://github.com/IBM-Verify/verify-sdk-ios.git from cache (1.18s)
Creating working copy for https://github.com/IBM-Verify/verify-sdk-ios.git
Working copy of https://github.com/IBM-Verify/verify-sdk-ios.git resolved at v3.1.1 (1f800ff)
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.3
Building package at path: $PWD
https://github.com/IBM-Verify/verify-sdk-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/17] Write sources
[0/17] Copying Info.plist
[0/17] Write sources
[4/17] Copying README.md
[8/17] Copying Info.plist
[9/17] Write sources
[10/17] Copying README.md
[10/17] Copying Info.plist
[11/17] Copying README.md
[13/17] Copying Localizable.xcstrings
[14/17] Copying Info.plist
[16/17] Write swift-version--6988338F2F200930.txt
[18/51] 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 |
[19/51] 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 |
[20/51] 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 |
[21/51] 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 |
[22/51] 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 |
[23/51] Compiling Core URLSessionDelegateHelper.swift
/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:78: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
:
74 | /// - challenge: An object that contains the request for authentication.
75 | /// - completionHandler: A handler that your delegate method must call.
76 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if let error = challenge.error {
78 | 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
79 | completionHandler(.cancelAuthenticationChallenge, nil)
80 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:78: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
:
74 | /// - challenge: An object that contains the request for authentication.
75 | /// - completionHandler: A handler that your delegate method must call.
76 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if let error = challenge.error {
78 | 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
79 | completionHandler(.cancelAuthenticationChallenge, nil)
80 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:85: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
:
74 | /// - challenge: An object that contains the request for authentication.
75 | /// - completionHandler: A handler that your delegate method must call.
76 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if let error = challenge.error {
78 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
83 | guard let serverTrust = challenge.protectionSpace.serverTrust else {
84 | // Terminate further processing, no certificate at index 0
85 | 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
86 | completionHandler(.cancelAuthenticationChallenge, nil)
87 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:91: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
:
74 | /// - challenge: An object that contains the request for authentication.
75 | /// - completionHandler: A handler that your delegate method must call.
76 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if let error = challenge.error {
78 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
89 |
90 | // Compare the presented certificate to the pinned certificate.
91 | if let certificates = SecTrustCopyCertificateChain(serverTrust) as? [SecCertificate] {
| |- error: 'SecTrustCopyCertificateChain' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
92 | let serverCertificatesData = Set(
93 | certificates.map { SecCertificateCopyData($0) as Data }
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:97: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
:
74 | /// - challenge: An object that contains the request for authentication.
75 | /// - completionHandler: A handler that your delegate method must call.
76 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if let error = challenge.error {
78 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
95 |
96 | if serverCertificatesData.contains(certificateData) {
97 | 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
98 | completionHandler(.useCredential, URLCredential(trust: serverTrust))
99 | return
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSessionDelegateHelper.swift:105: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
:
74 | /// - challenge: An object that contains the request for authentication.
75 | /// - completionHandler: A handler that your delegate method must call.
76 | public func urlSession(_: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- note: add '@available' attribute to enclosing instance method
77 | if let error = challenge.error {
78 | logger.error("Cancel authentication challenge. \(error.localizedDescription, privacy: .public)")
:
103 |
104 | // Don't trust the presented certificate by default.
105 | 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
106 | completionHandler(.cancelAuthenticationChallenge, nil)
107 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/51] 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/51] Compiling Core URLSession+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:12:22: error: 'Logger' is only available in macOS 11.0 or newer
10 | import OSLog
11 |
12 | private let logger = Logger(subsystem: "Core", category: "Networking")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add '@available' attribute to enclosing let
13 |
14 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:313:21: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
314 |
315 | defer {
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:316:25: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
315 | defer {
316 | logger.info("URLSession.dataTask - EXIT")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
317 | }
318 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:323:22: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
321 | let startTime = Date() // Capture the start time for calculating request latency.
322 |
323 | logger.debug("⬆️ Request [\(requestId.uuidString)]: Method: \(resource.request.httpMethod ?? "N/A"), URL: \(resource.request.url?.absoluteString ?? "N/A")")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
324 |
325 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:323:40: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
321 | let startTime = Date() // Capture the start time for calculating request latency.
322 |
323 | logger.debug("⬆️ Request [\(requestId.uuidString)]: Method: \(resource.request.httpMethod ?? "N/A"), URL: \(resource.request.url?.absoluteString ?? "N/A")")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
324 |
325 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:323:74: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
321 | let startTime = Date() // Capture the start time for calculating request latency.
322 |
323 | logger.debug("⬆️ Request [\(requestId.uuidString)]: Method: \(resource.request.httpMethod ?? "N/A"), URL: \(resource.request.url?.absoluteString ?? "N/A")")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
324 |
325 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:323:120: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
321 | let startTime = Date() // Capture the start time for calculating request latency.
322 |
323 | logger.debug("⬆️ Request [\(requestId.uuidString)]: Method: \(resource.request.httpMethod ?? "N/A"), URL: \(resource.request.url?.absoluteString ?? "N/A")")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
324 |
325 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:327:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
325 | #if DEBUG
326 | if let headers = resource.request.allHTTPHeaderFields {
327 | logger.debug("➡️ Request [\(requestId.uuidString)] Headers: \(headers)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
328 | }
329 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:327:44: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
325 | #if DEBUG
326 | if let headers = resource.request.allHTTPHeaderFields {
327 | logger.debug("➡️ Request [\(requestId.uuidString)] Headers: \(headers)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
328 | }
329 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:327:78: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
325 | #if DEBUG
326 | if let headers = resource.request.allHTTPHeaderFields {
327 | logger.debug("➡️ Request [\(requestId.uuidString)] Headers: \(headers)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
328 | }
329 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:331:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
329 |
330 | if let data = resource.request.httpBody, let body = String(data: data, encoding: .utf8) {
331 | logger.debug("➡️ Request [\(requestId.uuidString)] Body: \(body)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
332 | }
333 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:331:44: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
329 |
330 | if let data = resource.request.httpBody, let body = String(data: data, encoding: .utf8) {
331 | logger.debug("➡️ Request [\(requestId.uuidString)] Body: \(body)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
332 | }
333 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:331:75: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
329 |
330 | if let data = resource.request.httpBody, let body = String(data: data, encoding: .utf8) {
331 | logger.debug("➡️ Request [\(requestId.uuidString)] Body: \(body)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
332 | }
333 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:336:53: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
334 |
335 | // Perform the actual network request. `async let` allows `data` and `response` to be fetched concurrently if possible, but `try await` will wait for both to complete.
336 | async let (data, response) = try await self.data(for: resource.request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
337 |
338 | let resolvedData: Data
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:347:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
345 | catch {
346 | let latency = Date().timeIntervalSince(startTime) // Calculate latency even for errors.
347 | logger.error("❌ Network Error [\(requestId.uuidString)]: URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s, Error: \(error.localizedDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
348 |
349 | throw error // Re-throw the original network error.
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:347:47: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
345 | catch {
346 | let latency = Date().timeIntervalSince(startTime) // Calculate latency even for errors.
347 | logger.error("❌ Network Error [\(requestId.uuidString)]: URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s, Error: \(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
348 |
349 | throw error // Re-throw the original network error.
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:347:78: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
345 | catch {
346 | let latency = Date().timeIntervalSince(startTime) // Calculate latency even for errors.
347 | logger.error("❌ Network Error [\(requestId.uuidString)]: URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s, Error: \(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
348 |
349 | throw error // Re-throw the original network error.
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:347:137: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
345 | catch {
346 | let latency = Date().timeIntervalSince(startTime) // Calculate latency even for errors.
347 | logger.error("❌ Network Error [\(requestId.uuidString)]: URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s, Error: \(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
348 |
349 | throw error // Re-throw the original network error.
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:347:181: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
345 | catch {
346 | let latency = Date().timeIntervalSince(startTime) // Calculate latency even for errors.
347 | logger.error("❌ Network Error [\(requestId.uuidString)]: URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s, Error: \(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
348 |
349 | throw error // Re-throw the original network error.
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:355:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
353 |
354 | guard let httpResponse = resolvedResponse as? HTTPURLResponse else {
355 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unknown response type for URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
356 | throw URLSessionError.unknown
357 | }
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:355:42: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
353 |
354 | guard let httpResponse = resolvedResponse as? HTTPURLResponse else {
355 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unknown response type for URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
356 | throw URLSessionError.unknown
357 | }
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:355:105: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
353 |
354 | guard let httpResponse = resolvedResponse as? HTTPURLResponse else {
355 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unknown response type for URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
356 | throw URLSessionError.unknown
357 | }
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:355:164: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
353 |
354 | guard let httpResponse = resolvedResponse as? HTTPURLResponse else {
355 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unknown response type for URL: \(resource.request.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
356 | throw URLSessionError.unknown
357 | }
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:360:21: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
358 |
359 | // Log the basic response information: status code, URL, and latency.
360 | logger.info("⬇️ Response [\(requestId.uuidString)]: Status: \(httpResponse.statusCode), URL: \(httpResponse.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
361 |
362 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:360:40: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
358 |
359 | // Log the basic response information: status code, URL, and latency.
360 | logger.info("⬇️ Response [\(requestId.uuidString)]: Status: \(httpResponse.statusCode), URL: \(httpResponse.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
361 |
362 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:360:74: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
358 |
359 | // Log the basic response information: status code, URL, and latency.
360 | logger.info("⬇️ Response [\(requestId.uuidString)]: Status: \(httpResponse.statusCode), URL: \(httpResponse.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
361 |
362 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:360:107: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
358 |
359 | // Log the basic response information: status code, URL, and latency.
360 | logger.info("⬇️ Response [\(requestId.uuidString)]: Status: \(httpResponse.statusCode), URL: \(httpResponse.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
361 |
362 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:360:162: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
358 |
359 | // Log the basic response information: status code, URL, and latency.
360 | logger.info("⬇️ Response [\(requestId.uuidString)]: Status: \(httpResponse.statusCode), URL: \(httpResponse.url?.absoluteString ?? "N/A"), Latency: \(String(format: "%.3f", latency))s")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
361 |
362 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:364:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
362 | #if DEBUG
363 | if let headers = httpResponse.allHeaderFields as? [String: Any] {
364 | logger.debug("⬅️ Response [\(requestId.uuidString)] Headers: \(headers)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
365 | }
366 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:364:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
362 | #if DEBUG
363 | if let headers = httpResponse.allHeaderFields as? [String: Any] {
364 | logger.debug("⬅️ Response [\(requestId.uuidString)] Headers: \(headers)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
365 | }
366 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:364:79: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
362 | #if DEBUG
363 | if let headers = httpResponse.allHeaderFields as? [String: Any] {
364 | logger.debug("⬅️ Response [\(requestId.uuidString)] Headers: \(headers)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
365 | }
366 |
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:368:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
366 |
367 | if let body = String(data: resolvedData, encoding: .utf8) {
368 | logger.debug("⬅️ Response [\(requestId.uuidString)] Body: \(body)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
369 | }
370 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:368:45: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
366 |
367 | if let body = String(data: resolvedData, encoding: .utf8) {
368 | logger.debug("⬅️ Response [\(requestId.uuidString)] Body: \(body)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
369 | }
370 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:368:76: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
366 |
367 | if let body = String(data: resolvedData, encoding: .utf8) {
368 | logger.debug("⬅️ Response [\(requestId.uuidString)] Body: \(body)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
369 | }
370 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:375:26: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
373 | let description = try await String(decoding: data, as: UTF8.self)
374 |
375 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unacceptable Status Code: \(httpResponse.statusCode) for URL: \(httpResponse.url?.absoluteString ?? "N/A"), Description: \(description)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
376 |
377 | if httpResponse.statusCode == 401 {
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:375:42: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
373 | let description = try await String(decoding: data, as: UTF8.self)
374 |
375 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unacceptable Status Code: \(httpResponse.statusCode) for URL: \(httpResponse.url?.absoluteString ?? "N/A"), Description: \(description)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
376 |
377 | if httpResponse.statusCode == 401 {
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:375:100: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
373 | let description = try await String(decoding: data, as: UTF8.self)
374 |
375 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unacceptable Status Code: \(httpResponse.statusCode) for URL: \(httpResponse.url?.absoluteString ?? "N/A"), Description: \(description)")
| |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
376 |
377 | if httpResponse.statusCode == 401 {
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:375:136: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
373 | let description = try await String(decoding: data, as: UTF8.self)
374 |
375 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unacceptable Status Code: \(httpResponse.statusCode) for URL: \(httpResponse.url?.absoluteString ?? "N/A"), Description: \(description)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
376 |
377 | if httpResponse.statusCode == 401 {
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:375:195: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
373 | let description = try await String(decoding: data, as: UTF8.self)
374 |
375 | logger.error("❌ Response [\(requestId.uuidString)] Error: Unacceptable Status Code: \(httpResponse.statusCode) for URL: \(httpResponse.url?.absoluteString ?? "N/A"), Description: \(description)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
376 |
377 | if httpResponse.statusCode == 401 {
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:384:21: error: 'OSLogMessage' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
382 | }
383 |
384 | logger.info("✅ Success [\(requestId.uuidString)]: Parsed data for URL: \(resource.request.url?.absoluteString ?? "N/A")")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
385 |
386 | return try await resource.parse(data, httpResponse).get()
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:384:36: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
382 | }
383 |
384 | logger.info("✅ Success [\(requestId.uuidString)]: Parsed data for URL: \(resource.request.url?.absoluteString ?? "N/A")")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
385 |
386 | return try await resource.parse(data, httpResponse).get()
/Users/admin/builder/spi-builder-workspace/Sources/core/URLSession+Extension.swift:384:83: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
304 |
305 | // MARK: - URLSession Extension
306 | extension URLSession {
| `- note: add '@available' attribute to enclosing extension
307 | /// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion.
308 | /// - Parameter resource: The `HTTPResource` containing the request.
:
310 | /// - Returns: The new session data task.
311 | @discardableResult
312 | public func dataTask<T>(for resource: HTTPResource<T>) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
313 | logger.info("URLSession.dataTask - ENTRY")
314 |
:
382 | }
383 |
384 | logger.info("✅ Success [\(requestId.uuidString)]: Parsed data for URL: \(resource.request.url?.absoluteString ?? "N/A")")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
385 |
386 | return try await resource.parse(data, httpResponse).get()
[26/51] 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 |
[27/51] 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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/52] Emitting module FIDO2
/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.
BUILD FAILURE 6.3 macosSpm