The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VideosAPI, reference v0.1.0 (c47eab), with Swift 6.3 for Wasm on 17 Apr 2026 04:17:32 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/swift-openai-videos.git
Reference: v0.1.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/m1guelpf/swift-openai-videos
 * tag               v0.1.0     -> FETCH_HEAD
HEAD is now at c47eab1 init
Cloned https://github.com/m1guelpf/swift-openai-videos.git
Revision (git rev-parse @):
c47eab181b7a0a21c32e41594bc265d6f398b44c
SUCCESS checkout https://github.com/m1guelpf/swift-openai-videos.git at v0.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/m1guelpf/swift-openai-videos.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/18] Compiling VideosAPI FormData.swift
/host/spi-builder-workspace/src/Support/FormData.swift:58:11: error: cannot find type 'URLRequest' in scope
56 | }
57 |
58 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
59 | 	mutating func attach(formData form: FormData) {
60 | 		httpBody = form.data
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/19] Compiling VideosAPI File.swift
[5/19] Compiling VideosAPI Model.swift
[6/19] Emitting module VideosAPI
/host/spi-builder-workspace/src/Support/FormData.swift:58:11: error: cannot find type 'URLRequest' in scope
56 | }
57 |
58 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
59 | 	mutating func attach(formData form: FormData) {
60 | 		httpBody = form.data
/host/spi-builder-workspace/src/VideosAPI.swift:7:23: error: cannot find type 'URLRequest' in scope
  5 | 	public enum Error: Swift.Error {
  6 | 		/// The provided request is invalid.
  7 | 		case invalidRequest(URLRequest)
    |                       `- error: cannot find type 'URLRequest' in scope
  8 |
  9 | 		/// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/VideosAPI.swift:10:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 | 		/// The response was not a 200 or 400 status
 10 | 		case invalidResponse(URLResponse)
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | 	}
 12 |
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/src/VideosAPI.swift:10:8: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
  8 |
  9 | 		/// The response was not a 200 or 400 status
 10 | 		case invalidResponse(URLResponse)
    |        `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 11 | 	}
 12 |
/host/spi-builder-workspace/src/VideosAPI.swift:13:23: error: cannot find type 'URLRequest' in scope
 11 | 	}
 12 |
 13 | 	private let request: URLRequest
    |                       `- error: cannot find type 'URLRequest' in scope
 14 |
 15 | 	private let encoder = {
/host/spi-builder-workspace/src/VideosAPI.swift:32:36: error: cannot find type 'URLRequest' in scope
 30 | 	///
 31 | 	/// - Parameter request: The `URLRequest` to use for the API.
 32 | 	public init(connectingTo request: URLRequest) throws {
    |                                    `- error: cannot find type 'URLRequest' in scope
 33 | 		guard let url = request.url else { throw Error.invalidRequest(request) }
 34 |
