The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ZohoBooksClient, reference main (24cef4), with Swift 6.1 for Linux on 9 Feb 2026 22:49:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emotiveapps/ZohoBooksClient.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/emotiveapps/ZohoBooksClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 24cef43 paidThroughAccountId is optional
Cloned https://github.com/emotiveapps/ZohoBooksClient.git
Revision (git rev-parse @):
24cef43b93b59aaaad437a49faf7f5ba821ad04d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/emotiveapps/ZohoBooksClient.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/emotiveapps/ZohoBooksClient.git
https://github.com/emotiveapps/ZohoBooksClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "oauthenticator",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/OAuthenticator"
    },
    {
      "identity" : "mimetypeenum",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/emotiveapps/MimeTypeEnum"
    }
  ],
  "manifest_display_name" : "ZohoBooksClient",
  "name" : "ZohoBooksClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "ZohoBooksClient",
      "targets" : [
        "ZohoBooksClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZohoBooksClientTests",
      "module_type" : "SwiftTarget",
      "name" : "ZohoBooksClientTests",
      "path" : "Tests/ZohoBooksClientTests",
      "sources" : [
        "AdditionalModelTests.swift",
        "FullModelEncodingTests.swift",
        "ModelEncodingTests.swift",
        "ZohoBooksClientTests.swift",
        "ZohoErrorTests.swift",
        "ZohoOAuthConfigTests.swift"
      ],
      "target_dependencies" : [
        "ZohoBooksClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZohoBooksClient",
      "module_type" : "SwiftTarget",
      "name" : "ZohoBooksClient",
      "path" : "Sources/ZohoBooksClient",
      "product_dependencies" : [
        "OAuthenticator",
        "MimeTypeEnum"
      ],
      "product_memberships" : [
        "ZohoBooksClient"
      ],
      "sources" : [
        "HttpService.swift",
        "Models/ZBAccount.swift",
        "Models/ZBBankTransaction.swift",
        "Models/ZBContact.swift",
        "Models/ZBExpense.swift",
        "Models/ZBInvoice.swift",
        "Models/ZBItem.swift",
        "Models/ZBPayment.swift",
        "Models/ZBTax.swift",
        "OAuthProviding.swift",
        "ZohoBooksClient.swift",
        "ZohoConfig.swift",
        "ZohoError.swift",
        "ZohoOAuth.swift",
        "ZohoOAuthenticator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8e1c3aab9de7fa4f6e33977b6a4cee007e876da3e605dda0be6b9b9bf86aa951
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/emotiveapps/MimeTypeEnum
Fetching https://github.com/ChimeHQ/OAuthenticator
[12/1110] Fetching oauthenticator
[1111/1156] Fetching oauthenticator, mimetypeenum
Fetched https://github.com/ChimeHQ/OAuthenticator from cache (0.38s)
Fetched https://github.com/emotiveapps/MimeTypeEnum from cache (0.39s)
Computing version for https://github.com/emotiveapps/MimeTypeEnum
Computed https://github.com/emotiveapps/MimeTypeEnum at 1.0.2 (1.16s)
Computing version for https://github.com/ChimeHQ/OAuthenticator
Computed https://github.com/ChimeHQ/OAuthenticator at 0.7.2 (1.60s)
Creating working copy for https://github.com/ChimeHQ/OAuthenticator
Working copy of https://github.com/ChimeHQ/OAuthenticator resolved at 0.7.2
Creating working copy for https://github.com/emotiveapps/MimeTypeEnum
Working copy of https://github.com/emotiveapps/MimeTypeEnum resolved at 1.0.2
Building for debugging...
[0/5] Write sources
[2/5] Copying PrivacyInfo.xcprivacy
[2/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/23] Emitting module OAuthenticator
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/25] Emitting module MimeTypeEnum
[8/25] Compiling MimeTypeEnum MimeType.swift
[9/26] Compiling OAuthenticator WellknownEndpoints.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/26] Compiling OAuthenticator resource_bundle_accessor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/26] Compiling OAuthenticator GitHub.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/26] Compiling OAuthenticator GoogleAPI.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/26] Compiling OAuthenticator URLSession+ResponseProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/26] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/26] Compiling OAuthenticator DPoPKey.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/26] Compiling OAuthenticator DPoPSigner.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/26] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/26] Compiling OAuthenticator Authenticator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/26] Compiling OAuthenticator CredentialWindowProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/26] Compiling OAuthenticator Data+Base64URLEncode.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/26] Compiling OAuthenticator Models.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/26] Compiling OAuthenticator PKCE.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/26] Compiling OAuthenticator Bluesky.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/26] Compiling OAuthenticator Mastodon.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/26] Compiling OAuthenticator URL+QueryParams.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/42] Compiling ZohoBooksClient ZohoError.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:70:19: error: cannot find 'URLRequest' in scope
 68 |     }
 69 |
 70 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 71 |     request.httpMethod = "POST"
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:74:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
 73 |
 74 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 75 |
 76 |     guard let httpResponse = response as? HTTPURLResponse else {
[29/42] Compiling ZohoBooksClient ZohoOAuth.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:70:19: error: cannot find 'URLRequest' in scope
 68 |     }
 69 |
 70 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 71 |     request.httpMethod = "POST"
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:74:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
 73 |
 74 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 75 |
 76 |     guard let httpResponse = response as? HTTPURLResponse else {
[30/43] Compiling ZohoBooksClient HttpService.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:101:19: error: cannot find 'URLRequest' in scope
 99 |     }
