Build Information
Failed to build swift-pinata, reference 0.2.0 (d62925), with Swift 6.3 for Wasm on 18 Apr 2026 01:59:07 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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CorvidLabs/swift-pinata.git
Reference: 0.2.0
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/CorvidLabs/swift-pinata
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at d629255 Fix naming convention (#2)
Cloned https://github.com/CorvidLabs/swift-pinata.git
Revision (git rev-parse @):
d629255b0dd7e78bae2181d1e64050e6d47eb584
SUCCESS checkout https://github.com/CorvidLabs/swift-pinata.git at 0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/CorvidLabs/swift-pinata.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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2277] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.61s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (4.04s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.16s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/11] Compiling Pinata PinataError.swift
[6/11] Compiling Pinata Pinata.swift
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The URL session used for requests.
27 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// JSON decoder configured for Pinata API responses.
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/Pinata/Pinata.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | public init(
41 | configuration: PinataConfiguration,
42 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | ) {
44 | self.configuration = configuration
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/Pinata/Pinata.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 | public init(
41 | configuration: PinataConfiguration,
42 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | ) {
44 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:42:32: error: value of type '_' expected to be instance of class or class-constrained type
40 | public init(
41 | configuration: PinataConfiguration,
42 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
43 | ) {
44 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:86:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | jwt: String,
85 | gatewayDomain: String? = nil,
86 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | ) {
88 | self.init(
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/Pinata/Pinata.swift:86:32: error: value of type '_' expected to be instance of class or class-constrained type
84 | jwt: String,
85 | gatewayDomain: String? = nil,
86 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
87 | ) {
88 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:86:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
84 | jwt: String,
85 | gatewayDomain: String? = nil,
86 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
87 | ) {
88 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:105:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | apiSecret: String,
104 | gatewayDomain: String? = nil,
105 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | ) {
107 | self.init(
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/Pinata/Pinata.swift:105:32: error: value of type '_' expected to be instance of class or class-constrained type
103 | apiSecret: String,
104 | gatewayDomain: String? = nil,
105 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
106 | ) {
107 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:105:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | apiSecret: String,
104 | gatewayDomain: String? = nil,
105 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | ) {
107 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:616:56: error: cannot find type 'URLRequest' in scope
614 | private static let baseRetryDelay: UInt64 = 500_000_000
615 |
616 | private func applyAuthentication(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
617 | request.setValue(
618 | configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:51: error: cannot find type 'URLRequest' in scope
624 | }
625 |
626 | private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
627 | let (data, _) = try await performRaw(request)
628 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:40: error: cannot find type 'URLRequest' in scope
634 | }
635 |
636 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
637 | var lastError: Error?
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
634 | }
635 |
636 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
637 | var lastError: Error?
638 |
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/Pinata/Pinata.swift:141:23: error: cannot find 'URLRequest' in scope
139 | let url = PinataConfiguration.uploadBaseURL.appendingPathComponent("v3/files")
140 |
141 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
142 | request.httpMethod = "POST"
143 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:254:23: error: cannot find 'URLRequest' in scope
252 | }
253 |
254 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
255 | request.httpMethod = "GET"
256 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:282:23: error: cannot find 'URLRequest' in scope
280 | .appendingPathComponent(id)
281 |
282 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
283 | request.httpMethod = "GET"
284 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:308:23: error: cannot find 'URLRequest' in scope
306 | .appendingPathComponent(id)
307 |
308 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
309 | request.httpMethod = "DELETE"
310 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:354:23: error: cannot find 'URLRequest' in scope
352 | .appendingPathComponent(id)
353 |
354 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
355 | request.httpMethod = "PUT"
356 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:406:23: error: cannot find 'URLRequest' in scope
404 | .appendingPathComponent(cid)
405 |
406 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
407 | request.httpMethod = "PUT"
408 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:453:23: error: cannot find 'URLRequest' in scope
451 | }
452 |
453 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
454 | request.httpMethod = "GET"
455 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:482:23: error: cannot find 'URLRequest' in scope
480 | .appendingPathComponent(cid)
481 |
482 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
483 | request.httpMethod = "DELETE"
484 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:507:23: error: cannot find 'URLRequest' in scope
505 | let url = PinataConfiguration.apiBaseURL.appendingPathComponent("v3/files/groups")
506 |
507 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
508 | request.httpMethod = "POST"
509 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:557:23: error: cannot find 'URLRequest' in scope
555 | }
556 |
557 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
558 | request.httpMethod = "GET"
559 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:579:23: error: cannot find 'URLRequest' in scope
577 | .appendingPathComponent(id)
578 |
579 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
580 | request.httpMethod = "GET"
581 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:599:23: error: cannot find 'URLRequest' in scope
597 | .appendingPathComponent(id)
598 |
599 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
600 | request.httpMethod = "DELETE"
601 | applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:641:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
639 | for attempt in 0..<Self.maxRetries {
640 | do {
641 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
642 |
643 | guard let httpResponse = response as? HTTPURLResponse else {
[7/11] Compiling Pinata PinataCredentials.swift
[8/11] Compiling Pinata PinataConfiguration.swift
[9/11] Compiling Pinata PinataGroup.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Compiling Pinata PinataFile.swift
[11/11] Emitting module Pinata
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:27:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The URL session used for requests.
27 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// JSON decoder configured for Pinata API responses.
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/Pinata/Pinata.swift:42:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | public init(
41 | configuration: PinataConfiguration,
42 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | ) {
44 | self.configuration = configuration
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/Pinata/Pinata.swift:42:32: error: value of type '_' expected to be instance of class or class-constrained type
40 | public init(
41 | configuration: PinataConfiguration,
42 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
43 | ) {
44 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:42:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
40 | public init(
41 | configuration: PinataConfiguration,
42 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | ) {
44 | self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:86:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | jwt: String,
85 | gatewayDomain: String? = nil,
86 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | ) {
88 | self.init(
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/Pinata/Pinata.swift:86:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
84 | jwt: String,
85 | gatewayDomain: String? = nil,
86 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
87 | ) {
88 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:86:32: error: value of type '_' expected to be instance of class or class-constrained type
84 | jwt: String,
85 | gatewayDomain: String? = nil,
86 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
87 | ) {
88 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:105:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | apiSecret: String,
104 | gatewayDomain: String? = nil,
105 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | ) {
107 | self.init(
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/Pinata/Pinata.swift:105:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | apiSecret: String,
104 | gatewayDomain: String? = nil,
105 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | ) {
107 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:105:32: error: value of type '_' expected to be instance of class or class-constrained type
103 | apiSecret: String,
104 | gatewayDomain: String? = nil,
105 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
106 | ) {
107 | self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:616:56: error: cannot find type 'URLRequest' in scope
614 | private static let baseRetryDelay: UInt64 = 500_000_000
615 |
616 | private func applyAuthentication(to request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
617 | request.setValue(
618 | configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:51: error: cannot find type 'URLRequest' in scope
624 | }
625 |
626 | private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
627 | let (data, _) = try await performRaw(request)
628 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:40: error: cannot find type 'URLRequest' in scope
634 | }
635 |
636 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
637 | var lastError: Error?
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
634 | }
635 |
636 | private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
637 | var lastError: Error?
638 |
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
BUILD FAILURE 6.3 wasm