The Swift Package Index logo.Swift Package Index

Build Information

Failed to build InopaySDK, reference v0.2.0-alpha.1 (268bda), with Swift 6.3 for Android on 9 May 2026 07:16:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 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: v0.2.0-alpha.1
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
 * tag               v0.2.0-alpha.1 -> FETCH_HEAD
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 v0.2.0-alpha.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/fofanay/inopay-ios.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-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--4F562202D5529B1.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: value of type '_' expected to be instance of class or class-constrained type
127 |         apiKey: String,
128 |         baseURL: URL = URL(string: "https://api.getinopay.com/v1/sandbox")!,
129 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
130 |     ) {
131 |         precondition(!apiKey.isEmpty, "InopayClient: apiKey is required")
/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: value of type '_' expected to be instance of class or class-constrained type
127 |         apiKey: String,
128 |         baseURL: URL = URL(string: "https://api.getinopay.com/v1/sandbox")!,
129 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
130 |     ) {
131 |         precondition(!apiKey.isEmpty, "InopayClient: apiKey is required")
/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.3 android