100 |
101 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
102 |     request.httpMethod = method
103 |     request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:123:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 |     }
122 |
123 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
124 |
125 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:256:19: error: cannot find 'URLRequest' in scope
254 |
255 |     let boundary = "Boundary-\(UUID().uuidString)"
256 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
257 |     request.httpMethod = "POST"
258 |     request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:290:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
288 |     }
289 |
290 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
291 |
292 |     guard let httpResponse = response as? HTTPURLResponse else {
[31/43] Compiling ZohoBooksClient ZBAccount.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:101:19: error: cannot find 'URLRequest' in scope
 99 |     }
100 |
101 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
102 |     request.httpMethod = method
103 |     request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:123:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 |     }
122 |
123 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
124 |
125 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:256:19: error: cannot find 'URLRequest' in scope
254 |
255 |     let boundary = "Boundary-\(UUID().uuidString)"
256 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
257 |     request.httpMethod = "POST"
258 |     request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:290:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
288 |     }
289 |
290 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
291 |
292 |     guard let httpResponse = response as? HTTPURLResponse else {
[32/43] Compiling ZohoBooksClient ZohoOAuthenticator.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:49: error: cannot find type 'URLRequest' in scope
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:60:23: error: cannot find 'URLRequest' in scope
 58 |         }
 59 |
 60 |         var request = URLRequest(url: config.tokenURL)
    |                       `- error: cannot find 'URLRequest' in scope
 61 |         request.httpMethod = "POST"
 62 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:95:23: error: cannot find 'URLRequest' in scope
 93 |         ]
 94 |
 95 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 96 |         request.httpMethod = "POST"
 97 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:119:35: error: missing argument for parameter 'userAuthenticator' in call
117 |       appCredentials: appCredentials,
118 |       loginStorage: loginStorage,
119 |       tokenHandling: tokenHandling
    |                                   `- error: missing argument for parameter 'userAuthenticator' in call
120 |     )
121 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:101:10: note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
 99 | #endif
