The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VercelAPI, reference main (6a84fd), with Swift 6.2 for Wasm on 5 May 2026 07:33:51 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/qiyangdev/VercelAPI.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/qiyangdev/VercelAPI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6a84fd0 chore: update README with repository URLs and add LICENSE for v0.1 release
Cloned https://github.com/qiyangdev/VercelAPI.git
Revision (git rev-parse @):
6a84fd0176f0d42d7cc24009f108cef70aca122c
SUCCESS checkout https://github.com/qiyangdev/VercelAPI.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/qiyangdev/VercelAPI.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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/16] Compiling VercelAPI VercelAPI.swift
/host/spi-builder-workspace/Sources/VercelAPI/VercelAPI.swift:36:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         token: String,
35 |         teamId: String? = nil,
36 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ) {
38 |         self.httpClient = HTTPClient(
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/VercelAPI/VercelAPI.swift:36:32: error: value of type '_' expected to be instance of class or class-constrained type
34 |         token: String,
35 |         teamId: String? = nil,
36 |         session: URLSession = .shared
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
37 |     ) {
38 |         self.httpClient = HTTPClient(
/host/spi-builder-workspace/Sources/VercelAPI/VercelAPI.swift:36:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 |         token: String,
35 |         teamId: String? = nil,
36 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 |     ) {
38 |         self.httpClient = HTTPClient(
[4/17] Compiling VercelAPI Project.swift
[5/17] Compiling VercelAPI Team.swift
[6/17] Compiling VercelAPI Pagination.swift
[7/17] Compiling VercelAPI RateLimiter.swift
[8/17] Compiling VercelAPI Domain.swift
[9/17] Compiling VercelAPI EnvironmentVariable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/17] Emitting module VercelAPI
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let token: String
  7 |     private let teamId: String?
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     private let rateLimiter = RateLimiter()
 10 |     private let decoder: JSONDecoder
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/VercelAPI/HTTPClient.swift:13:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.token = token
 15 |         self.teamId = teamId
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/VercelAPI/HTTPClient.swift:13:71: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         self.token = token
 15 |         self.teamId = teamId
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:13:71: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         self.token = token
 15 |         self.teamId = teamId
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:125:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 |     /// Handles HTTP response status codes.
125 |     private func handleHTTPResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |         switch response.statusCode {
127 |         case 200...299:
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VercelAPI/VercelAPI.swift:36:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |         token: String,
35 |         teamId: String? = nil,
36 |         session: URLSession = .shared
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |     ) {
38 |         self.httpClient = HTTPClient(
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/VercelAPI/VercelAPI.swift:36:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
34 |         token: String,
35 |         teamId: String? = nil,
36 |         session: URLSession = .shared
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
37 |     ) {
38 |         self.httpClient = HTTPClient(
/host/spi-builder-workspace/Sources/VercelAPI/VercelAPI.swift:36:32: error: value of type '_' expected to be instance of class or class-constrained type
34 |         token: String,
35 |         teamId: String? = nil,
36 |         session: URLSession = .shared
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
37 |     ) {
38 |         self.httpClient = HTTPClient(
[11/17] Compiling VercelAPI ProjectsAPI.swift
[12/17] Compiling VercelAPI TeamsAPI.swift
[13/17] Compiling VercelAPI DeploymentsAPI.swift
[14/17] Compiling VercelAPI DomainsAPI.swift
[15/17] Compiling VercelAPI HTTPClient.swift
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let token: String
  7 |     private let teamId: String?
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     private let rateLimiter = RateLimiter()
 10 |     private let decoder: JSONDecoder
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/VercelAPI/HTTPClient.swift:13:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.token = token
 15 |         self.teamId = teamId
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/VercelAPI/HTTPClient.swift:13:71: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         self.token = token
 15 |         self.teamId = teamId
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:13:71: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         self.token = token
 15 |         self.teamId = teamId
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:125:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 |     /// Handles HTTP response status codes.
125 |     private func handleHTTPResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |         switch response.statusCode {
127 |         case 200...299:
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:93:23: error: cannot find 'URLRequest' in scope
 91 |
 92 |         // Build request
 93 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 94 |         request.httpMethod = method
 95 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:104:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
102 |
103 |         // Perform request
104 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
105 |
106 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:126:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
124 |     /// Handles HTTP response status codes.
125 |     private func handleHTTPResponse(_ response: HTTPURLResponse, data: Data) throws {
126 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
127 |         case 200...299:
128 |             return
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:146:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
144 |
145 |         case 404:
146 |             throw VercelError.notFound(resource: response.url?.path ?? "unknown")
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
147 |
148 |         case 429:
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:150:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
148 |         case 429:
149 |             // Rate limit exceeded
150 |             if let resetStr = response.allHeaderFields["X-RateLimit-Reset"] as? String,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
151 |                 let resetTimestamp = TimeInterval(resetStr)
152 |             {
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:167:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |             }
166 |             throw VercelError.apiError(
167 |                 code: "http_\(response.statusCode)",
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |                 message: "HTTP error \(response.statusCode)"
169 |             )
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:168:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |             throw VercelError.apiError(
167 |                 code: "http_\(response.statusCode)",
168 |                 message: "HTTP error \(response.statusCode)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 |             )
170 |         }
[16/17] Compiling VercelAPI Deployment.swift
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:8:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let token: String
  7 |     private let teamId: String?
  8 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |     private let rateLimiter = RateLimiter()
 10 |     private let decoder: JSONDecoder
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/VercelAPI/HTTPClient.swift:13:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.token = token
 15 |         self.teamId = teamId
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/VercelAPI/HTTPClient.swift:13:71: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 14 |         self.token = token
 15 |         self.teamId = teamId
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:13:71: error: value of type '_' expected to be instance of class or class-constrained type
 11 |     private let encoder: JSONEncoder
 12 |
 13 |     init(token: String, teamId: String? = nil, session: URLSession = .shared) {
    |                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 14 |         self.token = token
 15 |         self.teamId = teamId
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:125:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 |
124 |     /// Handles HTTP response status codes.
125 |     private func handleHTTPResponse(_ response: HTTPURLResponse, data: Data) throws {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 |         switch response.statusCode {
127 |         case 200...299:
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:93:23: error: cannot find 'URLRequest' in scope
 91 |
 92 |         // Build request
 93 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 94 |         request.httpMethod = method
 95 |         request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:104:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
102 |
103 |         // Perform request
104 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
105 |
106 |         guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:126:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
124 |     /// Handles HTTP response status codes.
125 |     private func handleHTTPResponse(_ response: HTTPURLResponse, data: Data) throws {
126 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
127 |         case 200...299:
128 |             return
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:146:59: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
144 |
145 |         case 404:
146 |             throw VercelError.notFound(resource: response.url?.path ?? "unknown")
    |                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
147 |
148 |         case 429:
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:150:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
148 |         case 429:
149 |             // Rate limit exceeded
150 |             if let resetStr = response.allHeaderFields["X-RateLimit-Reset"] as? String,
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
151 |                 let resetTimestamp = TimeInterval(resetStr)
152 |             {
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:167:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |             }
166 |             throw VercelError.apiError(
167 |                 code: "http_\(response.statusCode)",
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |                 message: "HTTP error \(response.statusCode)"
169 |             )
/host/spi-builder-workspace/Sources/VercelAPI/HTTPClient.swift:168:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |             throw VercelError.apiError(
167 |                 code: "http_\(response.statusCode)",
168 |                 message: "HTTP error \(response.statusCode)"
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
169 |             )
170 |         }
[17/17] Compiling VercelAPI VercelError.swift
BUILD FAILURE 6.2 wasm