Build Information
Failed to build swift-penpot-api, reference main (3f0ed7), with Swift 6.1 for Wasm on 23 Mar 2026 09:24:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DesignPipe/swift-penpot-api.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/DesignPipe/swift-penpot-api
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/DesignPipe/swift-penpot-api.git
https://github.com/DesignPipe/swift-penpot-api.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-yyjson",
"requirement" : {
"range" : [
{
"lower_bound" : "0.5.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mattt/swift-yyjson"
},
{
"identity" : "swift-custom-dump",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-custom-dump"
}
],
"manifest_display_name" : "swift-penpot-api",
"name" : "swift-penpot-api",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "PenpotAPI",
"targets" : [
"PenpotAPI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PenpotAPITests",
"module_type" : "SwiftTarget",
"name" : "PenpotAPITests",
"path" : "Tests/PenpotAPITests",
"product_dependencies" : [
"YYJSON",
"CustomDump"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/PenpotAPITests/Fixtures",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"PenpotAPIErrorTests.swift",
"PenpotColorDecodingTests.swift",
"PenpotComponentDecodingTests.swift",
"PenpotEndpointTests.swift",
"PenpotShapeRendererTests.swift",
"PenpotTypographyDecodingTests.swift"
],
"target_dependencies" : [
"PenpotAPI"
],
"type" : "test"
},
{
"c99name" : "PenpotAPI",
"module_type" : "SwiftTarget",
"name" : "PenpotAPI",
"path" : "Sources/PenpotAPI",
"product_dependencies" : [
"YYJSON"
],
"product_memberships" : [
"PenpotAPI"
],
"sources" : [
"Client/PenpotAPIError.swift",
"Client/PenpotClient.swift",
"Client/PenpotEndpoint.swift",
"Endpoints/GetFileEndpoint.swift",
"Endpoints/GetFileObjectThumbnailsEndpoint.swift",
"Endpoints/GetProfileEndpoint.swift",
"Models/PenpotColor.swift",
"Models/PenpotComponent.swift",
"Models/PenpotFileResponse.swift",
"Models/PenpotProfile.swift",
"Models/PenpotShape.swift",
"Models/PenpotTypography.swift",
"Renderer/PenpotShapeRenderer.swift"
],
"type" : "library"
}
],
"tools_version" : "6.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/mattt/swift-yyjson
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/384] Fetching swift-yyjson
[385/5797] Fetching swift-yyjson, swift-custom-dump
Fetched https://github.com/mattt/swift-yyjson from cache (0.45s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.45s)
Computing version for https://github.com/mattt/swift-yyjson
Computed https://github.com/mattt/swift-yyjson at 0.5.0 (1.10s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.5.0 (0.54s)
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.68s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (2.98s)
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] Write swift-version-24593BA9C3E375BF.txt
[3/4] Compiling Cyyjson yyjson.c
[5/12] Compiling YYJSON Helpers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/12] Compiling YYJSON Serialization.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/13] Emitting module YYJSON
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/13] Compiling YYJSON CodingKeys.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/13] Compiling YYJSON Configuration.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/13] Compiling YYJSON Decoder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/13] Compiling YYJSON Error.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/13] Compiling YYJSON Encoder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/13] Compiling YYJSON Value.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/27] Emitting module PenpotAPI
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
24 | private let maxRetries: Int
25 |
[16/27] Compiling PenpotAPI PenpotAPIError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 'URLSession' (aka '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 'URLSession' (aka '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 {
[17/27] Compiling PenpotAPI PenpotClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 'URLSession' (aka '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 'URLSession' (aka '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 {
[18/28] Compiling PenpotAPI PenpotTypography.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/28] Compiling PenpotAPI PenpotColor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/28] Compiling PenpotAPI PenpotComponent.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/28] Compiling PenpotAPI GetFileObjectThumbnailsEndpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/28] Compiling PenpotAPI GetProfileEndpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/28] Compiling PenpotAPI PenpotEndpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/28] Compiling PenpotAPI GetFileEndpoint.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/28] Compiling PenpotAPI PenpotShape.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[26/28] Compiling PenpotAPI PenpotFileResponse.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/28] Compiling PenpotAPI PenpotProfile.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/28] Compiling PenpotAPI PenpotShapeRenderer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Emitting module YYJSON
[3/10] Compiling YYJSON Error.swift
[4/10] Compiling YYJSON Helpers.swift
[5/10] Compiling YYJSON Serialization.swift
[6/10] Compiling YYJSON Value.swift
[7/10] Compiling YYJSON Encoder.swift
[8/10] Compiling YYJSON Configuration.swift
[9/10] Compiling YYJSON Decoder.swift
[10/10] Compiling YYJSON CodingKeys.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/24] 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 'URLSession' (aka '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 'URLSession' (aka 'AnyObject')
24 | private let maxRetries: Int
25 |
[13/24] 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 'URLSession' (aka '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 'URLSession' (aka '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 {
[14/24] 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 'URLSession' (aka '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 'URLSession' (aka '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 {
[15/25] Compiling PenpotAPI PenpotTypography.swift
[16/25] Compiling PenpotAPI PenpotEndpoint.swift
[17/25] Compiling PenpotAPI GetFileEndpoint.swift
[18/25] Compiling PenpotAPI PenpotFileResponse.swift
[19/25] Compiling PenpotAPI PenpotProfile.swift
[20/25] Compiling PenpotAPI PenpotColor.swift
[21/25] Compiling PenpotAPI PenpotComponent.swift
[22/25] Compiling PenpotAPI GetFileObjectThumbnailsEndpoint.swift
[23/25] Compiling PenpotAPI GetProfileEndpoint.swift
[24/25] Compiling PenpotAPI PenpotShape.swift
[25/25] Compiling PenpotAPI PenpotShapeRenderer.swift
BUILD FAILURE 6.1 wasm