Build Information
Failed to build swift-pinata, reference 0.2.0 (d62925), with Swift 6.1 for Wasm on 4 Jan 2026 19:38:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.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.1
Building package at path: $PWD
https://github.com/CorvidLabs/swift-pinata.git
https://github.com/CorvidLabs/swift-pinata.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-pinata",
"name" : "swift-pinata",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "Pinata",
"targets" : [
"Pinata"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PinataTests",
"module_type" : "SwiftTarget",
"name" : "PinataTests",
"path" : "Tests/PinataTests",
"sources" : [
"PinataIntegrationTests.swift",
"PinataResponseTests.swift",
"PinataTests.swift"
],
"target_dependencies" : [
"Pinata"
],
"type" : "test"
},
{
"c99name" : "Pinata",
"module_type" : "SwiftTarget",
"name" : "Pinata",
"path" : "Sources/Pinata",
"product_memberships" : [
"Pinata"
],
"sources" : [
"Models/PinataFile.swift",
"Models/PinataGroup.swift",
"Pinata.swift",
"PinataConfiguration.swift",
"PinataCredentials.swift",
"PinataError.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2158] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.40s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (2.91s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3632] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.06s)
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.5
[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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling Pinata PinataFile.swift
[6/11] Compiling Pinata PinataGroup.swift
[7/11] Compiling Pinata PinataConfiguration.swift
[8/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: 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: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: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
[9/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: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: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: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 {
[10/11] Compiling Pinata PinataError.swift
[11/11] Compiling Pinata PinataCredentials.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:dbcbf45695e2d1afcaee9a5a93239e71a6cc4a5872f338d6e993e9ceefe7df1b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/10] Compiling Pinata PinataConfiguration.swift
[5/10] Compiling Pinata PinataError.swift
[6/10] Compiling Pinata PinataCredentials.swift
[7/10] 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: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: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: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 {
[8/10] Compiling Pinata PinataGroup.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/10] Compiling Pinata PinataFile.swift
[10/10] 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: 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: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: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.1 wasm