The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StrapiSwiftCross, reference master (9e80cf), with Swift 6.2 for Wasm on 31 Jan 2026 08:19:30 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/omgitsalexl/StrapiSwiftCross.git
Reference: master
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/omgitsalexl/StrapiSwiftCross
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9e80cfd Merge pull request #1 from lorenalexm/dependabot/swift/github.com/wetransfer/mocker-3.0.2
Cloned https://github.com/omgitsalexl/StrapiSwiftCross.git
Revision (git rev-parse @):
9e80cfd233a0d087dd5b152653b33c118cf3da00
SUCCESS checkout https://github.com/omgitsalexl/StrapiSwiftCross.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/omgitsalexl/StrapiSwiftCross.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/WeTransfer/Mocker.git
[1/1889] Fetching mocker
[228/4056] Fetching mocker, swift-docc-plugin
Fetched https://github.com/WeTransfer/Mocker.git from cache (0.38s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.39s)
Computing version for https://github.com/WeTransfer/Mocker.git
Computed https://github.com/WeTransfer/Mocker.git at 3.0.2 (3.93s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (0.81s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3650] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.69s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.57s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/WeTransfer/Mocker.git
Working copy of https://github.com/WeTransfer/Mocker.git resolved at 3.0.2
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/22] Emitting module StrapiSwiftCross
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:27:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     let host: String
 27 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |
 29 |     // MARK: - Functions
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/StrapiSwiftCross/Strapi.swift:35:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         self.host = host
 37 |         self.urlSession = urlSession
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/StrapiSwiftCross/Strapi.swift:35:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 36 |         self.host = host
 37 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:35:67: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                                                   `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
 36 |         self.host = host
 37 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:103:100: error: cannot find type 'URLRequest' in scope
101 |     /// - Throws: `StrapiError.invalidURL` if unable to create a `URL` object from the ``StrapiRequest``.
102 |     /// - Returns: A fully formed URLRequest ready to be executed.
103 |     func buildURLRequest(from strapiRequest: StrapiRequest, withAuthToken token: String) throws -> URLRequest{
    |                                                                                                    `- error: cannot find type 'URLRequest' in scope
104 |         guard let url = URL(string: buildURL(from: strapiRequest)) else {
105 |             throw StrapiError.invalidURL
[6/22] Compiling StrapiSwiftCross StrapiError.swift
[7/22] Compiling StrapiSwiftCross RequestFilter.swift
[8/22] Compiling StrapiSwiftCross StrapiResponse.swift
[9/24] Compiling StrapiSwiftCross FilterType.swift
[10/24] Compiling StrapiSwiftCross RequestMethod.swift
[11/24] Compiling StrapiSwiftCross SortDirection.swift
[12/24] Compiling StrapiSwiftCross MeRequest.swift
[13/24] Compiling StrapiSwiftCross RegisterRequest.swift
[14/24] Compiling StrapiSwiftCross EmailConfirmationRequest.swift
[15/24] Compiling StrapiSwiftCross ForgotPasswordRequest.swift
[16/24] Compiling StrapiSwiftCross LoginRequest.swift
[17/24] Compiling StrapiSwiftCross QueryRequest.swift
[18/24] Compiling StrapiSwiftCross StrapiRequest.swift
[19/24] Compiling StrapiSwiftCross DestroyRequest.swift
[20/24] Compiling StrapiSwiftCross FetchRequest.swift
[21/24] Compiling StrapiSwiftCross ResetPasswordRequest.swift
[22/24] Compiling StrapiSwiftCross CreateRequest.swift
[23/24] Compiling StrapiSwiftCross UpdateRequest.swift
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:27:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     let host: String
 27 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |
 29 |     // MARK: - Functions
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/StrapiSwiftCross/Strapi.swift:35:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         self.host = host
 37 |         self.urlSession = urlSession
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/StrapiSwiftCross/Strapi.swift:35:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 36 |         self.host = host
 37 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:35:67: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                                                   `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
 36 |         self.host = host
 37 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:103:100: error: cannot find type 'URLRequest' in scope
101 |     /// - Throws: `StrapiError.invalidURL` if unable to create a `URL` object from the ``StrapiRequest``.
102 |     /// - Returns: A fully formed URLRequest ready to be executed.
103 |     func buildURLRequest(from strapiRequest: StrapiRequest, withAuthToken token: String) throws -> URLRequest{
    |                                                                                                    `- error: cannot find type 'URLRequest' in scope
104 |         guard let url = URL(string: buildURL(from: strapiRequest)) else {
105 |             throw StrapiError.invalidURL
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:63:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 61 |             }
 62 |         #else
 63 |             let (data, response) = try await urlSession.data(for: request)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 64 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
 65 |             guard statusCode == 200 else {
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:64:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 62 |         #else
 63 |             let (data, response) = try await urlSession.data(for: request)
 64 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 65 |             guard statusCode == 200 else {
 66 |                 throw StrapiError.badResponse(code: statusCode ?? 0)
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:108:23: error: cannot find 'URLRequest' in scope
106 |         }
107 |
108 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
109 |         request.httpMethod = strapiRequest.method.rawValue
110 |         request.addValue("application/json; charset=utf8", forHTTPHeaderField: "Content-Type")
[24/24] Compiling StrapiSwiftCross Strapi.swift
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:27:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     let host: String
 27 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |
 29 |     // MARK: - Functions
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/StrapiSwiftCross/Strapi.swift:35:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         self.host = host
 37 |         self.urlSession = urlSession
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/StrapiSwiftCross/Strapi.swift:35:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 36 |         self.host = host
 37 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:35:67: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 33 |     ///   - host: The full url string to the Strapi server.
 34 |     ///   - urlSession: If desired a custom URLSession, defaults to a shared session.
 35 |     public init(host: String, urlSession: URLSession = URLSession.shared) {
    |                                                                   `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
 36 |         self.host = host
 37 |         self.urlSession = urlSession
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:103:100: error: cannot find type 'URLRequest' in scope
101 |     /// - Throws: `StrapiError.invalidURL` if unable to create a `URL` object from the ``StrapiRequest``.
102 |     /// - Returns: A fully formed URLRequest ready to be executed.
103 |     func buildURLRequest(from strapiRequest: StrapiRequest, withAuthToken token: String) throws -> URLRequest{
    |                                                                                                    `- error: cannot find type 'URLRequest' in scope
104 |         guard let url = URL(string: buildURL(from: strapiRequest)) else {
105 |             throw StrapiError.invalidURL
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:63:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 61 |             }
 62 |         #else
 63 |             let (data, response) = try await urlSession.data(for: request)
    |                                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 64 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
 65 |             guard statusCode == 200 else {
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:64:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 62 |         #else
 63 |             let (data, response) = try await urlSession.data(for: request)
 64 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 65 |             guard statusCode == 200 else {
 66 |                 throw StrapiError.badResponse(code: statusCode ?? 0)
/host/spi-builder-workspace/Sources/StrapiSwiftCross/Strapi.swift:108:23: error: cannot find 'URLRequest' in scope
106 |         }
107 |
108 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
109 |         request.httpMethod = strapiRequest.method.rawValue
110 |         request.addValue("application/json; charset=utf8", forHTTPHeaderField: "Content-Type")
BUILD FAILURE 6.2 wasm