100 |
101 | 		public init(
    |          `- note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
102 | 			appCredentials: AppCredentials,
103 | 			loginStorage: LoginStorage? = nil,
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:139:24: error: cannot find 'URLRequest' in scope
137 |     // Make a request to trigger token refresh
138 |     let urlString = "https://www.zohoapis.\(config.region.rawValue)/books/v3/contacts"
139 |     let dummyRequest = URLRequest(url: URL(string: urlString)!)
    |                        `- error: cannot find 'URLRequest' in scope
140 |     _ = try await authenticator.response(for: dummyRequest)
141 |
[33/43] Compiling ZohoBooksClient ZBTax.swift
[34/43] Compiling ZohoBooksClient OAuthProviding.swift
[35/43] Compiling ZohoBooksClient ZohoBooksClient.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:63:29: warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'get(endpoint:queryItems:headers:)'; this is an error in the Swift 6 language mode
 57 |   // MARK: - Private helpers wrapping HttpService
 58 |
 59 |   private func get<T: Decodable>(endpoint: String, queryItems: [URLQueryItem] = []) async throws -> T {
    |                    `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 60 |     var items = queryItems
 61 |     items.append(orgQueryItem)
 62 |     do {
 63 |       return try await http.get(endpoint: endpoint, queryItems: items)
    |                             `- warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'get(endpoint:queryItems:headers:)'; this is an error in the Swift 6 language mode
 64 |     } catch let error as HttpServiceError {
 65 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:71:29: warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'post(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 67 |   }
 68 |
 69 |   private func post<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
    |                     `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 70 |     do {
 71 |       return try await http.post(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             `- warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'post(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 72 |     } catch let error as HttpServiceError {
 73 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:79:29: warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'put(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 75 |   }
 76 |
 77 |   private func put<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
    |                    `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |     do {
 79 |       return try await http.put(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             `- warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'put(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 80 |     } catch let error as HttpServiceError {
 81 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:71:29: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
 69 |   private func post<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
 70 |     do {
 71 |       return try await http.post(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             |- warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: sending 'self'-isolated 'body' to actor-isolated instance method 'post(endpoint:body:queryItems:headers:)' risks causing data races between actor-isolated and 'self'-isolated uses
 72 |     } catch let error as HttpServiceError {
 73 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:79:29: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
 77 |   private func put<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
 78 |     do {
 79 |       return try await http.put(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             |- warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: sending 'self'-isolated 'body' to actor-isolated instance method 'put(endpoint:body:queryItems:headers:)' risks causing data races between actor-isolated and 'self'-isolated uses
 80 |     } catch let error as HttpServiceError {
 81 |       throw error.toZohoError()
[36/43] Compiling ZohoBooksClient ZohoConfig.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:63:29: warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'get(endpoint:queryItems:headers:)'; this is an error in the Swift 6 language mode
 57 |   // MARK: - Private helpers wrapping HttpService
 58 |
 59 |   private func get<T: Decodable>(endpoint: String, queryItems: [URLQueryItem] = []) async throws -> T {
    |                    `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 60 |     var items = queryItems
 61 |     items.append(orgQueryItem)
 62 |     do {
 63 |       return try await http.get(endpoint: endpoint, queryItems: items)
    |                             `- warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'get(endpoint:queryItems:headers:)'; this is an error in the Swift 6 language mode
 64 |     } catch let error as HttpServiceError {
 65 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:71:29: warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'post(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 67 |   }
 68 |
 69 |   private func post<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
    |                     `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 70 |     do {
 71 |       return try await http.post(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             `- warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'post(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 72 |     } catch let error as HttpServiceError {
 73 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:79:29: warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'put(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 75 |   }
 76 |
 77 |   private func put<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
    |                    `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |     do {
 79 |       return try await http.put(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             `- warning: non-sendable result type 'T' cannot be sent from actor-isolated context in call to instance method 'put(endpoint:body:queryItems:headers:)'; this is an error in the Swift 6 language mode
 80 |     } catch let error as HttpServiceError {
 81 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:71:29: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
 69 |   private func post<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
 70 |     do {
 71 |       return try await http.post(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             |- warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: sending 'self'-isolated 'body' to actor-isolated instance method 'post(endpoint:body:queryItems:headers:)' risks causing data races between actor-isolated and 'self'-isolated uses
 72 |     } catch let error as HttpServiceError {
 73 |       throw error.toZohoError()
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoBooksClient.swift:79:29: warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
 77 |   private func put<T: Decodable>(endpoint: String, body: some Encodable) async throws -> T {
 78 |     do {
 79 |       return try await http.put(endpoint: endpoint, body: body, queryItems: [orgQueryItem])
    |                             |- warning: sending 'body' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: sending 'self'-isolated 'body' to actor-isolated instance method 'put(endpoint:body:queryItems:headers:)' risks causing data races between actor-isolated and 'self'-isolated uses
 80 |     } catch let error as HttpServiceError {
 81 |       throw error.toZohoError()
[37/43] Compiling ZohoBooksClient ZBItem.swift
[38/43] Compiling ZohoBooksClient ZBPayment.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/43] Compiling ZohoBooksClient ZBExpense.swift
[40/43] Compiling ZohoBooksClient ZBInvoice.swift
[41/43] Compiling ZohoBooksClient ZBBankTransaction.swift
[42/43] Compiling ZohoBooksClient ZBContact.swift
[43/43] Emitting module ZohoBooksClient
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:49: error: cannot find type 'URLRequest' in scope
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:60:23: error: cannot find 'URLRequest' in scope
 58 |         }
 59 |
 60 |         var request = URLRequest(url: config.tokenURL)
    |                       `- error: cannot find 'URLRequest' in scope
 61 |         request.httpMethod = "POST"
 62 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:95:23: error: cannot find 'URLRequest' in scope
 93 |         ]
 94 |
 95 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 96 |         request.httpMethod = "POST"
 97 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:119:35: error: missing argument for parameter 'userAuthenticator' in call
117 |       appCredentials: appCredentials,
118 |       loginStorage: loginStorage,
119 |       tokenHandling: tokenHandling
    |                                   `- error: missing argument for parameter 'userAuthenticator' in call
120 |     )
121 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:101:10: note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
 99 | #endif
100 |
101 | 		public init(
    |          `- note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
102 | 			appCredentials: AppCredentials,
103 | 			loginStorage: LoginStorage? = nil,
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8e1c3aab9de7fa4f6e33977b6a4cee007e876da3e605dda0be6b9b9bf86aa951
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/19] Compiling OAuthenticator URLSession+ResponseProvider.swift
[3/19] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
[4/19] Compiling MimeTypeEnum MimeType.swift
[5/19] Emitting module MimeTypeEnum
[6/22] Emitting module OAuthenticator
[8/22] Compiling OAuthenticator Mastodon.swift
[9/22] Compiling OAuthenticator URL+QueryParams.swift
[10/22] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
[11/22] Compiling OAuthenticator Authenticator.swift
[12/22] Compiling OAuthenticator CredentialWindowProvider.swift
[13/22] Compiling OAuthenticator Data+Base64URLEncode.swift
[14/22] Compiling OAuthenticator Models.swift
[15/22] Compiling OAuthenticator DPoPKey.swift
[16/22] Compiling OAuthenticator DPoPSigner.swift
[17/22] Compiling OAuthenticator GitHub.swift
[18/22] Compiling OAuthenticator GoogleAPI.swift
[19/22] Compiling OAuthenticator PKCE.swift
[20/22] Compiling OAuthenticator Bluesky.swift
[21/22] Compiling OAuthenticator WellknownEndpoints.swift
[22/22] Compiling OAuthenticator resource_bundle_accessor.swift
[24/38] Compiling ZohoBooksClient ZohoError.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:70:19: error: cannot find 'URLRequest' in scope
 68 |     }
 69 |
 70 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 71 |     request.httpMethod = "POST"
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:74:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
 73 |
 74 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 75 |
 76 |     guard let httpResponse = response as? HTTPURLResponse else {
[25/38] Compiling ZohoBooksClient ZohoOAuth.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:70:19: error: cannot find 'URLRequest' in scope
 68 |     }
 69 |
 70 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 71 |     request.httpMethod = "POST"
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuth.swift:74:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 72 |     request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
 73 |
 74 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 75 |
 76 |     guard let httpResponse = response as? HTTPURLResponse else {
[26/39] Compiling ZohoBooksClient ZBTax.swift
[27/39] Compiling ZohoBooksClient OAuthProviding.swift
[28/39] Compiling ZohoBooksClient ZohoOAuthenticator.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:49: error: cannot find type 'URLRequest' in scope
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:60:23: error: cannot find 'URLRequest' in scope
 58 |         }
 59 |
 60 |         var request = URLRequest(url: config.tokenURL)
    |                       `- error: cannot find 'URLRequest' in scope
 61 |         request.httpMethod = "POST"
 62 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:95:23: error: cannot find 'URLRequest' in scope
 93 |         ]
 94 |
 95 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 96 |         request.httpMethod = "POST"
 97 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:119:35: error: missing argument for parameter 'userAuthenticator' in call
117 |       appCredentials: appCredentials,
118 |       loginStorage: loginStorage,
119 |       tokenHandling: tokenHandling
    |                                   `- error: missing argument for parameter 'userAuthenticator' in call
120 |     )
121 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:101:10: note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
 99 | #endif
100 |
101 | 		public init(
    |          `- note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
102 | 			appCredentials: AppCredentials,
103 | 			loginStorage: LoginStorage? = nil,
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:139:24: error: cannot find 'URLRequest' in scope
137 |     // Make a request to trigger token refresh
138 |     let urlString = "https://www.zohoapis.\(config.region.rawValue)/books/v3/contacts"
139 |     let dummyRequest = URLRequest(url: URL(string: urlString)!)
    |                        `- error: cannot find 'URLRequest' in scope
140 |     _ = try await authenticator.response(for: dummyRequest)
141 |
[29/39] Compiling ZohoBooksClient ZohoBooksClient.swift
[30/39] Compiling ZohoBooksClient ZohoConfig.swift
[31/39] Compiling ZohoBooksClient ZBItem.swift
[32/39] Compiling ZohoBooksClient ZBPayment.swift
[33/39] Compiling ZohoBooksClient ZBExpense.swift
[34/39] Compiling ZohoBooksClient ZBInvoice.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[35/39] Compiling ZohoBooksClient ZBBankTransaction.swift
[36/39] Compiling ZohoBooksClient ZBContact.swift
[37/39] Emitting module ZohoBooksClient
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:49: error: cannot find type 'URLRequest' in scope
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                 `- error: cannot find type 'URLRequest' in scope
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:149:84: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |   /// Make an authenticated request using OAuthenticator
148 |   /// This is the primary way to make API calls - OAuthenticator handles auth automatically
149 |   public func authenticatedRequest(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 |     let (data, response) = try await authenticator.response(for: request)
151 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:60:23: error: cannot find 'URLRequest' in scope
 58 |         }
 59 |
 60 |         var request = URLRequest(url: config.tokenURL)
    |                       `- error: cannot find 'URLRequest' in scope
 61 |         request.httpMethod = "POST"
 62 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:95:23: error: cannot find 'URLRequest' in scope
 93 |         ]
 94 |
 95 |         var request = URLRequest(url: components.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 96 |         request.httpMethod = "POST"
 97 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/ZohoOAuthenticator.swift:119:35: error: missing argument for parameter 'userAuthenticator' in call
117 |       appCredentials: appCredentials,
118 |       loginStorage: loginStorage,
119 |       tokenHandling: tokenHandling
    |                                   `- error: missing argument for parameter 'userAuthenticator' in call
120 |     )
121 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:101:10: note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
 99 | #endif
100 |
101 | 		public init(
    |          `- note: 'init(appCredentials:loginStorage:tokenHandling:mode:userAuthenticator:authenticationStatusHandler:)' declared here
102 | 			appCredentials: AppCredentials,
103 | 			loginStorage: LoginStorage? = nil,
[38/39] Compiling ZohoBooksClient HttpService.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:101:19: error: cannot find 'URLRequest' in scope
 99 |     }
100 |
101 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
102 |     request.httpMethod = method
103 |     request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:123:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 |     }
122 |
123 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
124 |
125 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:256:19: error: cannot find 'URLRequest' in scope
254 |
255 |     let boundary = "Boundary-\(UUID().uuidString)"
256 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
257 |     request.httpMethod = "POST"
258 |     request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:290:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
288 |     }
289 |
290 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
291 |
292 |     guard let httpResponse = response as? HTTPURLResponse else {
[39/39] Compiling ZohoBooksClient ZBAccount.swift
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:101:19: error: cannot find 'URLRequest' in scope
 99 |     }
100 |
101 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
102 |     request.httpMethod = method
103 |     request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:123:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
121 |     }
122 |
123 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
124 |
125 |     guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:256:19: error: cannot find 'URLRequest' in scope
254 |
255 |     let boundary = "Boundary-\(UUID().uuidString)"
256 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
257 |     request.httpMethod = "POST"
258 |     request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ZohoBooksClient/HttpService.swift:290:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
288 |     }
289 |
290 |     let (data, response) = try await URLSession.shared.data(for: request)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
291 |
292 |     guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.1 linux