Build Information
Failed to build InopaySDK, reference main (268bda), with Swift 6.0 for Linux on 9 May 2026 07:16:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fofanay/inopay-ios.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/fofanay/inopay-ios
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 268bdad feat(ui): InopayUI module v0.2.0-alpha.1 — 14 SwiftUI screens
Cloned https://github.com/fofanay/inopay-ios.git
Revision (git rev-parse @):
268bdada2e1fee8e598a4f2b07c49d60125df6a6
SUCCESS checkout https://github.com/fofanay/inopay-ios.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/fofanay/inopay-ios.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:6ccbc5e7995f6c524368c1828f9c677d1727c16390a603fc668217aec5f5123a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/InopayUI/README-INOPAYUI.md
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module InopaySDK
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:117:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | public let apiKey: String
116 | public let baseURL: URL
117 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | private let decoder: JSONDecoder
119 | private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:129:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | apiKey: String,
128 | baseURL: URL = URL(string: "https://api.getinopay.com/v1/sandbox")!,
129 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | ) {
131 | precondition(!apiKey.isEmpty, "InopayClient: apiKey is required")
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:129:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
127 | apiKey: String,
128 | baseURL: URL = URL(string: "https://api.getinopay.com/v1/sandbox")!,
129 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
130 | ) {
131 | precondition(!apiKey.isEmpty, "InopayClient: apiKey is required")
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:144:19: error: cannot find 'URLRequest' in scope
142 | body: Data? = nil
143 | ) async throws -> T {
144 | var req = URLRequest(url: baseURL.appendingPathComponent(path))
| `- error: cannot find 'URLRequest' in scope
145 | req.httpMethod = method
146 | req.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:151:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
149 | req.httpBody = body
150 |
151 | let (data, response) = try await session.data(for: req)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
152 | guard let http = response as? HTTPURLResponse else {
153 | throw InopayError(status: -1, code: "transport", detail: "non-HTTP response")
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:160:16: error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
158 | }
159 |
160 | struct ErrPayload: Decodable { let error: String?; let detail: String? }
| `- error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
161 | let payload = try? decoder.decode(ErrPayload.self, from: data)
162 | throw InopayError(
[5/5] Compiling InopaySDK InopayClient.swift
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:117:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | public let apiKey: String
116 | public let baseURL: URL
117 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | private let decoder: JSONDecoder
119 | private let encoder: JSONEncoder
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:129:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 | apiKey: String,
128 | baseURL: URL = URL(string: "https://api.getinopay.com/v1/sandbox")!,
129 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 | ) {
131 | precondition(!apiKey.isEmpty, "InopayClient: apiKey is required")
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:129:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
127 | apiKey: String,
128 | baseURL: URL = URL(string: "https://api.getinopay.com/v1/sandbox")!,
129 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
130 | ) {
131 | precondition(!apiKey.isEmpty, "InopayClient: apiKey is required")
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:144:19: error: cannot find 'URLRequest' in scope
142 | body: Data? = nil
143 | ) async throws -> T {
144 | var req = URLRequest(url: baseURL.appendingPathComponent(path))
| `- error: cannot find 'URLRequest' in scope
145 | req.httpMethod = method
146 | req.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:151:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
149 | req.httpBody = body
150 |
151 | let (data, response) = try await session.data(for: req)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
152 | guard let http = response as? HTTPURLResponse else {
153 | throw InopayError(status: -1, code: "transport", detail: "non-HTTP response")
/host/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:160:16: error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
158 | }
159 |
160 | struct ErrPayload: Decodable { let error: String?; let detail: String? }
| `- error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
161 | let payload = try? decoder.decode(ErrPayload.self, from: data)
162 | throw InopayError(
BUILD FAILURE 6.0 linux