The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftJiraKit, reference main (7c713c), with Swift 6.2 for Android on 22 Jun 2025 19:55:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/martindahlswe/SwiftJiraKit.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/martindahlswe/SwiftJiraKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7c713c3 Enhance `JiraAPI` and `NetworkManager` functionality with token-based authentication and improve test coverage
Cloned https://github.com/martindahlswe/SwiftJiraKit.git
Revision (git rev-parse @):
7c713c3cc1c13375f4fa660446a3f08ab8badff3
SUCCESS checkout https://github.com/martindahlswe/SwiftJiraKit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/martindahlswe/SwiftJiraKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.62s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.44s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[4/8] Compiling Logging MetadataProvider.swift
[5/8] Emitting module Logging
[6/8] Compiling Logging LogHandler.swift
[7/8] Compiling Logging Locks.swift
[8/8] Compiling Logging Logging.swift
[10/22] Compiling SwiftJiraKit WorklogRequest.swift
[11/22] Compiling SwiftJiraKit WorklogResponse.swift
[12/23] Compiling SwiftJiraKit WorklogService.swift
[13/23] Compiling SwiftJiraKit DateFormatter+Extensions.swift
[14/23] Compiling SwiftJiraKit SwiftJiraKit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/23] Compiling SwiftJiraKit NetworkManaging.swift
[16/23] Compiling SwiftJiraKit ConnectivityService.swift
[17/23] Emitting module SwiftJiraKit
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 | /// Protocol for URLSession to allow mocking in tests.
 5 | public protocol URLSessionProtocol {
 6 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
 7 | }
 8 |
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:6:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | /// Protocol for URLSession to allow mocking in tests.
 5 | public protocol URLSessionProtocol {
 6 |     func data(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.
 7 | }
 8 |
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/SwiftJiraKit/Core/NetworkManager.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 |
 9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |
12 | /// Implementation of the `NetworkManaging` protocol for performing HTTP requests.
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:24:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     ///   - token: The Bearer token for authentication.
23 |     ///   - urlSession: A custom `URLSessionProtocol` for networking.
24 |     public init(baseURL: URL, token: String, urlSession: URLSessionProtocol = URLSession.shared) {
   |                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.baseURL = baseURL
26 |         self.token = token
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:51:68: error: cannot find type 'URLRequest' in scope
49 |
50 |     /// Builds a URLRequest for the given endpoint and HTTP method.
51 |     private func buildRequest(endpoint: String, method: String) -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
52 |         guard let url = URL(string: endpoint, relativeTo: baseURL) else {
53 |             fatalError("Invalid URL for endpoint: \(endpoint)")
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:64:44: error: cannot find type 'URLRequest' in scope
62 |
63 |     /// Executes the URLRequest and handles the response.
64 |     private func performRequest(_ request: URLRequest) async throws -> Data {
   |                                            `- error: cannot find type 'URLRequest' in scope
65 |         logger.info("Starting request to: \(request.url?.absoluteString ?? "Unknown URL")")
66 |         do {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[18/23] Compiling SwiftJiraKit IssueResponse.swift
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:24:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     ///   - token: The Bearer token for authentication.
23 |     ///   - urlSession: A custom `URLSessionProtocol` for networking.
24 |     public init(baseURL: URL, token: String, urlSession: URLSessionProtocol = URLSession.shared) {
   |                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.baseURL = baseURL
26 |         self.token = token
[19/23] Compiling SwiftJiraKit IssueService.swift
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:24:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     ///   - token: The Bearer token for authentication.
23 |     ///   - urlSession: A custom `URLSessionProtocol` for networking.
24 |     public init(baseURL: URL, token: String, urlSession: URLSessionProtocol = URLSession.shared) {
   |                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.baseURL = baseURL
26 |         self.token = token
[20/23] Compiling SwiftJiraKit APIError.swift
[21/23] Compiling SwiftJiraKit JQLBuilder.swift
[22/23] Compiling SwiftJiraKit JiraAPI.swift
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:24:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     ///   - token: The Bearer token for authentication.
23 |     ///   - urlSession: A custom `URLSessionProtocol` for networking.
24 |     public init(baseURL: URL, token: String, urlSession: URLSessionProtocol = URLSession.shared) {
   |                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.baseURL = baseURL
26 |         self.token = token
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 | /// Protocol for URLSession to allow mocking in tests.
 5 | public protocol URLSessionProtocol {
 6 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
 7 | }
 8 |
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:6:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | /// Protocol for URLSession to allow mocking in tests.
 5 | public protocol URLSessionProtocol {
 6 |     func data(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.
 7 | }
 8 |
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/SwiftJiraKit/Core/NetworkManager.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 |
 9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |
12 | /// Implementation of the `NetworkManaging` protocol for performing HTTP requests.
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:51:68: error: cannot find type 'URLRequest' in scope
49 |
50 |     /// Builds a URLRequest for the given endpoint and HTTP method.
51 |     private func buildRequest(endpoint: String, method: String) -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
52 |         guard let url = URL(string: endpoint, relativeTo: baseURL) else {
53 |             fatalError("Invalid URL for endpoint: \(endpoint)")
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:64:44: error: cannot find type 'URLRequest' in scope
62 |
63 |     /// Executes the URLRequest and handles the response.
64 |     private func performRequest(_ request: URLRequest) async throws -> Data {
   |                                            `- error: cannot find type 'URLRequest' in scope
65 |         logger.info("Starting request to: \(request.url?.absoluteString ?? "Unknown URL")")
66 |         do {
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:55:23: error: cannot find 'URLRequest' in scope
53 |             fatalError("Invalid URL for endpoint: \(endpoint)")
54 |         }
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = method
57 |         request.addValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[23/23] Compiling SwiftJiraKit NetworkManager.swift
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:24:90: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     ///   - token: The Bearer token for authentication.
23 |     ///   - urlSession: A custom `URLSessionProtocol` for networking.
24 |     public init(baseURL: URL, token: String, urlSession: URLSessionProtocol = URLSession.shared) {
   |                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.baseURL = baseURL
26 |         self.token = token
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:6:28: error: cannot find type 'URLRequest' in scope
 4 | /// Protocol for URLSession to allow mocking in tests.
 5 | public protocol URLSessionProtocol {
 6 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
 7 | }
 8 |
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:6:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 | /// Protocol for URLSession to allow mocking in tests.
 5 | public protocol URLSessionProtocol {
 6 |     func data(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.
 7 | }
 8 |
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/SwiftJiraKit/Core/NetworkManager.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 |
 9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 |
12 | /// Implementation of the `NetworkManaging` protocol for performing HTTP requests.
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:51:68: error: cannot find type 'URLRequest' in scope
49 |
50 |     /// Builds a URLRequest for the given endpoint and HTTP method.
51 |     private func buildRequest(endpoint: String, method: String) -> URLRequest {
   |                                                                    `- error: cannot find type 'URLRequest' in scope
52 |         guard let url = URL(string: endpoint, relativeTo: baseURL) else {
53 |             fatalError("Invalid URL for endpoint: \(endpoint)")
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:64:44: error: cannot find type 'URLRequest' in scope
62 |
63 |     /// Executes the URLRequest and handles the response.
64 |     private func performRequest(_ request: URLRequest) async throws -> Data {
   |                                            `- error: cannot find type 'URLRequest' in scope
65 |         logger.info("Starting request to: \(request.url?.absoluteString ?? "Unknown URL")")
66 |         do {
/host/spi-builder-workspace/Sources/SwiftJiraKit/Core/NetworkManager.swift:55:23: error: cannot find 'URLRequest' in scope
53 |             fatalError("Invalid URL for endpoint: \(endpoint)")
54 |         }
55 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
56 |         request.httpMethod = method
57 |         request.addValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 android