The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LemmyKit, reference 0.5.1 (15270b), with Swift 6.1 for Linux on 14 Jul 2026 19:14:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[368/398] Compiling LemmyKit LemmyApi+ResolveObject.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[369/398] Compiling LemmyKit LemmyApi+ResolvePostReport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[370/398] Compiling LemmyKit LemmyApi+ResolvePrivateMessageReport.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[371/398] Compiling LemmyKit LemmyApi+SaveComment.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[372/398] Compiling LemmyKit LemmyApi+SavePost.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[373/398] Compiling LemmyKit LemmyApi+SaveUserSettings.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[374/398] Compiling LemmyKit LemmyApi+Search.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[375/398] Compiling LemmyKit LemmyApi+TransferCommunity.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[376/398] Compiling LemmyKit LemmyApi+UpdateTotp.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[377/398] Compiling LemmyKit LemmyApi+UploadImage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[378/398] Compiling LemmyKit LemmyApi+ValidateAuth.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[379/398] Compiling LemmyKit LemmyApi+VerifyEmail.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[380/398] Compiling LemmyKit LemmyApi.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[381/398] Compiling LemmyKit LemmyApiError+fromClientError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[382/398] Compiling LemmyKit LemmyApiError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[383/398] Compiling LemmyKit LemmyCredential.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[384/398] Compiling LemmyKit AuthorizationMiddleware.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[385/398] Compiling LemmyKit CommentPath.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[386/398] Compiling LemmyKit CommunityFilter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[387/398] Compiling LemmyKit ContentFilter.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[388/398] Compiling LemmyKit Date+lemmyFormat.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[389/398] Compiling LemmyKit ImageFormat.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[390/398] Compiling LemmyKit LemmyDateTranscoder.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[391/398] Compiling LemmyKit LenientUrl.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[392/398] Compiling LemmyKit LikeStatus.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[393/398] Compiling LemmyKit MultipartFormData.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[394/398] Compiling LemmyKit URL+lenientString.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[395/398] Compiling LemmyKit UserAgentMiddleware.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[396/398] Compiling LemmyKit Types.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[397/398] Compiling LemmyKit Client.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[398/398] Compiling LemmyKit Server.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:0f094b998e61bb35b7a666f42e392cfb12929ea8fa9160622b1badd8b73d5c87
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.1-latest
[0/21] Compiling _NumericsShims _NumericsShims.c
[1/21] Compiling writer.c
[2/21] Compiling reader.c
[3/21] Compiling parser.c
[4/21] Compiling api.c
[5/21] Compiling emitter.c
[6/21] Write swift-version-24593BA9C3E375BF.txt
[7/21] Compiling scanner.c
[9/87] Emitting module ArgumentParserToolInfo
[10/87] Compiling RealModule Real.swift
[11/87] Compiling RealModule RealFunctions.swift
[12/88] Compiling RealModule Float80+Real.swift
[13/88] Compiling OpenAPIKitCore Either+Codable.swift
[14/88] Compiling OpenAPIKitCore Either+CustomStringConvertible.swift
[15/88] Compiling RealModule RelaxedArithmetic.swift
[16/88] Compiling OpenAPIKitCore AnyCodable+Validatable.swift
[17/88] Compiling OpenAPIKitCore AnyCodable.swift
[18/88] Compiling OpenAPIKitCore Either.swift
[19/88] Compiling OpenAPIKitCore OpenAPIDecodingErrors.swift
[20/88] Compiling RealModule Float16+Real.swift
[21/88] Compiling OpenAPIKitCore OrderedDictionary+Validatable.swift
[22/88] Compiling OpenAPIKitCore OrderedDictionary.swift
[23/88] Compiling OpenAPIKitCore StringConvertibleHintProvider.swift
[24/88] Compiling OpenAPIKitCore Shared.swift
[25/90] Emitting module OpenAPIKitCore
[26/94] Emitting module RealModule
[28/95] Compiling ArgumentParserToolInfo ToolInfo.swift
[30/96] Compiling Yams YamlError.swift
[31/96] Compiling Yams YamlTagProviding.swift
[32/96] Compiling OpenAPIKitCore OpenAPIError.swift
[33/96] Compiling OpenAPIKitCore OpenAPIWarning.swift
[34/96] Compiling OpenAPIKitCore RequestDecodingError.swift
[35/96] Compiling OpenAPIKitCore JSONTypeFormat.swift
[36/96] Compiling OpenAPIKitCore Path.swift
[37/96] Compiling OpenAPIKitCore ResponseStatusCode.swift
[38/96] Compiling OpenAPIKitCore SecurityScheme.swift
[39/96] Emitting module Yams
[40/96] Compiling OpenAPIKitCore Optional+Zip.swift
[41/96] Compiling OpenAPIKitCore Result+Value.swift
[42/96] Compiling OpenAPIKitCore URL+Resolution.swift
[43/96] Compiling OpenAPIKitCore Validatable.swift
[43/96] Wrapping AST for RealModule for debugging
[44/96] Wrapping AST for ArgumentParserToolInfo for debugging
[46/121] Compiling Algorithms FlattenCollection.swift
[47/121] Compiling Algorithms Grouped.swift
[48/121] Compiling Algorithms Indexed.swift
[49/121] Compiling Algorithms Intersperse.swift
[50/121] Compiling Algorithms Compacted.swift
[51/168] Compiling ArgumentParser CompletionKind.swift
[52/168] Compiling ArgumentParser Errors.swift
[53/168] Compiling ArgumentParser Flag.swift
[54/168] Compiling ArgumentParser NameSpecification.swift
[55/168] Compiling ArgumentParser Option.swift
[56/168] Compiling ArgumentParser ExpressibleByArgument.swift
[57/168] Compiling ArgumentParser ParsableArguments.swift
[58/168] Compiling ArgumentParser ParsableCommand.swift
[59/168] Compiling ArgumentParser ArgumentDecoder.swift
[60/168] Compiling ArgumentParser ArgumentDefinition.swift
[61/168] Compiling ArgumentParser OptionGroup.swift
[62/168] Compiling ArgumentParser BashCompletionsGenerator.swift
[63/168] Compiling ArgumentParser CompletionsGenerator.swift
[64/168] Compiling ArgumentParser FishCompletionsGenerator.swift
[65/168] Compiling ArgumentParser ArgumentSet.swift
[66/168] Compiling ArgumentParser CommandParser.swift
[67/168] Compiling ArgumentParser InputKey.swift
[68/168] Compiling ArgumentParser InputOrigin.swift
[69/168] Compiling ArgumentParser ArgumentVisibility.swift
[70/168] Compiling ArgumentParser Name.swift
[71/168] Compiling ArgumentParser Parsed.swift
[72/168] Compiling ArgumentParser ParsedValues.swift
[73/168] Compiling ArgumentParser ParserError.swift
[74/169] Wrapping AST for OpenAPIKitCore for debugging
[88/313] Compiling OpenAPIKit Discriminator.swift
[89/313] Compiling OpenAPIKit DereferencedDocument.swift
[90/313] Compiling OpenAPIKit Document+URIResolution.swift
[91/313] Compiling OpenAPIKit Document.swift
[92/313] Compiling OpenAPIKit DocumentInfo.swift
[93/313] Compiling OpenAPIKit ResolvedDocument.swift
[95/314] Compiling OpenAPIKit ResponseDecodingError.swift
[96/314] Compiling OpenAPIKit Example.swift
[97/314] Compiling OpenAPIKit ExampleValue.swift
[97/314] Wrapping AST for Yams for debugging
[99/314] Compiling OpenAPIKit ParameterSchemaContextStyle.swift
[100/314] Compiling OpenAPIKit DereferencedPathItem.swift
[101/314] Compiling OpenAPIKit PathItem.swift
[102/314] Compiling OpenAPIKit ParameterContext.swift
[103/314] Compiling OpenAPIKit ParameterContextLocation.swift
[104/314] Compiling OpenAPIKit ParameterSchemaContext.swift
[105/314] Compiling OpenAPIKit DereferencedContentEncoding.swift
[106/314] Compiling OpenAPIKit DereferencedContentPositionalEncoding.swift
[107/314] Compiling OpenAPIKit DereferencedResponse.swift
[108/314] Compiling OpenAPIKit Response.swift
[109/314] Compiling OpenAPIKit RuntimeExpression.swift
[110/314] Compiling OpenAPIKit SchemaProtocols.swift
[111/320] Compiling OpenAPIKit ExternalLoader.swift
[112/320] Compiling OpenAPIKit DereferencedHeader.swift
[113/320] Compiling OpenAPIKit Header.swift
[114/320] Compiling OpenAPIKit Callbacks.swift
[115/320] Compiling OpenAPIKit CodableVendorExtendable.swift
[116/320] Compiling OpenAPIKit Components+JSONReference.swift
[119/320] Compiling OpenAPIKit Either+Convenience.swift
[120/320] Compiling OpenAPIKit Either+ExternallyDereferenceable.swift
[133/320] Compiling OpenAPIKit Either+LocallyDereferenceable.swift
[134/320] Compiling OpenAPIKit Either+Summarizable.swift
[135/329] Compiling OpenAPIKit Components+Locatable.swift
[136/329] Compiling OpenAPIKit Components.swift
[137/329] Compiling OpenAPIKit Content.swift
[138/329] Compiling OpenAPIKit ContentEncoding.swift
[139/329] Compiling OpenAPIKit ContentPositionalEncoding.swift
[140/329] Compiling OpenAPIKit DereferencedContent.swift
[143/329] Compiling OpenAPIKit Either+Validatable.swift
[144/329] Compiling OpenAPIKit Parameter.swift
[145/329] Emitting module OpenAPIKit30
[154/329] Compiling OpenAPIKit ResolvedRoute.swift
[155/329] Compiling OpenAPIKit DereferencedRequest.swift
[156/329] Compiling ArgumentParser AsyncCompletionsValidator.swift
[157/329] Compiling ArgumentParser CodingKeyValidator.swift
[158/329] Compiling ArgumentParser NonsenseFlagsValidator.swift
[159/329] Compiling ArgumentParser ParsableArgumentsValidation.swift
[160/329] Compiling ArgumentParser PositionalArgumentsValidator.swift
[161/329] Compiling ArgumentParser UniqueNamesValidator.swift
[162/329] Compiling OpenAPIKit TypesAndFormats.swift
[163/329] Compiling OpenAPIKit DereferencedSecurityRequirement.swift
[164/329] Compiling OpenAPIKit OAuthFlows.swift
[165/329] Compiling OpenAPIKit SecurityScheme.swift
[166/329] Compiling OpenAPIKit Server.swift
[167/329] Compiling OpenAPIKit30 Optional+ExternallyDereferenceable.swift
[168/329] Compiling OpenAPIKit30 OrderedDictionary+ExternallyDereferenceable.swift
[169/329] Compiling OpenAPIKit30 OrderedDictionry+LocallyDereferenceable.swift
[170/329] Compiling OpenAPIKit30 Validation+Builtins.swift
[171/329] Compiling OpenAPIKit30 Validation.swift
[172/339] Emitting module ArgumentParser
[178/339] Compiling OpenAPIKit Optional+ExternallyDereferenceable.swift
[179/339] Compiling OpenAPIKit OrderedDictionary+ExternallyDereferenceable.swift
[180/339] Compiling OpenAPIKit OrderedDictionry+LocallyDereferenceable.swift
[181/339] Compiling OpenAPIKit ReferenceValidations.swift
[193/339] Emitting module OpenAPIKit
[200/339] Compiling OpenAPIKit Request.swift
[215/339] Compiling OpenAPIKit DocumentDecodingError.swift
[216/339] Compiling OpenAPIKit OperationDecodingError.swift
[217/339] Compiling OpenAPIKit PathDecodingError.swift
[221/339] Compiling OpenAPIKit ExternalDocumentation.swift
[222/340] Emitting module Algorithms
[244/341] Wrapping AST for ArgumentParser for debugging
[245/341] Wrapping AST for Algorithms for debugging
[265/341] Compiling OpenAPIKit DereferencedOperation.swift
[266/341] Compiling OpenAPIKit Operation.swift
[267/341] Compiling OpenAPIKit ResolvedEndpoint.swift
[268/341] Compiling OpenAPIKit DereferencedParameter.swift
[269/341] Compiling OpenAPIKit DereferencedSchemaContext.swift
[289/341] Compiling OpenAPIKit JSONReference+URIResolution.swift
[290/341] Compiling OpenAPIKit JSONReference.swift
[291/341] Compiling OpenAPIKit Link.swift
[292/341] Compiling OpenAPIKit OpenAPI.swift
[293/341] Compiling OpenAPIKit OpenAPIConditionalWarnings.swift
[298/341] Compiling OpenAPIKit Validation+Builtins.swift
[299/341] Compiling OpenAPIKit Validation.swift
[300/341] Compiling OpenAPIKit Validator+Convenience.swift
[301/341] Compiling OpenAPIKit Validator.swift
[302/341] Compiling OpenAPIKit XML.swift
[303/341] Compiling OpenAPIKit _CoreReExport.swift
[304/342] Wrapping AST for OpenAPIKit30 for debugging
[337/343] Wrapping AST for OpenAPIKit for debugging
[339/346] Compiling OpenAPIKitCompat Either+Map.swift
[340/346] Emitting module OpenAPIKitCompat
[341/346] Compiling OpenAPIKitCompat Compat30To31.swift
[342/347] Wrapping AST for OpenAPIKitCompat for debugging
[344/429] Compiling _OpenAPIGeneratorCore Config.swift
[345/429] Compiling _OpenAPIGeneratorCore Diagnostics.swift
[346/429] Compiling _OpenAPIGeneratorCore DiagnosticsCollectorProvider.swift
[347/429] Compiling _OpenAPIGeneratorCore Errors.swift
[348/429] Compiling _OpenAPIGeneratorCore Foundation.swift
[349/429] Compiling _OpenAPIGeneratorCore OpenAPIKit.swift
[350/429] Compiling _OpenAPIGeneratorCore String.swift
[351/429] Compiling _OpenAPIGeneratorCore SwiftStandardLibrary.swift
[352/429] Compiling _OpenAPIGeneratorCore FeatureFlags.swift
[353/429] Compiling _OpenAPIGeneratorCore GeneratorMode.swift
[354/429] Compiling _OpenAPIGeneratorCore GeneratorPipeline.swift
[355/429] Compiling _OpenAPIGeneratorCore GeneratorPipelineStage.swift
[356/440] Compiling _OpenAPIGeneratorCore translateComponentHeaders.swift
[357/440] Compiling _OpenAPIGeneratorCore translateComponentParameters.swift
[358/440] Compiling _OpenAPIGeneratorCore translateComponentRequestBodies.swift
[359/440] Compiling _OpenAPIGeneratorCore translateComponentResponses.swift
[360/440] Compiling _OpenAPIGeneratorCore translateComponents.swift
[361/440] Compiling _OpenAPIGeneratorCore translateOperations.swift
[362/440] Compiling _OpenAPIGeneratorCore translateSchemas.swift
[363/440] Compiling _OpenAPIGeneratorCore translateServers.swift
[364/440] Compiling _OpenAPIGeneratorCore translateServersVariables.swift
[365/440] Compiling _OpenAPIGeneratorCore TypeOverrides.swift
[366/440] Compiling _OpenAPIGeneratorCore YamlFileDiagnosticsCollector.swift
[367/440] Compiling _OpenAPIGeneratorCore ReferenceStack.swift
[368/440] Compiling _OpenAPIGeneratorCore SafeNameGenerator.swift
[369/440] Compiling _OpenAPIGeneratorCore TypeAssigner.swift
[370/440] Compiling _OpenAPIGeneratorCore TypeLocation.swift
[371/440] Compiling _OpenAPIGeneratorCore TypeMatcher.swift
[372/440] Compiling _OpenAPIGeneratorCore TypeName.swift
[373/440] Compiling _OpenAPIGeneratorCore TypeUsage.swift
[374/440] Compiling _OpenAPIGeneratorCore isSchemaSupported.swift
[375/440] Compiling _OpenAPIGeneratorCore TypesFileTranslator.swift
[376/440] Compiling _OpenAPIGeneratorCore translateAPIProtocol.swift
[377/440] Compiling _OpenAPIGeneratorCore translateBoxedTypes.swift
[378/440] Compiling _OpenAPIGeneratorCore Constants.swift
[379/440] Compiling _OpenAPIGeneratorCore DiscriminatorExtensions.swift
[380/440] Compiling _OpenAPIGeneratorCore SchemaOverrides.swift
[381/440] Compiling _OpenAPIGeneratorCore StructBlueprint.swift
[382/440] Compiling _OpenAPIGeneratorCore CodingStrategy.swift
[383/440] Compiling _OpenAPIGeneratorCore ContentInspector.swift
[384/440] Compiling _OpenAPIGeneratorCore ContentType.swift
[385/440] Compiling _OpenAPIGeneratorCore SchemaContent.swift
[386/440] Compiling _OpenAPIGeneratorCore FileTranslator+FeatureFlags.swift
[387/440] Compiling _OpenAPIGeneratorCore FileTranslator.swift
[388/440] Compiling _OpenAPIGeneratorCore MultipartAdditionalProperties.swift
[389/440] Compiling _OpenAPIGeneratorCore MultipartContent.swift
[390/440] Emitting module _OpenAPIGeneratorCore
[391/440] Compiling _OpenAPIGeneratorCore MultipartContentInspector.swift
[392/440] Compiling _OpenAPIGeneratorCore translateMultipart.swift
[393/440] Compiling _OpenAPIGeneratorCore MultiplexTranslator.swift
[394/440] Compiling _OpenAPIGeneratorCore OperationDescription.swift
[395/440] Compiling _OpenAPIGeneratorCore TypedParameter.swift
[396/440] Compiling _OpenAPIGeneratorCore translateParameter.swift
[397/440] Compiling _OpenAPIGeneratorCore DeclarationRecursionDetector.swift
[398/440] Compiling _OpenAPIGeneratorCore RecursionDetector.swift
[399/440] Compiling _OpenAPIGeneratorCore TypedRequestBody.swift
[400/440] Compiling _OpenAPIGeneratorCore translateRequestBody.swift
[401/440] Compiling _OpenAPIGeneratorCore HTTPStatusCodes.swift
[402/440] Compiling _OpenAPIGeneratorCore ResponseKind.swift
[403/440] Compiling _OpenAPIGeneratorCore TypedResponse.swift
[404/440] Compiling _OpenAPIGeneratorCore TypedResponseHeader.swift
[405/440] Compiling _OpenAPIGeneratorCore acceptHeaderContentTypes.swift
[406/440] Compiling _OpenAPIGeneratorCore translateResponse.swift
[407/440] Compiling _OpenAPIGeneratorCore translateResponseHeader.swift
[408/440] Compiling _OpenAPIGeneratorCore translateResponseOutcome.swift
[409/440] Compiling _OpenAPIGeneratorCore ServerTranslator.swift
[410/440] Compiling _OpenAPIGeneratorCore translateServerMethod.swift
[411/440] Compiling _OpenAPIGeneratorCore TranslatorProtocol.swift
[412/440] Compiling _OpenAPIGeneratorCore Builtins.swift
[413/440] Compiling _OpenAPIGeneratorCore translateClientMethod.swift
[414/440] Compiling _OpenAPIGeneratorCore translateAllAnyOneOf.swift
[415/440] Compiling _OpenAPIGeneratorCore translateArray.swift
[416/440] Compiling _OpenAPIGeneratorCore translateCodable.swift
[417/440] Compiling _OpenAPIGeneratorCore translateObjectStruct.swift
[418/440] Compiling _OpenAPIGeneratorCore translateRawEnum.swift
[419/440] Compiling _OpenAPIGeneratorCore translateRawRepresentableEnum.swift
[420/440] Compiling _OpenAPIGeneratorCore translateSchema.swift
[421/440] Compiling _OpenAPIGeneratorCore translateStructBlueprint.swift
[422/440] Compiling _OpenAPIGeneratorCore translateTypealias.swift
[423/440] Compiling _OpenAPIGeneratorCore Annotations.swift
[424/440] Compiling _OpenAPIGeneratorCore CommentExtensions.swift
[425/440] Compiling _OpenAPIGeneratorCore DocumentFilter.swift
[426/440] Compiling _OpenAPIGeneratorCore FilteredDocument.swift
[427/440] Compiling _OpenAPIGeneratorCore ParsedOpenAPIRepresentation.swift
[428/440] Compiling _OpenAPIGeneratorCore RenderedSwiftRepresentation.swift
[429/440] Compiling _OpenAPIGeneratorCore StructuredSwiftRepresentation.swift
[430/440] Compiling _OpenAPIGeneratorCore ParserProtocol.swift
[431/440] Compiling _OpenAPIGeneratorCore YamsParser.swift
[432/440] Compiling _OpenAPIGeneratorCore validateDoc.swift
[433/440] Compiling _OpenAPIGeneratorCore PlatformChecks.swift
[434/440] Compiling _OpenAPIGeneratorCore RendererProtocol.swift
[435/440] Compiling _OpenAPIGeneratorCore TextBasedRenderer.swift
[436/440] Compiling _OpenAPIGeneratorCore ClientTranslator.swift
[437/441] Wrapping AST for _OpenAPIGeneratorCore for debugging
[439/450] Compiling swift_openapi_generator PluginSource.swift
[440/451] Compiling swift_openapi_generator GenerateCommand.swift
[441/451] Compiling swift_openapi_generator Tool.swift
[442/451] Compiling swift_openapi_generator UserConfig.swift
[443/451] Compiling swift_openapi_generator GenerateOptions+runGenerator.swift
[444/451] Compiling swift_openapi_generator GenerateOptions.swift
[445/451] Emitting module swift_openapi_generator
[446/451] Compiling swift_openapi_generator Extensions.swift
[447/451] Compiling swift_openapi_generator FilterCommand.swift
[448/451] Compiling swift_openapi_generator runGenerator.swift
[449/452] Wrapping AST for swift-openapi-generator for debugging
[450/452] Write Objects.LinkFileList
[451/452] Linking swift-openapi-generator-tool
[0/1] Planning build
[1/1] Compiling plugin OpenAPIGeneratorCommand
[2/2] Compiling plugin OpenAPIGenerator
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/27] Compiling _NumericsShims _NumericsShims.c
[5/27] Compiling reader.c
[6/27] Compiling writer.c
[7/27] Compiling parser.c
[8/27] Compiling api.c
[9/27] Write swift-version-24593BA9C3E375BF.txt
[10/27] Compiling scanner.c
[11/27] Compiling emitter.c
[13/58] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[14/58] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[15/60] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[16/60] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[17/60] Compiling InternalCollectionsUtilities Span+Extras.swift
[18/60] Compiling InternalCollectionsUtilities String+Padding.swift
[19/60] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[20/60] Compiling InternalCollectionsUtilities _SortedCollection.swift
[21/60] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[22/60] Emitting module ArgumentParserToolInfo
[24/61] Compiling HTTPTypes HTTPField.swift
[25/61] Compiling HTTPTypes HTTPFieldName.swift
[26/61] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[27/61] Compiling HTTPTypes HTTPParsedFields.swift
[27/61] Wrapping AST for ArgumentParserToolInfo for debugging
[29/62] Emitting module HTTPTypes
[30/62] Compiling HTTPTypes ISOLatin1String.swift
[31/63] Compiling HTTPTypes NIOLock.swift
[32/63] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[33/63] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[34/63] Compiling HTTPTypes HTTPRequest+URL.swift
[35/63] Compiling HTTPTypes HTTPRequest.swift
[36/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[37/63] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[38/63] Compiling InternalCollectionsUtilities Integer rank.swift
[39/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[40/63] Compiling InternalCollectionsUtilities UInt+reversed.swift
[41/63] Emitting module RealModule
[42/64] Emitting module OpenAPIKitCore
[44/65] Emitting module Yams
[46/66] Emitting module InternalCollectionsUtilities
[49/67] Compiling HTTPTypes HTTPFields.swift
[49/67] Wrapping AST for RealModule for debugging
[50/67] Wrapping AST for OpenAPIKitCore for debugging
[51/68] Wrapping AST for Yams for debugging
[55/69] Compiling HTTPTypes HTTPResponse.swift
[57/107] Emitting module ArgumentParser
[58/108] Compiling ContainersPreview Producer+Map.swift
[59/108] Compiling ContainersPreview Producer+Reduce.swift
[60/108] Compiling ContainersPreview Producer.swift
[61/108] Compiling ContainersPreview InputSpan.swift
[62/108] Compiling ContainersPreview MutableRef.swift
[63/112] Compiling ContainersPreview OutputSpan+Extras.swift
[64/112] Compiling ContainersPreview TemporaryAllocation.swift
[65/112] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[66/112] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[67/112] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[68/112] Compiling ContainersPreview Container+SpanwiseZip.swift
[69/112] Compiling ContainersPreview Container.swift
[70/112] Compiling ContainersPreview ContainerIterator.swift
[71/112] Compiling ContainersPreview DynamicContainer.swift
[72/112] Compiling ContainersPreview MutableContainer.swift
[73/112] Compiling ContainersPreview PermutableContainer.swift
[74/112] Compiling ContainersPreview RandomAccessContainer.swift
[75/112] Compiling ContainersPreview RangeExpression2.swift
[76/112] Compiling ContainersPreview RangeReplaceableContainer.swift
[77/112] Compiling ContainersPreview Strideable+Limits.swift
[78/112] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[79/112] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[80/112] Compiling ContainersPreview BorrowingSequence.swift
[81/112] Compiling ContainersPreview BidirectionalContainer.swift
[82/112] Compiling ContainersPreview Container+Filter.swift
[83/112] Compiling ContainersPreview Drain+Map.swift
[84/112] Compiling ContainersPreview Drain+Reduce.swift
[85/112] Compiling ContainersPreview Drain.swift
[86/112] Compiling ContainersPreview Producer+Collect.swift
[87/112] Compiling ContainersPreview Producer+Filter.swift
[88/112] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[89/112] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[90/112] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[91/112] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[92/112] Compiling ContainersPreview BorrowingSequence+Algorithms.swift
[93/112] Emitting module ContainersPreview
[95/112] Compiling ContainersPreview Ref.swift
[96/112] Compiling ContainersPreview Shared.swift
[97/112] Compiling ContainersPreview SpanIterator.swift
[98/112] Compiling ContainersPreview UniqueBox.swift
[98/113] Wrapping AST for ArgumentParser for debugging
[101/218] Compiling DequeModule UniqueDeque+Hashable.swift
[102/218] Compiling DequeModule UniqueDeque+Initializers.swift
[103/218] Compiling DequeModule UniqueDeque+Insertions.swift
[104/218] Compiling DequeModule UniqueDeque+Prepend.swift
[105/218] Compiling DequeModule UniqueDeque+Removals.swift
[106/223] Compiling DequeModule UniqueDeque+Container.swift
[107/223] Compiling DequeModule UniqueDeque+Deprecated.swift
[108/223] Compiling DequeModule UniqueDeque+Descriptions.swift
[109/223] Compiling DequeModule UniqueDeque+Equatable.swift
[110/223] Compiling DequeModule UniqueDeque+Experimental.swift
[111/223] Compiling DequeModule RigidDeque+Removals.swift
[112/223] Compiling DequeModule RigidDeque+Replacements.swift
[113/223] Compiling DequeModule RigidDeque+Testing.swift
[114/223] Compiling DequeModule RigidDeque.swift
[115/223] Compiling DequeModule UniqueDeque+Append.swift
[116/223] Compiling DequeModule UniqueDeque+Consumption.swift
[117/223] Compiling DequeModule RigidDeque+Equatable.swift
[118/223] Compiling DequeModule RigidDeque+Experimental.swift
[119/223] Compiling DequeModule RigidDeque+Hashable.swift
[120/223] Compiling DequeModule RigidDeque+Initializers.swift
[121/223] Compiling DequeModule RigidDeque+Insertions.swift
[122/223] Compiling DequeModule RigidDeque+Prepend.swift
[123/223] Compiling DequeModule _DequeBuffer.swift
[124/223] Compiling DequeModule _DequeBufferHeader.swift
[125/223] Compiling DequeModule RigidDeque+Append.swift
[126/223] Compiling DequeModule RigidDeque+Consumption.swift
[127/223] Compiling DequeModule RigidDeque+Container.swift
[128/223] Compiling DequeModule RigidDeque+Descriptions.swift
[129/223] Emitting module OpenAPIKit30
[140/232] Emitting module OpenAPIRuntime
[141/232] Compiling OpenAPIRuntime OpenAPIMIMEType+Multipart.swift
[142/232] Compiling OpenAPIRuntime URICodeCodingKey.swift
[143/232] Compiling OpenAPIRuntime URICoderConfiguration.swift
[144/232] Compiling OpenAPIRuntime URIEncodedNode.swift
[145/232] Compiling OpenAPIRuntime URIParsedTypes.swift
[146/232] Compiling OpenAPIRuntime URIDecoder.swift
[147/232] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Keyed.swift
[148/232] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Single.swift
[149/232] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Unkeyed.swift
[157/232] Compiling DequeModule Deque+Codable.swift
[158/232] Compiling DequeModule Deque+Collection.swift
[159/232] Compiling DequeModule Deque+Extras.swift
[160/232] Compiling DequeModule Deque+Hashable.swift
[161/232] Compiling DequeModule Deque+Testing.swift
[162/232] Compiling DequeModule Deque._Storage.swift
[163/232] Compiling DequeModule Deque._UnsafeHandle.swift
[164/232] Compiling DequeModule Deque.swift
[168/232] Emitting module OpenAPIKit
[173/233] Compiling DequeModule UniqueDeque+Replacements.swift
[174/233] Compiling DequeModule UniqueDeque.swift
[175/233] Compiling DequeModule _DequeSlot.swift
[176/233] Compiling DequeModule _UnsafeDequeHandle.swift
[177/233] Compiling DequeModule _UnsafeDequeSegments.swift
[178/233] Wrapping AST for OpenAPIKit30 for debugging
[179/233] Wrapping AST for OpenAPIKit for debugging
[189/234] Compiling DequeModule Deque+CustomReflectable.swift
[190/234] Compiling DequeModule Deque+Descriptions.swift
[191/234] Compiling DequeModule Deque+Equatable.swift
[192/234] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[193/234] Emitting module OpenAPIKitCompat
[199/235] Wrapping AST for OpenAPIKitCompat for debugging
[201/235] Compiling OpenAPIRuntime MultipartBoundaryGenerator.swift
[202/235] Compiling OpenAPIRuntime MultipartBytesToFramesSequence.swift
[203/235] Compiling OpenAPIRuntime MultipartFramesToBytesSequence.swift
[204/235] Compiling OpenAPIRuntime MultipartFramesToRawPartsSequence.swift
[205/235] Compiling OpenAPIRuntime MultipartInternalTypes.swift
[206/235] Compiling OpenAPIRuntime MultipartPublicTypes.swift
[207/235] Compiling OpenAPIRuntime MultipartPublicTypesExtensions.swift
[208/235] Compiling OpenAPIRuntime MultipartRawPartsToFramesSequence.swift
[209/235] Compiling OpenAPIRuntime MultipartValidation.swift
[219/235] Emitting module Algorithms
[220/236] Emitting module DequeModule
[221/237] Compiling OpenAPIRuntime URIValueFromNodeDecoder.swift
[222/237] Compiling OpenAPIRuntime URIEncoder.swift
[223/237] Compiling OpenAPIRuntime URIValueToNodeEncoder+Keyed.swift
[224/237] Compiling OpenAPIRuntime URIValueToNodeEncoder+Single.swift
[225/237] Compiling OpenAPIRuntime URIValueToNodeEncoder+Unkeyed.swift
[226/237] Compiling OpenAPIRuntime URIValueToNodeEncoder.swift
[227/237] Compiling OpenAPIRuntime URIParser.swift
[228/237] Compiling OpenAPIRuntime URISerializer.swift
[231/238] Wrapping AST for Algorithms for debugging
[233/245] Compiling OpenAPIURLSession BidirectionalStreamingURLSessionDelegate.swift
[234/245] Compiling OpenAPIURLSession HTTPBodyOutputStreamBridge.swift
[235/246] Compiling OpenAPIURLSession Lock.swift
[236/246] Compiling OpenAPIURLSession URLSession+Extensions.swift
[237/246] Compiling OpenAPIURLSession URLSessionTransport.swift
[238/246] Emitting module OpenAPIURLSession
[239/246] Compiling OpenAPIURLSession BufferedStream.swift
[241/247] Emitting module _OpenAPIGeneratorCore
[242/248] Wrapping AST for _OpenAPIGeneratorCore for debugging
[244/249] Emitting module swift_openapi_generator
[245/250] Wrapping AST for swift-openapi-generator for debugging
[246/250] Write Objects.LinkFileList
[247/250] Linking swift-openapi-generator-tool
Swift OpenAPI Generator is running with the following configuration:
- OpenAPI document path: /host/spi-builder-workspace/Sources/LemmyKit/openapi.yaml
- Configuration path: /host/spi-builder-workspace/Sources/LemmyKit/openapi-generator-config.yaml
- Generator modes: types, client
- Access modifier: public
- Naming strategy: defensive
- Name overrides: <none>
- Type overrides: <none>
- Feature flags: <none>
- Output file names: Types.swift, Client.swift
- Output directory: /host/spi-builder-workspace/.build/plugins/outputs/spi-builder-workspace/LemmyKit/destination/OpenAPIGenerator/GeneratedSources
- Diagnostics output path: <none - logs to stderr>
- Current directory: /host/spi-builder-workspace
- Plugin source: build
- Is dry run: false
- Additional imports: <none>
- Additional file comments: <none>File Client.swift already up to date.
File Types.swift already up to date.
File Server.swift already up to date.
[248/250] Running swift-openapi-generator
[250/364] Compiling LemmyKit LemmyApi+ResolveCommentReport.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[251/364] Compiling LemmyKit LemmyApi+ResolveObject.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[252/364] Compiling LemmyKit LemmyApi+ResolvePostReport.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[253/364] Compiling LemmyKit LemmyApi+ResolvePrivateMessageReport.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[254/364] Compiling LemmyKit LemmyApi+SaveComment.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[255/364] Compiling LemmyKit LemmyApi+SavePost.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[256/364] Compiling LemmyKit LemmyApi+SaveUserSettings.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[257/364] Compiling LemmyKit LemmyApi+Search.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[258/364] Compiling LemmyKit LemmyApi+TransferCommunity.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[259/364] Compiling LemmyKit LemmyApi+UpdateTotp.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[260/364] Compiling LemmyKit LemmyApi+UploadImage.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[261/364] Compiling LemmyKit LemmyApi+ValidateAuth.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[262/364] Compiling LemmyKit LemmyApi+VerifyEmail.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[263/364] Compiling LemmyKit LemmyApi.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[264/364] Compiling LemmyKit LemmyApiError+fromClientError.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[265/364] Compiling LemmyKit LemmyApiError.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
 52 |         )
 53 |
 54 |         var request = URLRequest(url: endpoint)
    |                       `- error: cannot find 'URLRequest' in scope
 55 |         request.httpMethod = "POST"
 56 |         request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |
 64 |         let data: Data
 65 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
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/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |         let response: URLResponse
 66 |         do {
 67 |             (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         } catch {
 69 |             throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         }
 71 |
 72 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |             throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
 74 |         }
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/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 74 |         }
 75 |
 76 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 77 |         case 200, 201:
 78 |             break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 80 |             throw LemmyApiError.unauthorized(message: nil)
 81 |         default:
 82 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 83 |         }
 84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 94 |
 95 |         guard let image = uploadResponse.files.first else {
 96 |             throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
    |                                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 97 |         }
 98 |
[266/380] Compiling LemmyKit LemmyApi+CreatePost.swift
[267/380] Compiling LemmyKit LemmyApi+CreatePostReport.swift
[268/380] Compiling LemmyKit LemmyApi+CreatePrivateMessage.swift
[269/380] Compiling LemmyKit LemmyApi+CreateSite.swift
[270/380] Compiling LemmyKit LemmyApi+DeleteAccount.swift
[271/380] Compiling LemmyKit LemmyApi+DeleteComment.swift
[272/380] Compiling LemmyKit LemmyApi+DeleteCommunity.swift
[273/380] Compiling LemmyKit LemmyApi+DeleteCustomEmoji.swift
[274/380] Compiling LemmyKit LemmyApi+DeleteImage.swift
[275/380] Compiling LemmyKit LemmyApi+DeletePost.swift
[276/380] Compiling LemmyKit LemmyApi+DeletePrivateMessage.swift
[277/380] Compiling LemmyKit LemmyApi+DistinguishComment.swift
[278/380] Compiling LemmyKit LemmyApi+EditComment.swift
[279/380] Compiling LemmyKit LemmyApi+EditCommunity.swift
[280/380] Compiling LemmyKit LemmyApi+EditCustomEmoji.swift
[281/380] Compiling LemmyKit LemmyApi+EditPost.swift
[282/380] Compiling LemmyKit LemmyApi+EditPrivateMessage.swift
[283/380] Compiling LemmyKit CommentSortType+Identifiable.swift
[284/380] Compiling LemmyKit CommentSortType+allCases.swift
[285/380] Compiling LemmyKit SortType+Identifiable.swift
[286/380] Compiling LemmyKit SortType+allCases.swift
[287/380] Compiling LemmyKit LemmyApi+AddAdmin.swift
[288/380] Compiling LemmyKit LemmyApi+AddModToCommunity.swift
[289/380] Compiling LemmyKit LemmyApi+ApproveRegistrationApplication.swift
[290/380] Compiling LemmyKit LemmyApi+BanFromCommunity.swift
[291/380] Compiling LemmyKit LemmyApi+BanPerson.swift
[292/380] Compiling LemmyKit LemmyApi+BlockCommunity.swift
[293/380] Compiling LemmyKit LemmyApi+BlockInstance.swift
[294/380] Compiling LemmyKit LemmyApi+BlockPerson.swift
[295/380] Compiling LemmyKit LemmyApi+ChangePassword.swift
[296/380] Compiling LemmyKit LemmyApi+CreateComment.swift
[297/380] Compiling LemmyKit LemmyApi+CreateCommentReport.swift
[298/380] Compiling LemmyKit LemmyApi+CreateCommunity.swift
[299/380] Compiling LemmyKit LemmyApi+CreateCustomEmoji.swift
[300/380] Compiling LemmyKit LemmyApi+GetModlog.swift
[301/380] Compiling LemmyKit LemmyApi+GetPersonDetails+id.swift
[302/380] Compiling LemmyKit LemmyApi+GetPersonDetails+username.swift
[303/380] Compiling LemmyKit LemmyApi+GetPersonMentions.swift
[304/380] Compiling LemmyKit LemmyApi+GetPost.swift
[305/380] Compiling LemmyKit LemmyApi+GetPosts+Community.swift
[306/380] Compiling LemmyKit LemmyApi+GetPosts+ListingType.swift
[307/380] Compiling LemmyKit LemmyApi+GetPosts.swift
[308/380] Compiling LemmyKit LemmyApi+GetPrivateMessages.swift
[309/380] Compiling LemmyKit LemmyApi+GetRegistrationApplication.swift
[310/380] Compiling LemmyKit LemmyApi+GetReplies.swift
[311/380] Compiling LemmyKit LemmyApi+GetReportCount.swift
[312/380] Compiling LemmyKit LemmyApi+GetSite.swift
[313/380] Compiling LemmyKit LemmyApi+GetSiteMetadata.swift
[314/380] Compiling LemmyKit LemmyApi+GetUnreadCount.swift
[315/380] Compiling LemmyKit LemmyApi+GetUnreadRegistrationApplicationCount.swift
[316/380] Compiling LemmyKit LemmyApi+HideCommunity.swift
[317/380] Compiling LemmyKit LemmyApi+HidePost.swift
[318/380] Compiling LemmyKit LemmyApi+ImportSettings.swift
[319/380] Compiling LemmyKit LemmyApi+LeaveAdmin.swift
[320/380] Compiling LemmyKit LemmyApi+LikeComment.swift
[321/380] Compiling LemmyKit LemmyApi+LikePost.swift
[322/380] Compiling LemmyKit LemmyApi+ListAllMedia.swift
[323/380] Compiling LemmyKit LemmyApi+ListCommentLikes.swift
[324/380] Compiling LemmyKit LemmyApi+ListCommentReports.swift
[325/380] Compiling LemmyKit LemmyApi+ListCommunities.swift
[326/380] Compiling LemmyKit LemmyApi+ListLogins.swift
[327/380] Compiling LemmyKit LemmyApi+ListMedia.swift
[328/380] Compiling LemmyKit LemmyApi+ListPostLikes.swift
[329/380] Compiling LemmyKit LemmyApi+ListPostReports.swift
[330/380] Compiling LemmyKit LemmyApi+ListPrivateMessageReports.swift
[331/380] Compiling LemmyKit LemmyApi+ListRegistrationApplications.swift
[332/380] Compiling LemmyKit LemmyApi+EditSite.swift
[333/380] Compiling LemmyKit LemmyApi+ExportSettings.swift
[334/380] Compiling LemmyKit LemmyApi+FeaturePost.swift
[335/380] Compiling LemmyKit LemmyApi+FollowCommunity.swift
[336/380] Compiling LemmyKit LemmyApi+GenerateTotpSecret.swift
[337/380] Compiling LemmyKit LemmyApi+GetBannedPersons.swift
[338/380] Compiling LemmyKit LemmyApi+GetCaptcha.swift
[339/380] Compiling LemmyKit LemmyApi+GetComment.swift
[340/380] Compiling LemmyKit LemmyApi+GetComments+Community.swift
[341/380] Compiling LemmyKit LemmyApi+GetComments+ListingType.swift
[342/380] Compiling LemmyKit LemmyApi+GetComments+Parent.swift
[343/380] Compiling LemmyKit LemmyApi+GetComments+Post.swift
[344/380] Compiling LemmyKit LemmyApi+GetComments.swift
[345/380] Compiling LemmyKit LemmyApi+GetCommunity.swift
[346/380] Compiling LemmyKit LemmyApi+GetFederatedInstances.swift
[347/380] Compiling LemmyKit LemmyApi+GetImage.swift
[348/380] Compiling LemmyKit LemmyApi+LockPost.swift
[349/380] Compiling LemmyKit LemmyApi+Login.swift
[350/380] Compiling LemmyKit LemmyApi+Logout.swift
[351/380] Compiling LemmyKit LemmyApi+MarkAsRead.swift
[352/380] Compiling LemmyKit LemmyApi+MarkPostAsRead.swift
[353/380] Compiling LemmyKit LemmyApi+PasswordChangeAfterReset.swift
[354/380] Compiling LemmyKit LemmyApi+PasswordReset.swift
[355/380] Compiling LemmyKit LemmyApi+PurgeComment.swift
[356/380] Compiling LemmyKit LemmyApi+PurgeCommunity.swift
[357/380] Compiling LemmyKit LemmyApi+PurgePerson.swift
[358/380] Compiling LemmyKit LemmyApi+PurgePost.swift
[359/380] Compiling LemmyKit LemmyApi+Register.swift
[360/380] Compiling LemmyKit LemmyApi+RemoveComment.swift
[361/380] Compiling LemmyKit LemmyApi+RemoveCommunity.swift
[362/380] Compiling LemmyKit LemmyApi+RemovePost.swift
[363/380] Compiling LemmyKit LemmyApi+ReportPrivateMessage.swift
[364/380] Emitting module LemmyKit
[365/380] Compiling LemmyKit LemmyCredential.swift
[366/380] Compiling LemmyKit AuthorizationMiddleware.swift
[367/380] Compiling LemmyKit CommentPath.swift
[368/380] Compiling LemmyKit CommunityFilter.swift
[369/380] Compiling LemmyKit ContentFilter.swift
[370/380] Compiling LemmyKit Date+lemmyFormat.swift
[371/380] Compiling LemmyKit ImageFormat.swift
[372/380] Compiling LemmyKit LemmyDateTranscoder.swift
[373/380] Compiling LemmyKit LenientUrl.swift
[374/380] Compiling LemmyKit LikeStatus.swift
[375/380] Compiling LemmyKit MultipartFormData.swift
[376/380] Compiling LemmyKit URL+lenientString.swift
[377/380] Compiling LemmyKit UserAgentMiddleware.swift
[378/380] Compiling LemmyKit Types.swift
[379/380] Compiling LemmyKit Client.swift
[380/380] Compiling LemmyKit Server.swift
BUILD FAILURE 6.1 linux