The Swift Package Index logo.Swift Package Index

Build Information

Failed to build InopaySDK, reference main (268bda), with Swift 6.1 for Wasm on 9 May 2026 07:16:04 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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build 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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fofanay/inopay-ios.git
https://github.com/fofanay/inopay-ios.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-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(
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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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(
[3/3] 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.1 wasm