/host/spi-builder-workspace/src/VideosAPI.swift:174:21: error: cannot find type 'URLRequest' in scope
172 | 	///
173 | 	/// - Throws: If the request fails to send or has a non-200 status code.
174 | 	func send(request: URLRequest, expects statusCode: Int = 200) async throws -> Data {
    |                     `- error: cannot find type 'URLRequest' in scope
175 | 		let (data, res) = try await URLSession.shared.data(for: request)
176 |
[7/19] Compiling VideosAPI VideosAPI.swift
/host/spi-builder-workspace/src/VideosAPI.swift:7:23: error: cannot find type 'URLRequest' in scope
  5 | 	public enum Error: Swift.Error {
  6 | 		/// The provided request is invalid.
  7 | 		case invalidRequest(URLRequest)
    |                       `- error: cannot find type 'URLRequest' in scope
  8 |
  9 | 		/// The response was not a 200 or 400 status
/host/spi-builder-workspace/src/VideosAPI.swift:10:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 | 		/// The response was not a 200 or 400 status
 10 | 		case invalidResponse(URLResponse)
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | 	}
 12 |
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/src/VideosAPI.swift:10:8: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
  8 |
  9 | 		/// The response was not a 200 or 400 status
 10 | 		case invalidResponse(URLResponse)
    |        `- warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'Error' has non-Sendable type 'AnyObject'
 11 | 	}
 12 |
/host/spi-builder-workspace/src/VideosAPI.swift:13:23: error: cannot find type 'URLRequest' in scope
 11 | 	}
 12 |
 13 | 	private let request: URLRequest
    |                       `- error: cannot find type 'URLRequest' in scope
 14 |
 15 | 	private let encoder = {
/host/spi-builder-workspace/src/VideosAPI.swift:32:36: error: cannot find type 'URLRequest' in scope
 30 | 	///
 31 | 	/// - Parameter request: The `URLRequest` to use for the API.
 32 | 	public init(connectingTo request: URLRequest) throws {
    |                                    `- error: cannot find type 'URLRequest' in scope
 33 | 		guard let url = request.url else { throw Error.invalidRequest(request) }
 34 |
/host/spi-builder-workspace/src/VideosAPI.swift:174:21: error: cannot find type 'URLRequest' in scope
172 | 	///
173 | 	/// - Throws: If the request fails to send or has a non-200 status code.
174 | 	func send(request: URLRequest, expects statusCode: Int = 200) async throws -> Data {
    |                     `- error: cannot find type 'URLRequest' in scope
175 | 		let (data, res) = try await URLSession.shared.data(for: request)
176 |
/host/spi-builder-workspace/src/VideosAPI.swift:51:17: error: cannot find 'URLRequest' in scope
 49 | 	/// - Parameter projectId: The project associated with the request.
 50 | 	public init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
 51 | 		var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
    |                 `- error: cannot find 'URLRequest' in scope
 52 |
 53 | 		request.addValue("Bearer \(authToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/src/VideosAPI.swift:57:32: error: extra argument 'connectingTo' in call
 55 | 		if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
 56 |
 57 | 		try! self.init(connectingTo: request)
    |                                `- error: extra argument 'connectingTo' in call
 58 | 	}
 59 |
/host/spi-builder-workspace/src/VideosAPI.swift:57:18: error: missing argument for parameter 'authToken' in call
 48 | 	/// - Parameter organizationId: The [organization](https://platform.openai.com/docs/guides/production-best-practices#setting-up-your-organization) associated with the request.
 49 | 	/// - Parameter projectId: The project associated with the request.
 50 | 	public init(authToken: String, organizationId: String? = nil, projectId: String? = nil) {
    |         `- note: 'init(authToken:organizationId:projectId:)' declared here
 51 | 		var request = URLRequest(url: URL(string: "https://api.openai.com/")!)
 52 |
    :
 55 | 		if let organizationId { request.addValue(organizationId, forHTTPHeaderField: "OpenAI-Organization") }
 56 |
 57 | 		try! self.init(connectingTo: request)
    |                  `- error: missing argument for parameter 'authToken' in call
 58 | 	}
 59 |
/host/spi-builder-workspace/src/VideosAPI.swift:175:42: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
173 | 	/// - Throws: If the request fails to send or has a non-200 status code.
174 | 	func send(request: URLRequest, expects statusCode: Int = 200) async throws -> Data {
175 | 		let (data, res) = try await URLSession.shared.data(for: request)
    |                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
176 |
177 | 		guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
[8/19] Compiling VideosAPI Size.swift
[9/19] Compiling VideosAPI SortOrder.swift
[10/19] Compiling VideosAPI Variant.swift
[11/19] Compiling VideosAPI VideoDeleted.swift
[12/19] Compiling VideosAPI PaginatedResponse.swift
[13/19] Compiling VideosAPI RemixVideoRequest.swift
[14/19] Compiling VideosAPI CreateVideoRequest.swift
[15/19] Compiling VideosAPI ErrorResponse.swift
[16/19] Compiling VideosAPI VideoJob.swift
BUILD FAILURE 6.3 wasm