Build Information
Failed to build ZohoBooksClient, reference 0.1.2 (71b68f), with Swift 6.0 for Linux on 20 Jan 2026 17:01:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emotiveapps/ZohoBooksClient.git
Reference: 0.1.2
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
* tag 0.1.2 -> FETCH_HEAD
HEAD is now at 71b68f3 Fix lint
Cloned https://github.com/emotiveapps/ZohoBooksClient.git
Revision (git rev-parse @):
71b68f301547110794b334d363ec3fce8538efd3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/emotiveapps/ZohoBooksClient.git at 0.1.2
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/emotiveapps/ZohoBooksClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:d60f78d1b94eb114d4ebb72af8c32e902a28db13a75577d0341a88c358a803b4
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/ChimeHQ/OAuthenticator
Fetching https://github.com/emotiveapps/MimeTypeEnum
[1/46] Fetching mimetypeenum
[47/1145] Fetching mimetypeenum, oauthenticator
Fetched https://github.com/emotiveapps/MimeTypeEnum from cache (0.24s)
Fetched https://github.com/ChimeHQ/OAuthenticator from cache (0.24s)
Computing version for https://github.com/emotiveapps/MimeTypeEnum
Computed https://github.com/emotiveapps/MimeTypeEnum at 1.0.2 (0.58s)
Computing version for https://github.com/ChimeHQ/OAuthenticator
Computed https://github.com/ChimeHQ/OAuthenticator at 0.7.2 (0.69s)
Creating working copy for https://github.com/emotiveapps/MimeTypeEnum
Working copy of https://github.com/emotiveapps/MimeTypeEnum resolved at 1.0.2
Creating working copy for https://github.com/ChimeHQ/OAuthenticator
Working copy of https://github.com/ChimeHQ/OAuthenticator resolved at 0.7.2
Building for debugging...
[0/5] Write sources
[0/5] Copying PrivacyInfo.xcprivacy
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/23] Compiling OAuthenticator GitHub.swift
[7/23] Compiling OAuthenticator GoogleAPI.swift
[8/25] Emitting module MimeTypeEnum
[9/25] Compiling MimeTypeEnum MimeType.swift
[11/26] Compiling OAuthenticator PKCE.swift
[12/26] Compiling OAuthenticator Bluesky.swift
[13/26] Compiling OAuthenticator Mastodon.swift
[14/26] Compiling OAuthenticator URL+QueryParams.swift
[15/26] Emitting module OAuthenticator
[16/26] Compiling OAuthenticator DPoPKey.swift
[17/26] Compiling OAuthenticator DPoPSigner.swift
[18/26] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
[19/26] Compiling OAuthenticator Authenticator.swift
[20/26] Compiling OAuthenticator CredentialWindowProvider.swift
[21/26] Compiling OAuthenticator URLSession+ResponseProvider.swift
[22/26] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
[23/26] Compiling OAuthenticator Data+Base64URLEncode.swift
[24/26] Compiling OAuthenticator Models.swift
[25/26] Compiling OAuthenticator WellknownEndpoints.swift
[26/26] Compiling OAuthenticator resource_bundle_accessor.swift
[28/41] 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 {
[29/42] Compiling ZohoBooksClient ZohoConfig.swift
[30/42] Compiling ZohoBooksClient ZohoError.swift
[31/42] 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:120:5: error: missing argument for parameter 'userAuthenticator' in call
118 | loginStorage: loginStorage,
119 | tokenHandling: tokenHandling
120 | )
| `- error: missing argument for parameter 'userAuthenticator' in call
121 |
122 | self.authenticator = Authenticator(config: authenticatorConfig)
/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 |
[32/42] Compiling ZohoBooksClient ZBPayment.swift
[33/42] Compiling ZohoBooksClient ZBTax.swift
[34/42] Compiling ZohoBooksClient OAuthProviding.swift
[35/42] Compiling ZohoBooksClient ZohoBooksClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[36/42] Compiling ZohoBooksClient ZBContact.swift
[37/42] Compiling ZohoBooksClient ZBExpense.swift
[38/42] Compiling ZohoBooksClient ZBInvoice.swift
[39/42] Compiling ZohoBooksClient ZBItem.swift
[40/42] 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:120:5: error: missing argument for parameter 'userAuthenticator' in call
118 | loginStorage: loginStorage,
119 | tokenHandling: tokenHandling
120 | )
| `- error: missing argument for parameter 'userAuthenticator' in call
121 |
122 | self.authenticator = Authenticator(config: authenticatorConfig)
/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,
[41/42] 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 {
[42/42] 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.0 linux