The Swift Package Index logo.Swift Package Index

Build Information

Failed to build StrapiSwiftCross, reference 0.1.2 (ab4be4), with Swift 6.1 for Wasm on 31 Jan 2026 08:13:45 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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/omgitsalexl/StrapiSwiftCross.git
Reference: 0.1.2
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
 * tag               0.1.2      -> FETCH_HEAD
HEAD is now at ab4be46 Removed dependencies field
Cloned https://github.com/omgitsalexl/StrapiSwiftCross.git
Revision (git rev-parse @):
ab4be4645fcb44c6f38da0726530482832ef8440
SUCCESS checkout https://github.com/omgitsalexl/StrapiSwiftCross.git at 0.1.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/omgitsalexl/StrapiSwiftCross.git
https://github.com/omgitsalexl/StrapiSwiftCross.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "mocker",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/WeTransfer/Mocker.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "StrapiSwiftCross",
  "name" : "StrapiSwiftCross",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "StrapiSwiftCross",
      "targets" : [
        "StrapiSwiftCross"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StrapiSwiftCrossTests",
      "module_type" : "SwiftTarget",
      "name" : "StrapiSwiftCrossTests",
      "path" : "Tests/StrapiSwiftCrossTests",
      "product_dependencies" : [
        "Mocker"
      ],
      "sources" : [
        "MockedData.swift",
        "Models/QueryTestResponse.swift",
        "Requests/Convenience/EmailConfirmationRequestTests.swift",
        "Requests/Convenience/ForgotPasswordRequest.swift",
        "Requests/Convenience/LoginRequestTests.swift",
        "Requests/Convenience/MeRequestTests.swift",
        "Requests/Convenience/RegisterRequestTests.swift",
        "Requests/Convenience/ResetPasswordRequestTests.swift",
        "Requests/CreateRequestTests.swift",
        "Requests/DestroyRequestTests.swift",
        "Requests/FetchRequestTests.swift",
        "Requests/QueryRequestTests.swift",
        "Requests/StrapiRequestTests.swift",
        "Requests/UpdateRequestTests.swift",
        "StrapiTests.swift"
      ],
      "target_dependencies" : [
        "StrapiSwiftCross"
      ],
      "type" : "test"
    },
    {
      "c99name" : "StrapiSwiftCross",
      "module_type" : "SwiftTarget",
      "name" : "StrapiSwiftCross",
      "path" : "Sources/StrapiSwiftCross",
      "product_memberships" : [
        "StrapiSwiftCross"
      ],
      "sources" : [
        "Enums/FilterType.swift",
        "Enums/RequestMethod.swift",
        "Enums/SortDirection.swift",
        "Enums/StrapiError.swift",
        "Models/RequestFilter.swift",
        "Models/StrapiResponse.swift",
        "Requests/Convenience/EmailConfirmationRequest.swift",
        "Requests/Convenience/ForgotPasswordRequest.swift",
        "Requests/Convenience/LoginRequest.swift",
        "Requests/Convenience/MeRequest.swift",
        "Requests/Convenience/RegisterRequest.swift",
        "Requests/Convenience/ResetPasswordRequest.swift",
        "Requests/CreateRequest.swift",
        "Requests/DestroyRequest.swift",
        "Requests/FetchRequest.swift",
        "Requests/QueryRequest.swift",
        "Requests/StrapiRequest.swift",
        "Requests/UpdateRequest.swift",
        "Strapi.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
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/finestructure/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 finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/WeTransfer/Mocker.git
Fetching https://github.com/apple/swift-docc-plugin
[1/1889] Fetching mocker
[228/4056] Fetching mocker, swift-docc-plugin
Fetched https://github.com/WeTransfer/Mocker.git from cache (1.15s)
Fetched https://github.com/apple/swift-docc-plugin from cache (1.17s)
Computing version for https://github.com/WeTransfer/Mocker.git
Computed https://github.com/WeTransfer/Mocker.git at 3.0.2 (4.24s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.5 (1.35s)
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.85s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.98s)
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/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/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: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/24] Compiling StrapiSwiftCross FilterType.swift
[7/24] Compiling StrapiSwiftCross RequestMethod.swift
[8/24] Compiling StrapiSwiftCross SortDirection.swift
[9/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: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")
[10/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: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")
[11/24] Compiling StrapiSwiftCross ResetPasswordRequest.swift
[12/24] Compiling StrapiSwiftCross CreateRequest.swift
[13/24] Compiling StrapiSwiftCross MeRequest.swift
[14/24] Compiling StrapiSwiftCross RegisterRequest.swift
[15/24] Compiling StrapiSwiftCross StrapiError.swift
[16/24] Compiling StrapiSwiftCross RequestFilter.swift
[17/24] Compiling StrapiSwiftCross StrapiResponse.swift
[18/24] Compiling StrapiSwiftCross EmailConfirmationRequest.swift
[19/24] Compiling StrapiSwiftCross ForgotPasswordRequest.swift
[20/24] Compiling StrapiSwiftCross LoginRequest.swift
[21/24] Compiling StrapiSwiftCross QueryRequest.swift
[22/24] Compiling StrapiSwiftCross StrapiRequest.swift
[23/24] Compiling StrapiSwiftCross DestroyRequest.swift
[24/24] Compiling StrapiSwiftCross FetchRequest.swift
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/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:58b971189c4d3c564696bb40c86e07506670ed096ab7351a005c7c449525017a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/21] 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: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
[5/23] 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: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")
[6/23] 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: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")
[7/23] Compiling StrapiSwiftCross FilterType.swift
[8/23] Compiling StrapiSwiftCross RequestMethod.swift
[9/23] Compiling StrapiSwiftCross SortDirection.swift
[10/23] Compiling StrapiSwiftCross DestroyRequest.swift
[11/23] Compiling StrapiSwiftCross FetchRequest.swift
[12/23] Compiling StrapiSwiftCross MeRequest.swift
[13/23] Compiling StrapiSwiftCross RegisterRequest.swift
[14/23] Compiling StrapiSwiftCross ResetPasswordRequest.swift
[15/23] Compiling StrapiSwiftCross CreateRequest.swift
[16/23] Compiling StrapiSwiftCross EmailConfirmationRequest.swift
[17/23] Compiling StrapiSwiftCross ForgotPasswordRequest.swift
[18/23] Compiling StrapiSwiftCross LoginRequest.swift
[19/23] Compiling StrapiSwiftCross QueryRequest.swift
[20/23] Compiling StrapiSwiftCross StrapiRequest.swift
[21/23] Compiling StrapiSwiftCross StrapiError.swift
[22/23] Compiling StrapiSwiftCross RequestFilter.swift
[23/23] Compiling StrapiSwiftCross StrapiResponse.swift
BUILD FAILURE 6.1 wasm