Build Information
Failed to build SwiftJiraKit, reference main (7c713c), with Swift 6.1 for Wasm on 30 May 2025 04:08:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/martindahlswe/SwiftJiraKit.git
https://github.com/martindahlswe/SwiftJiraKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "SwiftJiraKit",
"name" : "SwiftJiraKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "SwiftJiraKit",
"targets" : [
"SwiftJiraKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftJiraKitTests",
"module_type" : "SwiftTarget",
"name" : "SwiftJiraKitTests",
"path" : "Tests/SwiftJiraKitTests",
"sources" : [
"APIErrorTests.swift",
"ConnectivityServiceTests.swift",
"DateFormatterExtensionsTests.swift",
"IssueResponseTests.swift",
"IssueServiceTests.swift",
"JQLBuilderTests.swift",
"JiraAPITests.swift",
"MockUtilities.swift",
"NetworkManagerTests.swift",
"NetworkManagingTests.swift",
"WorklogRequestTests.swift",
"WorklogResponseTests.swift",
"WorklogServiceTests.swift"
],
"target_dependencies" : [
"SwiftJiraKit"
],
"type" : "test"
},
{
"c99name" : "SwiftJiraKit",
"module_type" : "SwiftTarget",
"name" : "SwiftJiraKit",
"path" : "Sources/SwiftJiraKit",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"SwiftJiraKit"
],
"sources" : [
"Core/APIError.swift",
"Core/JQLBuilder.swift",
"Core/JiraAPI.swift",
"Core/NetworkManager.swift",
"Core/NetworkManaging.swift",
"Endpoints/Connectivity/ConnectivityService.swift",
"Endpoints/Issue/IssueResponse.swift",
"Endpoints/Issue/IssueService.swift",
"Endpoints/Worklog/WorklogRequest.swift",
"Endpoints/Worklog/WorklogResponse.swift",
"Endpoints/Worklog/WorklogService.swift",
"Extensions/DateFormatter+Extensions.swift",
"SwiftJiraKit.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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.35s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.88s)
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-24593BA9C3E375BF.txt
[4/8] Emitting module Logging
[5/8] Compiling Logging Locks.swift
[6/8] Compiling Logging MetadataProvider.swift
[7/8] Compiling Logging LogHandler.swift
[8/8] Compiling Logging Logging.swift
[10/22] Compiling SwiftJiraKit NetworkManaging.swift
[11/22] Compiling SwiftJiraKit ConnectivityService.swift
[12/22] 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
[13/22] 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
[14/22] Compiling SwiftJiraKit WorklogService.swift
[15/22] Compiling SwiftJiraKit DateFormatter+Extensions.swift
[16/23] Compiling SwiftJiraKit WorklogRequest.swift
[17/23] Compiling SwiftJiraKit WorklogResponse.swift
[18/23] Compiling SwiftJiraKit SwiftJiraKit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/23] Compiling SwiftJiraKit APIError.swift
[20/23] Compiling SwiftJiraKit JQLBuilder.swift
[21/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
8 |
9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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 {
[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
8 |
9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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")
[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
8 |
9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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")
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging MetadataProvider.swift
[3/6] Compiling Logging Locks.swift
[4/6] Compiling Logging LogHandler.swift
[5/6] Emitting module Logging
[6/6] Compiling Logging Logging.swift
[8/20] Compiling SwiftJiraKit DateFormatter+Extensions.swift
[9/21] Compiling SwiftJiraKit WorklogService.swift
[10/21] Compiling SwiftJiraKit SwiftJiraKit.swift
[11/21] 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
[12/21] 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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/21] Compiling SwiftJiraKit APIError.swift
[14/21] Compiling SwiftJiraKit JQLBuilder.swift
[15/21] 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
8 |
9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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 {
[16/21] Compiling SwiftJiraKit NetworkManaging.swift
[17/21] Compiling SwiftJiraKit ConnectivityService.swift
[18/21] 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
8 |
9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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")
[19/21] 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
8 |
9 | /// Extend URLSession to conform to URLSessionProtocol.
10 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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")
[20/21] Compiling SwiftJiraKit WorklogRequest.swift
[21/21] Compiling SwiftJiraKit WorklogResponse.swift
BUILD FAILURE 6.1 wasm