Build Information
Failed to build swift-penpot-api, reference 0.1.0 (3f0ed7), with Swift 6.3 for Wasm on 19 Apr 2026 07:43:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DesignPipe/swift-penpot-api.git
Reference: 0.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/DesignPipe/swift-penpot-api
* tag 0.1.0 -> FETCH_HEAD
HEAD is now at 3f0ed76 Initial extraction from ExFig monorepo
Cloned https://github.com/DesignPipe/swift-penpot-api.git
Revision (git rev-parse @):
3f0ed762b6130d32e96ae0624b2ad084756847b5
SUCCESS checkout https://github.com/DesignPipe/swift-penpot-api.git at 0.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/DesignPipe/swift-penpot-api.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/mattt/swift-yyjson
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5464] Fetching swift-custom-dump
[111/5848] Fetching swift-custom-dump, swift-yyjson
Fetched https://github.com/mattt/swift-yyjson from cache (1.45s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (1.46s)
Computing version for https://github.com/mattt/swift-yyjson
Computed https://github.com/mattt/swift-yyjson at 0.5.0 (2.51s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.5.0 (0.41s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5723] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.86s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (1.41s)
Creating working copy for https://github.com/mattt/swift-yyjson
Working copy of https://github.com/mattt/swift-yyjson resolved at 0.5.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.5.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.9.0
Building for debugging...
[0/4] Write sources
[2/4] Compiling Cyyjson yyjson.c
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/12] Emitting module YYJSON
[6/12] Compiling YYJSON CodingKeys.swift
[7/13] Compiling YYJSON Value.swift
[8/13] Compiling YYJSON Helpers.swift
[9/13] Compiling YYJSON Error.swift
[10/13] Compiling YYJSON Serialization.swift
[11/13] Compiling YYJSON Encoder.swift
[12/13] Compiling YYJSON Decoder.swift
[13/13] Compiling YYJSON Configuration.swift
[15/27] Compiling PenpotAPI PenpotTypography.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/28] Compiling PenpotAPI GetFileObjectThumbnailsEndpoint.swift
[17/28] Compiling PenpotAPI GetProfileEndpoint.swift
[18/28] Compiling PenpotAPI PenpotColor.swift
[19/28] Compiling PenpotAPI PenpotComponent.swift
[20/28] Compiling PenpotAPI PenpotEndpoint.swift
[21/28] Compiling PenpotAPI GetFileEndpoint.swift
[22/28] Emitting module PenpotAPI
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:23:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | private let accessToken: String
22 | private let baseURL: String
23 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | private let maxRetries: Int
25 |
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/PenpotAPI/Client/PenpotClient.swift:126:18: error: cannot find type 'URLRequest' in scope
124 |
125 | private func performWithRetry(
126 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
127 | endpoint: String
128 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:128:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | request: URLRequest,
127 | endpoint: String
128 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | var lastError: Error?
130 |
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/PenpotAPI/Client/PenpotClient.swift:23:17: error: stored property 'session' of 'Sendable'-conforming struct 'BasePenpotClient' has non-Sendable type 'AnyObject'
21 | private let accessToken: String
22 | private let baseURL: String
23 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'BasePenpotClient' has non-Sendable type 'AnyObject'
24 | private let maxRetries: Int
25 |
[23/28] Compiling PenpotAPI PenpotAPIError.swift
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:23:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | private let accessToken: String
22 | private let baseURL: String
23 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | private let maxRetries: Int
25 |
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/PenpotAPI/Client/PenpotClient.swift:126:18: error: cannot find type 'URLRequest' in scope
124 |
125 | private func performWithRetry(
126 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
127 | endpoint: String
128 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:128:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | request: URLRequest,
127 | endpoint: String
128 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | var lastError: Error?
130 |
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/PenpotAPI/Client/PenpotClient.swift:23:17: error: stored property 'session' of 'Sendable'-conforming struct 'BasePenpotClient' has non-Sendable type 'AnyObject'
21 | private let accessToken: String
22 | private let baseURL: String
23 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'BasePenpotClient' has non-Sendable type 'AnyObject'
24 | private let maxRetries: Int
25 |
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:42:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
40 | self.maxRetries = maxRetries
41 |
42 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
43 | config.timeoutIntervalForRequest = timeout
44 | session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:44:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | let config = URLSessionConfiguration.ephemeral
43 | config.timeoutIntervalForRequest = timeout
44 | session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | }
46 |
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:49:23: error: cannot find 'URLRequest' in scope
47 | public func request<T: PenpotEndpoint>(_ endpoint: T) async throws -> T.Content {
48 | let url = try buildURL(for: endpoint)
49 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "POST"
51 | request.setValue("Token \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:94:23: error: cannot find 'URLRequest' in scope
92 | }
93 |
94 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | request.httpMethod = "GET"
96 | // Penpot asset storage (S3/MinIO) uses presigned URLs that conflict
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:104:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | (200 ..< 300).contains(httpResponse.statusCode)
103 | else {
104 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | let message = String(data: data, encoding: .utf8) ?? "Download failed"
106 | throw PenpotAPIError(statusCode: statusCode, message: message, endpoint: "download")
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:135:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
133 | try Task.checkCancellation()
134 |
135 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
136 |
137 | if let httpResponse = response as? HTTPURLResponse {
[24/28] Compiling PenpotAPI PenpotClient.swift
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:23:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | private let accessToken: String
22 | private let baseURL: String
23 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | private let maxRetries: Int
25 |
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/PenpotAPI/Client/PenpotClient.swift:126:18: error: cannot find type 'URLRequest' in scope
124 |
125 | private func performWithRetry(
126 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
127 | endpoint: String
128 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:128:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
126 | request: URLRequest,
127 | endpoint: String
128 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | var lastError: Error?
130 |
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/PenpotAPI/Client/PenpotClient.swift:23:17: error: stored property 'session' of 'Sendable'-conforming struct 'BasePenpotClient' has non-Sendable type 'AnyObject'
21 | private let accessToken: String
22 | private let baseURL: String
23 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'BasePenpotClient' has non-Sendable type 'AnyObject'
24 | private let maxRetries: Int
25 |
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:42:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
40 | self.maxRetries = maxRetries
41 |
42 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
43 | config.timeoutIntervalForRequest = timeout
44 | session = URLSession(configuration: config)
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:44:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | let config = URLSessionConfiguration.ephemeral
43 | config.timeoutIntervalForRequest = timeout
44 | session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
45 | }
46 |
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:49:23: error: cannot find 'URLRequest' in scope
47 | public func request<T: PenpotEndpoint>(_ endpoint: T) async throws -> T.Content {
48 | let url = try buildURL(for: endpoint)
49 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
50 | request.httpMethod = "POST"
51 | request.setValue("Token \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:94:23: error: cannot find 'URLRequest' in scope
92 | }
93 |
94 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | request.httpMethod = "GET"
96 | // Penpot asset storage (S3/MinIO) uses presigned URLs that conflict
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:104:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | (200 ..< 300).contains(httpResponse.statusCode)
103 | else {
104 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 0
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | let message = String(data: data, encoding: .utf8) ?? "Download failed"
106 | throw PenpotAPIError(statusCode: statusCode, message: message, endpoint: "download")
/host/spi-builder-workspace/Sources/PenpotAPI/Client/PenpotClient.swift:135:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
133 | try Task.checkCancellation()
134 |
135 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
136 |
137 | if let httpResponse = response as? HTTPURLResponse {
[25/28] Compiling PenpotAPI PenpotFileResponse.swift
[26/28] Compiling PenpotAPI PenpotProfile.swift
[27/28] Compiling PenpotAPI PenpotShape.swift
[28/28] Compiling PenpotAPI PenpotShapeRenderer.swift
BUILD FAILURE 6.3 wasm