The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build StrapiSwiftCross, reference master (9e80cf), with Swift 6.1 for Wasm on 28 May 2025 20:06:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" 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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lorenalexm/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/lorenalexm/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/lorenalexm/StrapiSwiftCross.git
Revision (git rev-parse @):
9e80cfd233a0d087dd5b152653b33c118cf3da00
SUCCESS checkout https://github.com/lorenalexm/StrapiSwiftCross.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/lorenalexm/StrapiSwiftCross.git
https://github.com/lorenalexm/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-3":/host -w "$PWD" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
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/1891] Fetching mocker
[1892/3940] Fetching mocker, swift-docc-plugin
Fetched https://github.com/WeTransfer/Mocker.git from cache (0.31s)
[246/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.46s)
Computing version for https://github.com/WeTransfer/Mocker.git
Computed https://github.com/WeTransfer/Mocker.git at 3.0.2 (2.58s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (0.75s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3391] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.48s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.61s)
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
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.3
[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 ResetPasswordRequest.swift
[10/24] Compiling StrapiSwiftCross CreateRequest.swift
[11/24] Compiling StrapiSwiftCross QueryRequest.swift
[12/24] Compiling StrapiSwiftCross StrapiRequest.swift
[13/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")
[14/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")
[15/24] Compiling StrapiSwiftCross MeRequest.swift
[16/24] Compiling StrapiSwiftCross RegisterRequest.swift
[17/24] Compiling StrapiSwiftCross DestroyRequest.swift
[18/24] Compiling StrapiSwiftCross FetchRequest.swift
[19/24] Compiling StrapiSwiftCross EmailConfirmationRequest.swift
[20/24] Compiling StrapiSwiftCross ForgotPasswordRequest.swift
[21/24] Compiling StrapiSwiftCross LoginRequest.swift
[22/24] Compiling StrapiSwiftCross StrapiError.swift
[23/24] Compiling StrapiSwiftCross RequestFilter.swift
[24/24] Compiling StrapiSwiftCross StrapiResponse.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" 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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
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 MeRequest.swift
[6/23] Compiling StrapiSwiftCross RegisterRequest.swift
[7/23] Compiling StrapiSwiftCross ResetPasswordRequest.swift
[8/23] Compiling StrapiSwiftCross CreateRequest.swift
[9/23] Compiling StrapiSwiftCross EmailConfirmationRequest.swift
[10/23] Compiling StrapiSwiftCross ForgotPasswordRequest.swift
[11/23] Compiling StrapiSwiftCross LoginRequest.swift
[12/23] Compiling StrapiSwiftCross DestroyRequest.swift
[13/23] Compiling StrapiSwiftCross FetchRequest.swift
[14/23] Compiling StrapiSwiftCross QueryRequest.swift
[15/23] Compiling StrapiSwiftCross StrapiRequest.swift
[16/23] Compiling StrapiSwiftCross FilterType.swift
[17/23] Compiling StrapiSwiftCross RequestMethod.swift
[18/23] Compiling StrapiSwiftCross SortDirection.swift
[19/23] Compiling StrapiSwiftCross StrapiError.swift
[20/23] Compiling StrapiSwiftCross RequestFilter.swift
[21/23] Compiling StrapiSwiftCross StrapiResponse.swift
[22/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")
[23/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")
BUILD FAILURE 6.1 wasm