The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-pinata, reference main (4f027f), with Swift 6.1 for Wasm on 21 Jan 2026 02:13:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CorvidLabs/swift-pinata.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/CorvidLabs/swift-pinata
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4f027f9 Update copyright year to 2026 (#5)
Cloned https://github.com/CorvidLabs/swift-pinata.git
Revision (git rev-parse @):
4f027f948e515f54d6e331351151b4e73455ca63
SUCCESS checkout https://github.com/CorvidLabs/swift-pinata.git at main
========================================
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-4606859-2":/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:bb5ef85e2f3936cf1d2ae6dee7e011cebd8377061043dcf9368e6726baaf85d8
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/2163] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.41s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (3.18s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3644] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.72s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.36s)
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
[5/11] Compiling Pinata PinataCredentials.swift
[6/11] Compiling Pinata PinataConfiguration.swift
[7/11] Compiling Pinata PinataGroup.swift
[8/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:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     ) {
 46 |         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:44:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     ) {
 46 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     ) {
 92 |         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:90:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 91 |     ) {
 92 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     ) {
113 |         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:111:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 |     ) {
113 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:56: error: cannot find type 'URLRequest' in scope
624 |     private static let baseRetryDelay: UInt64 = 500_000_000
625 |
626 |     private func applyAuthentication(to request: inout URLRequest) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
627 |         request.setValue(
628 |             configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:51: error: cannot find type 'URLRequest' in scope
634 |     }
635 |
636 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
637 |         let (data, _) = try await performRaw(request)
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:40: error: cannot find type 'URLRequest' in scope
644 |     }
645 |
646 |     private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
647 |         var lastError: Error?
648 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 |     }
645 |
646 |     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.
647 |         var lastError: Error?
648 |
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:147:23: error: cannot find 'URLRequest' in scope
145 |         let url = PinataConfiguration.uploadBaseURL.appendingPathComponent("v3/files")
146 |
147 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
148 |         request.httpMethod = "POST"
149 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:260:23: error: cannot find 'URLRequest' in scope
258 |         }
259 |
260 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
261 |         request.httpMethod = "GET"
262 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:288:23: error: cannot find 'URLRequest' in scope
286 |             .appendingPathComponent(id)
287 |
288 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
289 |         request.httpMethod = "GET"
290 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:314:23: error: cannot find 'URLRequest' in scope
312 |             .appendingPathComponent(id)
313 |
314 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
315 |         request.httpMethod = "DELETE"
316 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:360:23: error: cannot find 'URLRequest' in scope
358 |             .appendingPathComponent(id)
359 |
360 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
361 |         request.httpMethod = "PUT"
362 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:412:23: error: cannot find 'URLRequest' in scope
410 |             .appendingPathComponent(cid)
411 |
412 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
413 |         request.httpMethod = "PUT"
414 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:459:23: error: cannot find 'URLRequest' in scope
457 |         }
458 |
459 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
460 |         request.httpMethod = "GET"
461 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:488:23: error: cannot find 'URLRequest' in scope
486 |             .appendingPathComponent(cid)
487 |
488 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
489 |         request.httpMethod = "DELETE"
490 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:513:23: error: cannot find 'URLRequest' in scope
511 |         let url = PinataConfiguration.apiBaseURL.appendingPathComponent("v3/files/groups")
512 |
513 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
514 |         request.httpMethod = "POST"
515 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:563:23: error: cannot find 'URLRequest' in scope
561 |         }
562 |
563 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
564 |         request.httpMethod = "GET"
565 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:585:23: error: cannot find 'URLRequest' in scope
583 |             .appendingPathComponent(id)
584 |
585 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
586 |         request.httpMethod = "GET"
587 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:605:23: error: cannot find 'URLRequest' in scope
603 |             .appendingPathComponent(id)
604 |
605 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
606 |         request.httpMethod = "DELETE"
607 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:651:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
649 |         for attempt in 0..<Self.maxRetries {
650 |             do {
651 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
652 |
653 |                 guard let httpResponse = response as? HTTPURLResponse else {
[9/11] Compiling Pinata PinataError.swift
[10/11] Compiling Pinata PinataFile.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     ) {
 46 |         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:44:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     ) {
 46 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     ) {
 92 |         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:90:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 91 |     ) {
 92 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     ) {
113 |         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:111:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 |     ) {
113 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:56: error: cannot find type 'URLRequest' in scope
624 |     private static let baseRetryDelay: UInt64 = 500_000_000
625 |
626 |     private func applyAuthentication(to request: inout URLRequest) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
627 |         request.setValue(
628 |             configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:51: error: cannot find type 'URLRequest' in scope
634 |     }
635 |
636 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
637 |         let (data, _) = try await performRaw(request)
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:40: error: cannot find type 'URLRequest' in scope
644 |     }
645 |
646 |     private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
647 |         var lastError: Error?
648 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 |     }
645 |
646 |     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.
647 |         var lastError: Error?
648 |
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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:bb5ef85e2f3936cf1d2ae6dee7e011cebd8377061043dcf9368e6726baaf85d8
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 PinataError.swift
[5/10] Compiling Pinata PinataCredentials.swift
[6/10] Compiling Pinata PinataConfiguration.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:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     ) {
 46 |         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:44:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     ) {
 46 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     ) {
 92 |         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:90:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 91 |     ) {
 92 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     ) {
113 |         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:111:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 |     ) {
113 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:56: error: cannot find type 'URLRequest' in scope
624 |     private static let baseRetryDelay: UInt64 = 500_000_000
625 |
626 |     private func applyAuthentication(to request: inout URLRequest) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
627 |         request.setValue(
628 |             configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:51: error: cannot find type 'URLRequest' in scope
634 |     }
635 |
636 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
637 |         let (data, _) = try await performRaw(request)
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:40: error: cannot find type 'URLRequest' in scope
644 |     }
645 |
646 |     private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
647 |         var lastError: Error?
648 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 |     }
645 |
646 |     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.
647 |         var lastError: Error?
648 |
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:147:23: error: cannot find 'URLRequest' in scope
145 |         let url = PinataConfiguration.uploadBaseURL.appendingPathComponent("v3/files")
146 |
147 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
148 |         request.httpMethod = "POST"
149 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:260:23: error: cannot find 'URLRequest' in scope
258 |         }
259 |
260 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
261 |         request.httpMethod = "GET"
262 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:288:23: error: cannot find 'URLRequest' in scope
286 |             .appendingPathComponent(id)
287 |
288 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
289 |         request.httpMethod = "GET"
290 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:314:23: error: cannot find 'URLRequest' in scope
312 |             .appendingPathComponent(id)
313 |
314 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
315 |         request.httpMethod = "DELETE"
316 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:360:23: error: cannot find 'URLRequest' in scope
358 |             .appendingPathComponent(id)
359 |
360 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
361 |         request.httpMethod = "PUT"
362 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:412:23: error: cannot find 'URLRequest' in scope
410 |             .appendingPathComponent(cid)
411 |
412 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
413 |         request.httpMethod = "PUT"
414 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:459:23: error: cannot find 'URLRequest' in scope
457 |         }
458 |
459 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
460 |         request.httpMethod = "GET"
461 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:488:23: error: cannot find 'URLRequest' in scope
486 |             .appendingPathComponent(cid)
487 |
488 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
489 |         request.httpMethod = "DELETE"
490 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:513:23: error: cannot find 'URLRequest' in scope
511 |         let url = PinataConfiguration.apiBaseURL.appendingPathComponent("v3/files/groups")
512 |
513 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
514 |         request.httpMethod = "POST"
515 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:563:23: error: cannot find 'URLRequest' in scope
561 |         }
562 |
563 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
564 |         request.httpMethod = "GET"
565 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:585:23: error: cannot find 'URLRequest' in scope
583 |             .appendingPathComponent(id)
584 |
585 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
586 |         request.httpMethod = "GET"
587 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:605:23: error: cannot find 'URLRequest' in scope
603 |             .appendingPathComponent(id)
604 |
605 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
606 |         request.httpMethod = "DELETE"
607 |         applyAuthentication(to: &request)
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:651:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
649 |         for attempt in 0..<Self.maxRetries {
650 |             do {
651 |                 let (data, response) = try await session.data(for: request)
    |                                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
652 |
653 |                 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:44:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     ) {
 46 |         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:44:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 42 |     public init(
 43 |         configuration: PinataConfiguration,
 44 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 45 |     ) {
 46 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:90:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |     ) {
 92 |         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:90:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 88 |         jwt: String,
 89 |         gatewayDomain: String? = nil,
 90 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 91 |     ) {
 92 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:111:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     ) {
113 |         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:111:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
109 |         apiSecret: String,
110 |         gatewayDomain: String? = nil,
111 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 |     ) {
113 |         self.init(
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:626:56: error: cannot find type 'URLRequest' in scope
624 |     private static let baseRetryDelay: UInt64 = 500_000_000
625 |
626 |     private func applyAuthentication(to request: inout URLRequest) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
627 |         request.setValue(
628 |             configuration.credentials.authorizationHeader,
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:636:51: error: cannot find type 'URLRequest' in scope
634 |     }
635 |
636 |     private func perform<T: Decodable>(_ request: URLRequest) async throws -> T {
    |                                                   `- error: cannot find type 'URLRequest' in scope
637 |         let (data, _) = try await performRaw(request)
638 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:40: error: cannot find type 'URLRequest' in scope
644 |     }
645 |
646 |     private func performRaw(_ request: URLRequest) async throws -> (Data, URLResponse) {
    |                                        `- error: cannot find type 'URLRequest' in scope
647 |         var lastError: Error?
648 |
/host/spi-builder-workspace/Sources/Pinata/Pinata.swift:646:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 |     }
645 |
646 |     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.
647 |         var lastError: Error?
648 |
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