The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SetlistFMKit, reference 1.1.0 (11b9b5), with Swift 6.1 for Wasm on 29 May 2025 11:46:31 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/justinshapiro/SetlistFMKit.git
Reference: 1.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/justinshapiro/SetlistFMKit
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at 11b9b5d Add async/await support
Cloned https://github.com/justinshapiro/SetlistFMKit.git
Revision (git rev-parse @):
11b9b5d1901bbfdc98f0c1316fadf742765cbdad
SUCCESS checkout https://github.com/justinshapiro/SetlistFMKit.git at 1.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/justinshapiro/SetlistFMKit.git
https://github.com/justinshapiro/SetlistFMKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SetlistFMKit",
  "name" : "SetlistFMKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SetlistFMKit",
      "targets" : [
        "SetlistFMKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SetlistFMKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SetlistFMKitTests",
      "path" : "Tests/SetlistFMKitTests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getArtistWithMbid.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getArtistWithMbidSetlists.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getCityWithGeoId.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getSetlistById.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getSetlistVersionById.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getUserAttendedSetlists.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getUserById.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getUserEditedSetlists.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getVenueById.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/getVenueSetlists.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/searchArtists.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/searchCities.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/searchCountries.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/searchSetlists.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/SetlistFMKitTests/Mock Responses/searchVenues.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "MockNetwork.swift",
        "SetlistFMKitTests.swift",
        "URLSessionProtocolTests.swift"
      ],
      "target_dependencies" : [
        "SetlistFMKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SetlistFMKit",
      "module_type" : "SwiftTarget",
      "name" : "SetlistFMKit",
      "path" : "Sources/SetlistFMKit",
      "product_memberships" : [
        "SetlistFMKit"
      ],
      "sources" : [
        "SetlistFMRequest.swift",
        "SetlistFMRequestModels.swift",
        "SetlistFMResponseModels.swift",
        "SetlistFMWrapper.swift",
        "URLSessionProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling SetlistFMKit SetlistFMRequest.swift
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:34:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |     /// - Parameter language: The language we set to requests results back in
 33 |     /// - Parameter session: The URLSessionProtocol to make network requests through
 34 |     init(apiKey: String, language: SupportedLanguage, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |         self.apiKey = apiKey
 36 |         self.language = language
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:75:66: error: cannot find type 'URLRequest' in scope
 73 |     }
 74 |
 75 |     private func urlRequest(for model: SetlistFMRequestModel) -> URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 76 |         guard var components = URLComponents(string: model.endpoint) else {
 77 |             return nil
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:97:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
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/SetlistFMKit/SetlistFMRequest.swift:49:87: error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |
 48 |         let task = session.dataTask(with: request) { data, response, error in
 49 |             let result: Result<T, FMError> = self.parseResponse(data: data, response: response, error: error)
    |                                                                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 50 |             completion(result)
 51 |         }
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:89:23: error: cannot find 'URLRequest' in scope
 87 |         let url = URL(string: baseURL + components.url!.absoluteString)!
 88 |
 89 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 90 |         request.httpMethod = "GET"
 91 |         request.setValue(apiKey, forHTTPHeaderField: "x-api-key")
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:99:44: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
    |                                            `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
100 |             (200 ..< 300) ~= requestResponse.statusCode,
101 |             error == nil
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:99:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |             (200 ..< 300) ~= requestResponse.statusCode,
101 |             error == nil
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:100:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
100 |             (200 ..< 300) ~= requestResponse.statusCode,
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |             error == nil
102 |         else {
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:103:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
101 |             error == nil
102 |         else {
103 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
104 |             let result: Result<T, FMError> = .failure(.init(code: statusCode ?? -1, message: error?.localizedDescription))
105 |             return result
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:103:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |             error == nil
102 |         else {
103 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |             let result: Result<T, FMError> = .failure(.init(code: statusCode ?? -1, message: error?.localizedDescription))
105 |             return result
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:112:83: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .success(data)
111 |         } catch(let error) {
112 |             let result: Result<T, FMError> = .failure(.init(code: requestResponse.statusCode, message: error.localizedDescription))
    |                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |             return result
114 |         }
[4/8] Compiling SetlistFMKit URLSessionProtocol.swift
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
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/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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/SetlistFMKit/URLSessionProtocol.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | }
19 |
20 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
21 |     public func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol {
22 |         (dataTask(with: url, completionHandler: completionHandler) as URLSessionDataTask) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:37:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
35 | }
36 |
37 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
38 |
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:21:36: error: cannot find type 'URLRequest' in scope
19 |
20 | extension URLSession: URLSessionProtocol {
21 |     public func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol {
   |                                    `- error: cannot find type 'URLRequest' in scope
22 |         (dataTask(with: url, completionHandler: completionHandler) as URLSessionDataTask) as URLSessionDataTaskProtocol
23 |     }
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:26:35: error: cannot find type 'URLRequest' in scope
24 |
25 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
26 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
   |                                   `- error: cannot find type 'URLRequest' in scope
27 |         try await data(for: request, delegate: nil)
28 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module SetlistFMKit
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:34:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |     /// - Parameter language: The language we set to requests results back in
 33 |     /// - Parameter session: The URLSessionProtocol to make network requests through
 34 |     init(apiKey: String, language: SupportedLanguage, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |         self.apiKey = apiKey
 36 |         self.language = language
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:75:66: error: cannot find type 'URLRequest' in scope
 73 |     }
 74 |
 75 |     private func urlRequest(for model: SetlistFMRequestModel) -> URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 76 |         guard var components = URLComponents(string: model.endpoint) else {
 77 |             return nil
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:97:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
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/SetlistFMKit/SetlistFMWrapper.swift:53:114: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 51 |     /// - Parameter language: The desired language you wish to obtain results in. `.english` is passed in by default.
 52 |     /// - Parameter session: Supply this argument when you want to use a custom networking implementation different than `URLSession.shared`
 53 |     public init(apiKey: String, language: SupportedLanguage = .english, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |         fmRequest = SetlistFMRequest(apiKey: apiKey, language: language, session: session)
 55 |     }
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
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/SetlistFMKit/URLSessionProtocol.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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/SetlistFMKit/URLSessionProtocol.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | }
19 |
20 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
21 |     public func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol {
22 |         (dataTask(with: url, completionHandler: completionHandler) as URLSessionDataTask) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:37:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
35 | }
36 |
37 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
38 |
[6/8] Compiling SetlistFMKit SetlistFMResponseModels.swift
[7/8] Compiling SetlistFMKit SetlistFMRequestModels.swift
[8/8] Compiling SetlistFMKit SetlistFMWrapper.swift
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMWrapper.swift:53:114: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 51 |     /// - Parameter language: The desired language you wish to obtain results in. `.english` is passed in by default.
 52 |     /// - Parameter session: Supply this argument when you want to use a custom networking implementation different than `URLSession.shared`
 53 |     public init(apiKey: String, language: SupportedLanguage = .english, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |         fmRequest = SetlistFMRequest(apiKey: apiKey, language: language, session: session)
 55 |     }
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling SetlistFMKit URLSessionProtocol.swift
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
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/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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/SetlistFMKit/URLSessionProtocol.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | }
19 |
20 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
21 |     public func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol {
22 |         (dataTask(with: url, completionHandler: completionHandler) as URLSessionDataTask) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:37:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
35 | }
36 |
37 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
38 |
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:21:36: error: cannot find type 'URLRequest' in scope
19 |
20 | extension URLSession: URLSessionProtocol {
21 |     public func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol {
   |                                    `- error: cannot find type 'URLRequest' in scope
22 |         (dataTask(with: url, completionHandler: completionHandler) as URLSessionDataTask) as URLSessionDataTaskProtocol
23 |     }
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:26:35: error: cannot find type 'URLRequest' in scope
24 |
25 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
26 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
   |                                   `- error: cannot find type 'URLRequest' in scope
27 |         try await data(for: request, delegate: nil)
28 |     }
[3/7] Compiling SetlistFMKit SetlistFMWrapper.swift
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMWrapper.swift:53:114: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 51 |     /// - Parameter language: The desired language you wish to obtain results in. `.english` is passed in by default.
 52 |     /// - Parameter session: Supply this argument when you want to use a custom networking implementation different than `URLSession.shared`
 53 |     public init(apiKey: String, language: SupportedLanguage = .english, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |         fmRequest = SetlistFMRequest(apiKey: apiKey, language: language, session: session)
 55 |     }
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling SetlistFMKit SetlistFMRequestModels.swift
[5/7] Compiling SetlistFMKit SetlistFMResponseModels.swift
[6/7] Emitting module SetlistFMKit
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:34:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |     /// - Parameter language: The language we set to requests results back in
 33 |     /// - Parameter session: The URLSessionProtocol to make network requests through
 34 |     init(apiKey: String, language: SupportedLanguage, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |         self.apiKey = apiKey
 36 |         self.language = language
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:75:66: error: cannot find type 'URLRequest' in scope
 73 |     }
 74 |
 75 |     private func urlRequest(for model: SetlistFMRequestModel) -> URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 76 |         guard var components = URLComponents(string: model.endpoint) else {
 77 |             return nil
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:97:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
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/SetlistFMKit/SetlistFMWrapper.swift:53:114: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 51 |     /// - Parameter language: The desired language you wish to obtain results in. `.english` is passed in by default.
 52 |     /// - Parameter session: Supply this argument when you want to use a custom networking implementation different than `URLSession.shared`
 53 |     public init(apiKey: String, language: SupportedLanguage = .english, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 54 |         fmRequest = SetlistFMRequest(apiKey: apiKey, language: language, session: session)
 55 |     }
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
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/SetlistFMKit/URLSessionProtocol.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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/SetlistFMKit/URLSessionProtocol.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | }
19 |
20 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
21 |     public func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol {
22 |         (dataTask(with: url, completionHandler: completionHandler) as URLSessionDataTask) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:37:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
35 | }
36 |
37 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
38 |
[7/7] Compiling SetlistFMKit SetlistFMRequest.swift
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:14:29: error: cannot find type 'URLRequest' in scope
12 | /// in a way that is compatible with `URLSession` so that the providing such network implementation is optional
13 | public protocol URLSessionProtocol {
14 |     func dataTask(with url: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTaskProtocol
   |                             `- error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
/host/spi-builder-workspace/Sources/SetlistFMKit/URLSessionProtocol.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
17 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
18 | }
19 |
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:34:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |     /// - Parameter language: The language we set to requests results back in
 33 |     /// - Parameter session: The URLSessionProtocol to make network requests through
 34 |     init(apiKey: String, language: SupportedLanguage, session: URLSessionProtocol = URLSession.shared) {
    |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |         self.apiKey = apiKey
 36 |         self.language = language
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:75:66: error: cannot find type 'URLRequest' in scope
 73 |     }
 74 |
 75 |     private func urlRequest(for model: SetlistFMRequestModel) -> URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 76 |         guard var components = URLComponents(string: model.endpoint) else {
 77 |             return nil
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:97:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |     }
 96 |
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
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/SetlistFMKit/SetlistFMRequest.swift:49:87: error: argument type '_' expected to be an instance of a class or class-constrained type
 47 |
 48 |         let task = session.dataTask(with: request) { data, response, error in
 49 |             let result: Result<T, FMError> = self.parseResponse(data: data, response: response, error: error)
    |                                                                                       `- error: argument type '_' expected to be an instance of a class or class-constrained type
 50 |             completion(result)
 51 |         }
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:89:23: error: cannot find 'URLRequest' in scope
 87 |         let url = URL(string: baseURL + components.url!.absoluteString)!
 88 |
 89 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 90 |         request.httpMethod = "GET"
 91 |         request.setValue(apiKey, forHTTPHeaderField: "x-api-key")
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:99:44: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
    |                                            `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
100 |             (200 ..< 300) ~= requestResponse.statusCode,
101 |             error == nil
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:99:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     private func parseResponse<T: Decodable>(data: Data?, response: URLResponse?, error: Error?) -> Result<T, FMError> {
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |             (200 ..< 300) ~= requestResponse.statusCode,
101 |             error == nil
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:100:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 98 |         guard let data = data,
 99 |             let requestResponse = response as? HTTPURLResponse,
100 |             (200 ..< 300) ~= requestResponse.statusCode,
    |                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |             error == nil
102 |         else {
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:103:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
101 |             error == nil
102 |         else {
103 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
104 |             let result: Result<T, FMError> = .failure(.init(code: statusCode ?? -1, message: error?.localizedDescription))
105 |             return result
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:103:62: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
101 |             error == nil
102 |         else {
103 |             let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
104 |             let result: Result<T, FMError> = .failure(.init(code: statusCode ?? -1, message: error?.localizedDescription))
105 |             return result
/host/spi-builder-workspace/Sources/SetlistFMKit/SetlistFMRequest.swift:112:83: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |             return .success(data)
111 |         } catch(let error) {
112 |             let result: Result<T, FMError> = .failure(.init(code: requestResponse.statusCode, message: error.localizedDescription))
    |                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
113 |             return result
114 |         }
BUILD FAILURE 6.1 wasm