The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NetworkKit, reference main (1c1904), with Swift 6.3 for Android on 19 Apr 2026 16:32:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/ErsanQ/NetworkKit.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/ErsanQ/NetworkKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1c19041 fix: resolve invalid test paths and empty targets for SPI compatibility
Cloned https://github.com/ErsanQ/NetworkKit.git
Revision (git rev-parse @):
1c19041ca528e103a6858862d5f87f135086828b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ErsanQ/NetworkKit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ErsanQ/NetworkKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/9] Compiling NetworkKit NetworkError.swift
[4/9] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: value of type '_' expected to be instance of class or class-constrained type
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: value of type '_' expected to be instance of class or class-constrained type
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     private let decoder: JSONDecoder
20 |
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/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         self.baseURL = baseURL
29 |         self.session = session
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/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
19 |     private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
[5/9] Compiling NetworkKit NetworkClient.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     private let decoder: JSONDecoder
20 |
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/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         self.baseURL = baseURL
29 |         self.session = session
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/NetworkKit/NetworkClient.swift:27:54: error: value of type '_' expected to be instance of class or class-constrained type
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: value of type '_' expected to be instance of class or class-constrained type
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-Sendable type 'AnyObject'; this is an error in the Swift 6 language mode
19 |     private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         let urlRequest = try request.buildURLRequest(with: baseURL)
40 |
41 |         let (data, response) = try await session.data(for: urlRequest)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         guard let httpResponse = response as? HTTPURLResponse else {
[6/9] Compiling NetworkKit Network.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: value of type '_' expected to be instance of class or class-constrained type
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: value of type '_' expected to be instance of class or class-constrained type
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/Network.swift:112:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
110 |     public static func response(for request: NetworkRequest) async throws -> NetworkResponse {
111 |         let urlRequest = try request.buildURLRequest(with: shared.baseURL)
112 |         let (data, response) = try await URLSession.shared.data(for: urlRequest)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
113 |         guard let http = response as? HTTPURLResponse else { throw NetworkError.invalidResponse }
114 |         return NetworkResponse(statusCode: http.statusCode, data: data, headers: http.allHeaderFields.reduce(into: [:]) { partial, item in
[7/9] Compiling NetworkKit NetworkResponse.swift
[8/9] Compiling NetworkKit NetworkKitFallback.swift
[9/9] Compiling NetworkKit NetworkRequest.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:50:23: error: cannot find 'URLRequest' in scope
48 |         }
49 |
50 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
51 |         request.httpMethod = method.rawValue
52 |         request.httpBody = body
BUILD FAILURE 6.3 android