The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LemmyKit, reference main (93cc81), with Swift 6.1 for Android on 24 Jul 2026 20:46:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[494/556] Compiling LemmyKit CommunityView.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
[495/556] Compiling LemmyKit Cursor.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
[496/556] Compiling LemmyKit FollowState.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
[497/556] Compiling LemmyKit MyUser.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
[498/556] Compiling LemmyKit NotificationData.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
[499/556] Compiling LemmyKit NotificationEntry.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
[500/556] Compiling LemmyKit NotificationKind.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
[501/556] Compiling LemmyKit NotificationView.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
[502/556] Compiling LemmyKit Page.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
[503/556] Compiling LemmyKit Person.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
[504/556] Compiling LemmyKit PersonActions.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
[505/556] Compiling LemmyKit PersonDetails.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
[506/556] Compiling LemmyKit PersonView.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
[507/556] Compiling LemmyKit Post.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
[508/556] Compiling LemmyKit PostActions.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
[509/556] Compiling LemmyKit PostDetail.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
[510/556] Emitting module LemmyKit
<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
[511/556] Compiling LemmyKit PiefedClient+PrivateMessages.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
[512/556] Compiling LemmyKit PiefedClient.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
[513/556] Compiling LemmyKit PiefedEntities.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
[514/556] Compiling LemmyKit PiefedError.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
[515/556] Compiling LemmyKit PiefedInboxEntities.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
[516/556] Compiling LemmyKit PiefedRequests.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
[517/556] Compiling LemmyKit PiefedViews.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
[518/556] Compiling LemmyKit PiefedWriteResponses.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
[519/556] 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
[520/556] 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
[521/556] 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
[522/556] 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
[523/556] 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
[524/556] 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
[525/556] 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
[526/556] 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
[527/556] 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
[528/556] 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
[529/556] 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
[530/556] 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
[531/556] 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
[532/556] 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
[533/556] 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
[534/556] Compiling LemmyKit PostOrComment.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[535/556] Compiling LemmyKit PostSort.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[536/556] Compiling LemmyKit PostView.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[537/556] Compiling LemmyKit PrivateMessage.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[538/556] Compiling LemmyKit PrivateMessageListItem.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[539/556] Compiling LemmyKit PrivateMessageView.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[540/556] Compiling LemmyKit ResolvedObject.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[541/556] Compiling LemmyKit SearchResults.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[542/556] Compiling LemmyKit SearchType.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[543/556] Compiling LemmyKit Site.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[544/556] Compiling LemmyKit SiteInfo.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[545/556] Compiling LemmyKit SiteWithMyUser.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[546/556] Compiling LemmyKit TimeRange.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[547/556] Compiling LemmyKit UnreadCounts.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[548/556] Compiling LemmyKit UploadedImage.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[549/556] Compiling LemmyKit VoteDirection.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[550/556] Compiling LemmyKit NeutralVocabulary.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[551/556] Compiling LemmyKit PiefedAuthEntities.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[552/556] Compiling LemmyKit PiefedClient+Actions.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[553/556] Compiling LemmyKit PiefedClient+Auth.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[554/556] Compiling LemmyKit PiefedClient+Comments.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[555/556] Compiling LemmyKit PiefedClient+Inbox.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[556/556] Compiling LemmyKit PiefedClient+Posts.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/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:365d9b14669f92fea0572234887def10439445c91d7e524c78a6579ad7294f11
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/21] Compiling _NumericsShims _NumericsShims.c
[1/21] Compiling parser.c
[2/21] Compiling writer.c
[3/21] Compiling reader.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] Compiling RealModule Float80+Real.swift
[10/88] Compiling RealModule Real.swift
[11/88] Compiling RealModule RealFunctions.swift
[12/88] Compiling RealModule RelaxedArithmetic.swift
[13/88] Compiling RealModule Float16+Real.swift
[14/88] Compiling OpenAPIKitCore OpenAPIReference.swift
[15/88] Compiling OpenAPIKitCore CodingPathError.swift
[16/88] Emitting module RealModule
[17/88] Compiling OpenAPIKitCore OpenAPIWarning.swift
[18/88] Compiling OpenAPIKitCore RequestDecodingError.swift
[19/88] Compiling OpenAPIKitCore OpenAPIDecodingErrors.swift
[20/88] Compiling OpenAPIKitCore OpenAPIError.swift
[21/89] Wrapping AST for RealModule for debugging
[28/93] Emitting module OpenAPIKitCore
[29/118] Compiling OpenAPIKitCore Optional+Zip.swift
[30/118] Compiling OpenAPIKitCore Result+Value.swift
[31/118] Compiling OpenAPIKitCore URL+Resolution.swift
[32/118] Compiling OpenAPIKitCore Validatable.swift
[33/118] Compiling OpenAPIKitCore JSONTypeFormat.swift
[34/118] Compiling OpenAPIKitCore Path.swift
[35/118] Compiling OpenAPIKitCore ResponseStatusCode.swift
[36/118] Compiling OpenAPIKitCore SecurityScheme.swift
[37/118] Compiling OpenAPIKitCore SharedOAuthFlows.swift
[38/118] Compiling OpenAPIKitCore URLTemplate+Parsing.swift
[39/118] Compiling OpenAPIKitCore URLTemplate.swift
[40/118] Compiling OpenAPIKitCore Container+DecodeURLAsString.swift
[41/118] Compiling Algorithms Partition.swift
[42/118] Compiling Algorithms Permutations.swift
[43/118] Compiling Algorithms Product.swift
[44/118] Compiling Algorithms Reductions.swift
[45/118] Compiling Algorithms Rotate.swift
[46/120] Compiling Yams YamlTagProviding.swift
[47/120] Compiling Algorithms Split.swift
[48/120] Compiling Algorithms Stride.swift
[49/120] Compiling Algorithms Suffix.swift
[50/120] Emitting module Yams
[51/120] Compiling ArgumentParserToolInfo ToolInfo.swift
[52/120] Emitting module ArgumentParserToolInfo
[56/121] Compiling Algorithms Compacted.swift
[57/121] Compiling Algorithms Cycle.swift
[58/121] Compiling Algorithms EitherSequence.swift
[59/121] Compiling Algorithms FirstNonNil.swift
[60/121] Compiling Algorithms FlattenCollection.swift
[61/121] Compiling Algorithms Grouped.swift
[62/121] Compiling Yams YamlError.swift
[65/121] Compiling Algorithms Joined.swift
[66/121] Compiling Algorithms Keyed.swift
[67/121] Compiling Algorithms MinMax.swift
[68/121] Compiling Algorithms RandomSample.swift
[72/125] Wrapping AST for ArgumentParserToolInfo for debugging
[76/125] Wrapping AST for OpenAPIKitCore for debugging
[80/176] Compiling ArgumentParser Flag.swift
[81/176] Compiling ArgumentParser NameSpecification.swift
[82/176] Compiling ArgumentParser Option.swift
[83/196] Compiling OpenAPIKit Callbacks.swift
[84/196] Compiling OpenAPIKit CodableVendorExtendable.swift
[85/196] Compiling ArgumentParser ArgumentSet.swift
[86/200] Compiling OpenAPIKit Components+Locatable.swift
[87/201] Compiling OpenAPIKit Components.swift
[88/201] Compiling OpenAPIKit Content.swift
[89/313] Compiling OpenAPIKit30 DocumentInfo.swift
[90/313] Compiling OpenAPIKit30 ResolvedDocument.swift
[91/313] Compiling OpenAPIKit30 Either+Convenience.swift
[92/313] Compiling OpenAPIKit30 Either+ExternallyDereferenceable.swift
[93/313] Compiling OpenAPIKit30 Either+LocallyDereferenceable.swift
[94/313] Compiling OpenAPIKit30 Either+Validatable.swift
[95/313] Compiling OpenAPIKit30 DocumentDecodingError.swift
[96/313] Compiling OpenAPIKit30 Link.swift
[97/313] Compiling OpenAPIKit30 Header.swift
[98/313] Compiling OpenAPIKit30 JSONReference+URIResolution.swift
[99/313] Compiling OpenAPIKit30 JSONReference.swift
[100/313] Compiling OpenAPIKit30 OperationDecodingError.swift
[101/313] Compiling OpenAPIKit30 PathDecodingError.swift
[102/313] Compiling OpenAPIKit30 ResponseDecodingError.swift
[103/313] Compiling OpenAPIKit30 Example.swift
[104/313] Compiling OpenAPIKit30 DereferencedSecurityRequirement.swift
[105/313] Compiling OpenAPIKit30 OAuthFlows.swift
[106/313] Compiling OpenAPIKit30 SecurityScheme.swift
[107/313] Compiling OpenAPIKit30 Server.swift
[108/313] Compiling OpenAPIKit30 Tag.swift
[109/313] Compiling OpenAPIKit30 URLTemplate+Validatable.swift
[110/313] Compiling OpenAPIKit30 Array+ExternallyDereferenceable.swift
[111/313] Compiling OpenAPIKit30 Container+DecodeURLAsString.swift
[112/313] Compiling OpenAPIKit30 Dictionary+ExternallyDereferenceable.swift
[113/322] Emitting module ArgumentParser
[119/328] Compiling OpenAPIKit30 ExternalDocumentation.swift
[126/329] Compiling OpenAPIKit30 Parameter.swift
[127/329] Compiling OpenAPIKit30 ParameterContext.swift
[128/329] Compiling OpenAPIKit30 ParameterContextLocation.swift
[129/329] Compiling OpenAPIKit30 Callbacks.swift
[130/329] Compiling OpenAPIKit30 CodableVendorExtendable.swift
[131/329] Compiling OpenAPIKit30 Components+JSONReference.swift
[132/329] Compiling OpenAPIKit30 Components+Locatable.swift
[133/329] Compiling OpenAPIKit30 Components.swift
[134/329] Compiling OpenAPIKit30 Content.swift
[135/329] Compiling OpenAPIKit30 ContentEncoding.swift
[136/329] Compiling OpenAPIKit30 DereferencedContent.swift
[137/329] Compiling OpenAPIKit30 DereferencedContentEncoding.swift
[138/329] Compiling OpenAPIKit30 Discriminator.swift
[138/329] Wrapping AST for Yams for debugging
[140/329] Emitting module Algorithms
[147/330] Compiling OpenAPIKit30 ExternalLoader.swift
[148/330] Compiling OpenAPIKit30 DereferencedHeader.swift
[151/330] Wrapping AST for Algorithms for debugging
[158/330] Compiling OpenAPIKit30 Optional+ExternallyDereferenceable.swift
[159/330] Compiling OpenAPIKit30 OrderedDictionary+ExternallyDereferenceable.swift
[160/330] Compiling OpenAPIKit30 OrderedDictionry+LocallyDereferenceable.swift
[161/330] Compiling OpenAPIKit30 Validation+Builtins.swift
[162/330] Compiling OpenAPIKit30 Validation.swift
[163/340] Emitting module OpenAPIKit30
[164/340] Compiling ArgumentParser AsyncCompletionsValidator.swift
[165/340] Compiling ArgumentParser CodingKeyValidator.swift
[166/340] Compiling ArgumentParser NonsenseFlagsValidator.swift
[167/340] Compiling ArgumentParser ParsableArgumentsValidation.swift
[168/340] Compiling ArgumentParser PositionalArgumentsValidator.swift
[169/340] Compiling ArgumentParser UniqueNamesValidator.swift
[171/340] Compiling OpenAPIKit30 OpenAPI.swift
[172/340] Compiling OpenAPIKit30 DereferencedOperation.swift
[173/340] Compiling OpenAPIKit30 Operation.swift
[174/340] Compiling OpenAPIKit30 ResolvedEndpoint.swift
[175/340] Compiling OpenAPIKit30 DereferencedParameter.swift
[176/340] Compiling OpenAPIKit30 DereferencedSchemaContext.swift
[190/340] Compiling OpenAPIKit30 DereferencedDocument.swift
[191/340] Compiling OpenAPIKit30 Document+URIResolution.swift
[192/340] Compiling OpenAPIKit30 Document.swift
[200/340] Compiling OpenAPIKit30 RuntimeExpression.swift
[201/340] Compiling OpenAPIKit30 SchemaProtocols.swift
[202/340] Compiling OpenAPIKit30 SwiftPrimitiveTypes+OpenAPI.swift
[203/340] Compiling OpenAPIKit30 DereferencedJSONSchema.swift
[204/340] Compiling OpenAPIKit30 JSONSchema+Combining.swift
[205/340] Compiling OpenAPIKit30 JSONSchema.swift
[224/340] Compiling OpenAPIKit Optional+ExternallyDereferenceable.swift
[225/340] Compiling OpenAPIKit OrderedDictionary+ExternallyDereferenceable.swift
[226/340] Compiling OpenAPIKit OrderedDictionry+LocallyDereferenceable.swift
[227/340] Compiling OpenAPIKit ReferenceValidations.swift
[238/340] Emitting module OpenAPIKit
[285/341] Wrapping AST for ArgumentParser for debugging
[291/341] Compiling OpenAPIKit Validation+Builtins.swift
[292/341] Compiling OpenAPIKit Validation.swift
[293/341] Compiling OpenAPIKit Validator+Convenience.swift
[294/341] Compiling OpenAPIKit Validator.swift
[295/341] Compiling OpenAPIKit XML.swift
[296/341] Compiling OpenAPIKit _CoreReExport.swift
[300/341] Compiling OpenAPIKit30 PathItem.swift
[301/341] Compiling OpenAPIKit30 ResolvedRoute.swift
[302/341] Compiling OpenAPIKit30 DereferencedRequest.swift
[303/341] Compiling OpenAPIKit30 Request.swift
[304/341] Compiling OpenAPIKit30 DereferencedResponse.swift
[305/341] Compiling OpenAPIKit30 Response.swift
[315/342] Wrapping AST for OpenAPIKit30 for debugging
[337/343] Wrapping AST for OpenAPIKit for debugging
[339/346] Compiling OpenAPIKitCompat Compat30To31.swift
[340/346] Emitting module OpenAPIKitCompat
[341/346] Compiling OpenAPIKitCompat Either+Map.swift
[342/347] Wrapping AST for OpenAPIKitCompat for debugging
[344/429] Compiling _OpenAPIGeneratorCore ReferenceStack.swift
[345/429] Compiling _OpenAPIGeneratorCore SafeNameGenerator.swift
[346/429] Compiling _OpenAPIGeneratorCore TypeAssigner.swift
[347/429] Compiling _OpenAPIGeneratorCore TypeLocation.swift
[348/429] Compiling _OpenAPIGeneratorCore TypeMatcher.swift
[349/429] Compiling _OpenAPIGeneratorCore TypeName.swift
[350/429] Compiling _OpenAPIGeneratorCore TypeUsage.swift
[351/429] Compiling _OpenAPIGeneratorCore isSchemaSupported.swift
[352/429] Compiling _OpenAPIGeneratorCore TypesFileTranslator.swift
[353/429] Compiling _OpenAPIGeneratorCore translateAPIProtocol.swift
[354/429] Compiling _OpenAPIGeneratorCore translateBoxedTypes.swift
[355/440] Compiling _OpenAPIGeneratorCore ResponseKind.swift
[356/440] Compiling _OpenAPIGeneratorCore TypedResponse.swift
[357/440] Compiling _OpenAPIGeneratorCore TypedResponseHeader.swift
[358/440] Compiling _OpenAPIGeneratorCore acceptHeaderContentTypes.swift
[359/440] Compiling _OpenAPIGeneratorCore translateResponse.swift
[360/440] Compiling _OpenAPIGeneratorCore translateResponseHeader.swift
[361/440] Compiling _OpenAPIGeneratorCore translateResponseOutcome.swift
[362/440] Compiling _OpenAPIGeneratorCore ServerTranslator.swift
[363/440] Compiling _OpenAPIGeneratorCore translateServerMethod.swift
[364/440] Compiling _OpenAPIGeneratorCore TranslatorProtocol.swift
[365/440] Compiling _OpenAPIGeneratorCore Builtins.swift
[366/440] Compiling _OpenAPIGeneratorCore translateClientMethod.swift
[367/440] Compiling _OpenAPIGeneratorCore translateAllAnyOneOf.swift
[368/440] Compiling _OpenAPIGeneratorCore translateArray.swift
[369/440] Compiling _OpenAPIGeneratorCore translateCodable.swift
[370/440] Compiling _OpenAPIGeneratorCore translateObjectStruct.swift
[371/440] Compiling _OpenAPIGeneratorCore translateRawEnum.swift
[372/440] Compiling _OpenAPIGeneratorCore translateRawRepresentableEnum.swift
[373/440] Compiling _OpenAPIGeneratorCore translateSchema.swift
[374/440] Compiling _OpenAPIGeneratorCore translateStructBlueprint.swift
[375/440] Compiling _OpenAPIGeneratorCore translateTypealias.swift
[376/440] Compiling _OpenAPIGeneratorCore Annotations.swift
[377/440] Compiling _OpenAPIGeneratorCore CommentExtensions.swift
[378/440] Emitting module _OpenAPIGeneratorCore
[379/440] Compiling _OpenAPIGeneratorCore translateComponentHeaders.swift
[380/440] Compiling _OpenAPIGeneratorCore translateComponentParameters.swift
[381/440] Compiling _OpenAPIGeneratorCore translateComponentRequestBodies.swift
[382/440] Compiling _OpenAPIGeneratorCore translateComponentResponses.swift
[383/440] Compiling _OpenAPIGeneratorCore translateComponents.swift
[384/440] Compiling _OpenAPIGeneratorCore translateOperations.swift
[385/440] Compiling _OpenAPIGeneratorCore translateSchemas.swift
[386/440] Compiling _OpenAPIGeneratorCore translateServers.swift
[387/440] Compiling _OpenAPIGeneratorCore translateServersVariables.swift
[388/440] Compiling _OpenAPIGeneratorCore TypeOverrides.swift
[389/440] Compiling _OpenAPIGeneratorCore YamlFileDiagnosticsCollector.swift
[390/440] Compiling _OpenAPIGeneratorCore Constants.swift
[391/440] Compiling _OpenAPIGeneratorCore DiscriminatorExtensions.swift
[392/440] Compiling _OpenAPIGeneratorCore SchemaOverrides.swift
[393/440] Compiling _OpenAPIGeneratorCore StructBlueprint.swift
[394/440] Compiling _OpenAPIGeneratorCore CodingStrategy.swift
[395/440] Compiling _OpenAPIGeneratorCore ContentInspector.swift
[396/440] Compiling _OpenAPIGeneratorCore ContentType.swift
[397/440] Compiling _OpenAPIGeneratorCore SchemaContent.swift
[398/440] Compiling _OpenAPIGeneratorCore FileTranslator+FeatureFlags.swift
[399/440] Compiling _OpenAPIGeneratorCore FileTranslator.swift
[400/440] Compiling _OpenAPIGeneratorCore MultipartAdditionalProperties.swift
[401/440] Compiling _OpenAPIGeneratorCore MultipartContent.swift
[402/440] Compiling _OpenAPIGeneratorCore MultipartContentInspector.swift
[403/440] Compiling _OpenAPIGeneratorCore translateMultipart.swift
[404/440] Compiling _OpenAPIGeneratorCore MultiplexTranslator.swift
[405/440] Compiling _OpenAPIGeneratorCore OperationDescription.swift
[406/440] Compiling _OpenAPIGeneratorCore TypedParameter.swift
[407/440] Compiling _OpenAPIGeneratorCore translateParameter.swift
[408/440] Compiling _OpenAPIGeneratorCore DeclarationRecursionDetector.swift
[409/440] Compiling _OpenAPIGeneratorCore RecursionDetector.swift
[410/440] Compiling _OpenAPIGeneratorCore TypedRequestBody.swift
[411/440] Compiling _OpenAPIGeneratorCore translateRequestBody.swift
[412/440] Compiling _OpenAPIGeneratorCore HTTPStatusCodes.swift
[413/440] Compiling _OpenAPIGeneratorCore DocumentFilter.swift
[414/440] Compiling _OpenAPIGeneratorCore FilteredDocument.swift
[415/440] Compiling _OpenAPIGeneratorCore ParsedOpenAPIRepresentation.swift
[416/440] Compiling _OpenAPIGeneratorCore RenderedSwiftRepresentation.swift
[417/440] Compiling _OpenAPIGeneratorCore StructuredSwiftRepresentation.swift
[418/440] Compiling _OpenAPIGeneratorCore ParserProtocol.swift
[419/440] Compiling _OpenAPIGeneratorCore YamsParser.swift
[420/440] Compiling _OpenAPIGeneratorCore validateDoc.swift
[421/440] Compiling _OpenAPIGeneratorCore PlatformChecks.swift
[422/440] Compiling _OpenAPIGeneratorCore RendererProtocol.swift
[423/440] Compiling _OpenAPIGeneratorCore TextBasedRenderer.swift
[424/440] Compiling _OpenAPIGeneratorCore ClientTranslator.swift
[425/440] Compiling _OpenAPIGeneratorCore Config.swift
[426/440] Compiling _OpenAPIGeneratorCore Diagnostics.swift
[427/440] Compiling _OpenAPIGeneratorCore DiagnosticsCollectorProvider.swift
[428/440] Compiling _OpenAPIGeneratorCore Errors.swift
[429/440] Compiling _OpenAPIGeneratorCore Foundation.swift
[430/440] Compiling _OpenAPIGeneratorCore OpenAPIKit.swift
[431/440] Compiling _OpenAPIGeneratorCore String.swift
[432/440] Compiling _OpenAPIGeneratorCore SwiftStandardLibrary.swift
[433/440] Compiling _OpenAPIGeneratorCore FeatureFlags.swift
[434/440] Compiling _OpenAPIGeneratorCore GeneratorMode.swift
[435/440] Compiling _OpenAPIGeneratorCore GeneratorPipeline.swift
[436/440] Compiling _OpenAPIGeneratorCore GeneratorPipelineStage.swift
[437/441] Wrapping AST for _OpenAPIGeneratorCore for debugging
[439/450] Compiling swift_openapi_generator PluginSource.swift
[440/451] Compiling swift_openapi_generator UserConfig.swift
[441/451] Compiling swift_openapi_generator Tool.swift
[442/451] Compiling swift_openapi_generator GenerateOptions+runGenerator.swift
[443/451] Compiling swift_openapi_generator GenerateCommand.swift
[444/451] Compiling swift_openapi_generator Extensions.swift
[445/451] Compiling swift_openapi_generator FilterCommand.swift
[446/451] Compiling swift_openapi_generator GenerateOptions.swift
[447/451] Emitting module swift_openapi_generator
[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/29] Compiling _NumericsShims _NumericsShims.c
[5/29] Compiling writer.c
[6/29] Compiling reader.c
[7/29] Compiling parser.c
[8/29] Compiling api.c
[9/29] Compiling emitter.c
[10/29] Write swift-version-24593BA9C3E375BF.txt
[11/29] Compiling scanner.c
[13/60] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[14/60] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[15/62] Compiling InternalCollectionsUtilities _SortedCollection.swift
[16/62] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[17/62] Emitting module ArgumentParserToolInfo
[19/63] Compiling InternalCollectionsUtilities Integer rank.swift
[20/63] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[21/63] Compiling InternalCollectionsUtilities UInt+reversed.swift
[21/63] Wrapping AST for ArgumentParserToolInfo for debugging
[23/63] Compiling HTTPTypes HTTPField.swift
[24/63] Compiling HTTPTypes HTTPFieldName.swift
[25/63] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[26/63] Compiling HTTPTypes ISOLatin1String.swift
[27/63] Compiling InternalCollectionsUtilities String+Padding.swift
[28/63] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[29/65] Emitting module RealModule
[30/66] Emitting module OpenAPIKitCore
[31/67] Emitting module Yams
[32/68] Compiling HTTPTypes NIOLock.swift
[35/68] Compiling HTTPTypes HTTPResponse.swift
[37/68] Compiling HTTPTypes HTTPParsedFields.swift
[38/68] Compiling HTTPTypes HTTPRequest.swift
[39/68] Compiling HTTPTypes HTTPRequest+URL.swift
[40/68] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[41/68] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[42/68] Compiling InternalCollectionsUtilities Span+Extras.swift
[43/68] Emitting module InternalCollectionsUtilities
[44/68] Emitting module HTTPTypes
[44/68] Wrapping AST for RealModule for debugging
[45/68] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[46/68] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[48/68] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[49/68] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[50/70] Compiling HTTPTypes HTTPFields.swift
[52/71] Wrapping AST for OpenAPIKitCore for debugging
[54/71] Wrapping AST for Yams for debugging
[57/109] Emitting module ArgumentParser
[58/110] Compiling ContainersPreview Drain+Map.swift
[59/110] Compiling ContainersPreview Drain+Reduce.swift
[60/110] Compiling ContainersPreview Drain.swift
[61/110] Compiling ContainersPreview Producer+Collect.swift
[62/110] Compiling ContainersPreview Producer+Filter.swift
[63/110] Emitting module ContainersPreview
[64/114] Compiling ContainersPreview Producer+Map.swift
[65/114] Compiling ContainersPreview Producer+Reduce.swift
[66/114] Compiling ContainersPreview Producer.swift
[67/114] Compiling ContainersPreview InputSpan.swift
[68/114] Compiling ContainersPreview MutableRef.swift
[69/114] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[70/114] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[71/114] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[72/114] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[73/114] Compiling ContainersPreview BorrowingSequence+Algorithms.swift
[74/114] Compiling ContainersPreview OutputSpan+Extras.swift
[75/114] Compiling ContainersPreview TemporaryAllocation.swift
[76/114] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[77/114] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[78/114] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[79/114] Compiling ContainersPreview Container+SpanwiseZip.swift
[80/114] Compiling ContainersPreview Container.swift
[81/114] Compiling ContainersPreview ContainerIterator.swift
[82/114] Compiling ContainersPreview DynamicContainer.swift
[83/114] Compiling ContainersPreview MutableContainer.swift
[84/114] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[85/114] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[86/114] Compiling ContainersPreview BorrowingSequence.swift
[87/114] Compiling ContainersPreview BidirectionalContainer.swift
[88/114] Compiling ContainersPreview Container+Filter.swift
[89/114] Compiling ContainersPreview PermutableContainer.swift
[90/114] Compiling ContainersPreview RandomAccessContainer.swift
[91/114] Compiling ContainersPreview RangeExpression2.swift
[92/114] Compiling ContainersPreview RangeReplaceableContainer.swift
[93/114] Compiling ContainersPreview Strideable+Limits.swift
[95/178] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Unkeyed.swift
[96/178] Compiling OpenAPIRuntime MultipartBoundaryGenerator.swift
[97/178] Compiling OpenAPIRuntime MultipartBytesToFramesSequence.swift
[98/178] Compiling OpenAPIRuntime MultipartFramesToBytesSequence.swift
[99/179] Wrapping AST for ArgumentParser for debugging
[101/220] Compiling DequeModule RigidDeque+Removals.swift
[102/220] Compiling DequeModule RigidDeque+Replacements.swift
[103/220] Compiling DequeModule RigidDeque+Testing.swift
[104/220] Compiling DequeModule RigidDeque.swift
[105/220] Compiling DequeModule UniqueDeque+Append.swift
[106/220] Compiling DequeModule UniqueDeque+Consumption.swift
[107/225] Compiling DequeModule UniqueDeque+Hashable.swift
[108/225] Compiling DequeModule UniqueDeque+Initializers.swift
[109/225] Compiling DequeModule UniqueDeque+Insertions.swift
[110/225] Compiling DequeModule UniqueDeque+Prepend.swift
[111/225] Compiling DequeModule UniqueDeque+Removals.swift
[112/225] Compiling DequeModule UniqueDeque+Container.swift
[113/225] Compiling DequeModule UniqueDeque+Deprecated.swift
[114/225] Compiling DequeModule UniqueDeque+Descriptions.swift
[115/225] Compiling DequeModule UniqueDeque+Equatable.swift
[116/225] Compiling DequeModule UniqueDeque+Experimental.swift
[117/225] Compiling DequeModule RigidDeque+Equatable.swift
[118/225] Compiling DequeModule RigidDeque+Experimental.swift
[119/225] Compiling DequeModule RigidDeque+Hashable.swift
[120/225] Compiling DequeModule RigidDeque+Initializers.swift
[121/225] Compiling DequeModule RigidDeque+Insertions.swift
[122/225] Compiling DequeModule RigidDeque+Prepend.swift
[123/225] Compiling DequeModule _DequeBuffer.swift
[124/225] Compiling DequeModule _DequeBufferHeader.swift
[125/225] Compiling DequeModule RigidDeque+Append.swift
[126/225] Compiling DequeModule RigidDeque+Consumption.swift
[127/225] Compiling DequeModule RigidDeque+Container.swift
[128/225] Compiling DequeModule RigidDeque+Descriptions.swift
[129/225] Emitting module OpenAPIKit30
[133/226] Compiling DequeModule Deque+Codable.swift
[134/226] Compiling DequeModule Deque+Collection.swift
[135/226] Compiling DequeModule Deque+CustomReflectable.swift
[136/226] Compiling DequeModule Deque+Descriptions.swift
[137/226] Compiling DequeModule Deque+Equatable.swift
[138/226] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[140/234] Compiling DequeModule Deque+Extras.swift
[141/234] Compiling DequeModule Deque+Hashable.swift
[142/234] Compiling DequeModule Deque+Testing.swift
[143/234] Compiling DequeModule Deque._Storage.swift
[144/234] Compiling DequeModule Deque._UnsafeHandle.swift
[145/234] Compiling DequeModule Deque.swift
[149/234] Emitting module OpenAPIKit
[150/235] Compiling OpenAPIRuntime ServerError.swift
[151/235] Compiling OpenAPIRuntime JSONLinesDecoding.swift
[152/235] Compiling OpenAPIRuntime JSONLinesEncoding.swift
[153/235] Compiling OpenAPIRuntime JSONSequenceDecoding.swift
[154/235] Compiling OpenAPIRuntime JSONSequenceEncoding.swift
[155/235] Compiling OpenAPIRuntime ServerSentEvents.swift
[156/235] Compiling OpenAPIRuntime ServerSentEventsDecoding.swift
[157/235] Compiling OpenAPIRuntime ServerSentEventsEncoding.swift
[158/235] Compiling OpenAPIRuntime AsyncSequenceCommon.swift
[159/235] Emitting module OpenAPIRuntime
[160/235] Compiling OpenAPIRuntime Acceptable.swift
[161/235] Compiling OpenAPIRuntime Base64EncodedData.swift
[162/235] Compiling OpenAPIRuntime ByteUtilities.swift
[163/235] Compiling OpenAPIRuntime ContentDisposition.swift
[164/235] Compiling OpenAPIRuntime CopyOnWriteBox.swift
[165/235] Compiling OpenAPIRuntime Lock.swift
[166/235] Compiling OpenAPIRuntime OpenAPIMIMEType.swift
[167/235] Compiling OpenAPIRuntime OpenAPIValue.swift
[168/235] Compiling OpenAPIRuntime PrettyStringConvertible.swift
[168/235] Wrapping AST for OpenAPIKit30 for debugging
[187/235] Compiling DequeModule UniqueDeque+Replacements.swift
[188/235] Compiling DequeModule UniqueDeque.swift
[189/235] Compiling DequeModule _DequeSlot.swift
[190/235] Compiling DequeModule _UnsafeDequeHandle.swift
[191/235] Compiling DequeModule _UnsafeDequeSegments.swift
[209/235] Wrapping AST for OpenAPIKit for debugging
[216/236] Emitting module OpenAPIKitCompat
[217/237] Emitting module DequeModule
[220/238] Emitting module Algorithms
[220/239] Wrapping AST for OpenAPIKitCompat for debugging
[223/239] Compiling OpenAPIRuntime URIValueFromNodeDecoder.swift
[224/239] Compiling OpenAPIRuntime URIEncoder.swift
[225/239] Compiling OpenAPIRuntime URIValueToNodeEncoder+Keyed.swift
[226/239] Compiling OpenAPIRuntime URIValueToNodeEncoder+Single.swift
[227/239] Compiling OpenAPIRuntime URIValueToNodeEncoder+Unkeyed.swift
[228/239] Compiling OpenAPIRuntime URIValueToNodeEncoder.swift
[229/239] Compiling OpenAPIRuntime URIParser.swift
[230/239] Compiling OpenAPIRuntime URISerializer.swift
[231/240] Wrapping AST for Algorithms for debugging
[233/248] Compiling OpenAPIURLSession HTTPBodyOutputStreamBridge.swift
[234/248] Compiling OpenAPIURLSession URLSessionTransport.swift
[235/248] Compiling OpenAPIURLSession URLSession+Extensions.swift
[236/248] Compiling OpenAPIURLSession Lock.swift
[237/248] Compiling OpenAPIURLSession BidirectionalStreamingURLSessionDelegate.swift
[238/248] Compiling OpenAPIURLSession BufferedStream.swift
[239/248] Emitting module OpenAPIURLSession
[241/249] Emitting module _OpenAPIGeneratorCore
[242/250] Wrapping AST for _OpenAPIGeneratorCore for debugging
[244/251] Emitting module swift_openapi_generator
[245/252] Wrapping AST for swift-openapi-generator for debugging
[246/252] Write Objects.LinkFileList
[247/252] 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/252] Running swift-openapi-generator
Swift OpenAPI Generator is running with the following configuration:
- OpenAPI document path: /host/spi-builder-workspace/Sources/LemmyKitV4Generated/openapi.yaml
- Configuration path: /host/spi-builder-workspace/Sources/LemmyKitV4Generated/openapi-generator-config.yaml
- Generator modes: types, client
- Access modifier: package
- 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/LemmyKitV4Generated/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.
[251/255] Compiling LemmyKitV4Generated Server.swift
[252/255] Compiling LemmyKitV4Generated Client.swift
[253/255] Compiling LemmyKitV4Generated Types.swift
[254/255] Compiling LemmyKitV4Generated Exports.swift
[255/255] Emitting module LemmyKitV4Generated
[257/422] Compiling LemmyKit SiteInfoPiefedMapping.swift
[258/422] Compiling LemmyKit SiteInfoV3Mapping.swift
[259/422] Compiling LemmyKit SiteInfoV4Mapping.swift
[260/422] Compiling LemmyKit SortMapping.swift
[261/422] Compiling LemmyKit SortPiefedMapping.swift
[262/422] Compiling LemmyKit UnreadCountsPiefedMapping.swift
[263/422] Compiling LemmyKit V3ActionSentinel.swift
[264/422] Compiling LemmyKit V3IDConversion.swift
[265/422] Compiling LemmyKit V4DateParsing.swift
[266/422] Compiling LemmyKit ApiVersionProbe.swift
[267/422] Compiling LemmyKit CommentSortType+Identifiable.swift
[268/422] Compiling LemmyKit CommentSortType+allCases.swift
[269/422] Compiling LemmyKit SortType+Identifiable.swift
[270/422] Compiling LemmyKit SortType+allCases.swift
[271/422] Compiling LemmyKit LemmyApi+AccountFeedsNeutral.swift
[272/422] Compiling LemmyKit LemmyApi+AddAdmin.swift
[273/422] Compiling LemmyKit LemmyApi+AddModToCommunity.swift
[274/422] Compiling LemmyKit LemmyApi+ApproveRegistrationApplication.swift
[275/422] Compiling LemmyKit LemmyApi+BanFromCommunity.swift
[276/422] Compiling LemmyKit LemmyApi+BanPerson.swift
[277/422] Compiling LemmyKit LemmyApi+BlockCommunity.swift
[278/422] Compiling LemmyKit LemmyApi+BlockCommunityNeutral.swift
[279/422] Compiling LemmyKit LemmyApi+BlockInstance.swift
[280/422] Compiling LemmyKit LemmyApi+BlockPerson.swift
[281/422] Compiling LemmyKit LemmyApi+GetUnreadCount.swift
[282/422] Compiling LemmyKit LemmyApi+GetUnreadRegistrationApplicationCount.swift
[283/422] Compiling LemmyKit LemmyApi+HideCommunity.swift
[284/422] Compiling LemmyKit LemmyApi+HidePost.swift
[285/422] Compiling LemmyKit LemmyApi+HidePostNeutral.swift
[286/422] Compiling LemmyKit LemmyApi+ImportSettings.swift
[287/422] Compiling LemmyKit LemmyApi+LeaveAdmin.swift
[288/422] Compiling LemmyKit LemmyApi+LikeComment.swift
[289/422] Compiling LemmyKit LemmyApi+LikePost.swift
[290/422] Compiling LemmyKit LemmyApi+ListAllMedia.swift
[291/422] Compiling LemmyKit LemmyApi+ListCommentLikes.swift
[292/422] Compiling LemmyKit LemmyApi+ListCommentReports.swift
[293/422] Compiling LemmyKit LemmyApi+ListCommunities.swift
[294/422] Compiling LemmyKit LemmyApi+ListCommunitiesNeutral.swift
[295/422] Compiling LemmyKit LemmyApi+ListLogins.swift
[296/422] Compiling LemmyKit LemmyApi+ListMedia.swift
[297/422] Compiling LemmyKit LemmyApi+ListNotificationsNeutral.swift
[298/422] Compiling LemmyKit LemmyApi+ListPersonContentNeutral.swift
[299/422] Compiling LemmyKit LemmyApi+ListPostLikes.swift
[300/422] Compiling LemmyKit LemmyApi+ListPostReports.swift
[301/422] Compiling LemmyKit LemmyApi+ListPrivateMessageReports.swift
[302/422] Compiling LemmyKit LemmyApi+ListRegistrationApplications.swift
[303/422] Compiling LemmyKit LemmyApi+LockPost.swift
[304/422] Compiling LemmyKit PersonPiefedMapping.swift
[305/422] Compiling LemmyKit PersonV3Mapping.swift
[306/422] Compiling LemmyKit PersonV4Mapping.swift
[307/422] Compiling LemmyKit PersonViewPiefedMapping.swift
[308/422] Compiling LemmyKit PersonViewV3Mapping.swift
[309/422] Compiling LemmyKit PersonViewV4Mapping.swift
[310/422] Compiling LemmyKit PiefedDateParsing.swift
[311/422] Compiling LemmyKit PostCommentCombinedV4Mapping.swift
[312/422] Compiling LemmyKit PostPiefedMapping.swift
[313/422] Compiling LemmyKit PostV3Mapping.swift
[314/422] Compiling LemmyKit PostV4Mapping.swift
[315/422] Compiling LemmyKit PostViewPiefedMapping.swift
[316/422] Compiling LemmyKit PostViewV3Mapping.swift
[317/422] Compiling LemmyKit PostViewV4Mapping.swift
[318/422] Compiling LemmyKit PrivateMessageNotificationV3Mapping.swift
[319/422] Compiling LemmyKit PrivateMessagePiefedMapping.swift
[320/422] Compiling LemmyKit PrivateMessageViewV3Mapping.swift
[321/422] Compiling LemmyKit PrivateMessageViewV4Mapping.swift
[322/422] Compiling LemmyKit ResolvedObjectPiefedMapping.swift
[323/422] Compiling LemmyKit ResolvedObjectV3Mapping.swift
[324/422] Compiling LemmyKit ResolvedObjectV4Mapping.swift
[325/422] Compiling LemmyKit SearchResultsPiefedMapping.swift
[326/422] Compiling LemmyKit SearchResultsV3Mapping.swift
[327/422] Compiling LemmyKit SearchResultsV4Mapping.swift
[328/491] Compiling LemmyKit LemmyApi+GetFederatedInstances.swift
[329/491] Compiling LemmyKit LemmyApi+GetImage.swift
[330/491] Compiling LemmyKit LemmyApi+GetModlog.swift
[331/491] Compiling LemmyKit LemmyApi+GetMyUserNeutral.swift
[332/491] Compiling LemmyKit LemmyApi+GetPersonDetails+id.swift
[333/491] Compiling LemmyKit LemmyApi+GetPersonDetails+username.swift
[334/491] Compiling LemmyKit LemmyApi+GetPersonDetailsNeutral.swift
[335/491] Compiling LemmyKit LemmyApi+GetPersonMentions.swift
[336/491] Compiling LemmyKit LemmyApi+GetPost.swift
[337/491] Compiling LemmyKit LemmyApi+GetPostNeutral.swift
[338/491] Compiling LemmyKit LemmyApi+GetPosts+Community.swift
[339/491] Compiling LemmyKit LemmyApi+GetPosts+ListingType.swift
[340/491] Compiling LemmyKit LemmyApi+GetPosts.swift
[341/491] Compiling LemmyKit LemmyApi+GetPostsNeutral.swift
[342/491] Compiling LemmyKit LemmyApi+GetPrivateMessages.swift
[343/491] Compiling LemmyKit LemmyApi+GetPrivateMessagesNeutral.swift
[344/491] Compiling LemmyKit LemmyApi+GetRegistrationApplication.swift
[345/491] Compiling LemmyKit LemmyApi+GetReplies.swift
[346/491] Compiling LemmyKit LemmyApi+GetReportCount.swift
[347/491] Compiling LemmyKit LemmyApi+GetSite.swift
[348/491] Compiling LemmyKit LemmyApi+GetSiteAndMyUserNeutral.swift
[349/491] Compiling LemmyKit LemmyApi+GetSiteMetadata.swift
[350/491] Compiling LemmyKit LemmyApi+GetSiteNeutral.swift
[351/491] Compiling LemmyKit LemmyApi+EditCommentNeutral.swift
[352/491] Compiling LemmyKit LemmyApi+EditCommunity.swift
[353/491] Compiling LemmyKit LemmyApi+EditCustomEmoji.swift
[354/491] Compiling LemmyKit LemmyApi+EditPost.swift
[355/491] Compiling LemmyKit LemmyApi+EditPostNeutral.swift
[356/491] Compiling LemmyKit LemmyApi+EditPrivateMessage.swift
[357/491] Compiling LemmyKit LemmyApi+EditSite.swift
[358/491] Compiling LemmyKit LemmyApi+ExportSettings.swift
[359/491] Compiling LemmyKit LemmyApi+FeaturePost.swift
[360/491] Compiling LemmyKit LemmyApi+FollowCommunity.swift
[361/491] Compiling LemmyKit LemmyApi+FollowCommunityNeutral.swift
[362/491] Compiling LemmyKit LemmyApi+GenerateTotpSecret.swift
[363/491] Compiling LemmyKit LemmyApi+GetBannedPersons.swift
[364/491] Compiling LemmyKit LemmyApi+GetCaptcha.swift
[365/491] Compiling LemmyKit LemmyApi+GetComment.swift
[366/491] Compiling LemmyKit LemmyApi+GetComments+Community.swift
[367/491] Compiling LemmyKit LemmyApi+GetComments+ListingType.swift
[368/491] Compiling LemmyKit LemmyApi+GetComments+Parent.swift
[369/491] Compiling LemmyKit LemmyApi+GetComments+Post.swift
[370/491] Compiling LemmyKit LemmyApi+GetComments.swift
[371/491] Compiling LemmyKit LemmyApi+GetCommentsNeutral.swift
[372/491] Compiling LemmyKit LemmyApi+GetCommunity.swift
[373/491] Compiling LemmyKit LemmyApi+GetCommunityNeutral.swift
[374/537] Compiling LemmyKit PostOrComment.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[375/537] Compiling LemmyKit PostSort.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[376/537] Compiling LemmyKit PostView.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[377/537] Compiling LemmyKit PrivateMessage.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[378/537] Compiling LemmyKit PrivateMessageListItem.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[379/537] Compiling LemmyKit PrivateMessageView.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[380/537] Compiling LemmyKit ResolvedObject.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[381/537] Compiling LemmyKit SearchResults.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[382/537] Compiling LemmyKit SearchType.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[383/537] Compiling LemmyKit Site.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[384/537] Compiling LemmyKit SiteInfo.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[385/537] Compiling LemmyKit SiteWithMyUser.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[386/537] Compiling LemmyKit TimeRange.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[387/537] Compiling LemmyKit UnreadCounts.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[388/537] Compiling LemmyKit UploadedImage.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[389/537] Compiling LemmyKit VoteDirection.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[390/537] Compiling LemmyKit NeutralVocabulary.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[391/537] Compiling LemmyKit PiefedAuthEntities.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[392/537] Compiling LemmyKit PiefedClient+Actions.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[393/537] Compiling LemmyKit PiefedClient+Auth.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[394/537] Compiling LemmyKit PiefedClient+Comments.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[395/537] Compiling LemmyKit PiefedClient+Inbox.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[396/537] Compiling LemmyKit PiefedClient+Posts.swift
/host/spi-builder-workspace/Sources/LemmyKit/Neutral/VoteDirection.swift:73:9: error: switch must be exhaustive
71 |     public static func fromV4(votedAt: Date?, isUpvote: Bool?) -> VoteDirection {
72 |         guard votedAt != nil else { return .none }
73 |         switch isUpvote {
   |         |- error: switch must be exhaustive
   |         `- note: add missing case: '.some(_)'
74 |         case true:
75 |             return .up
[397/537] Compiling LemmyKit ApiVersion.swift
[398/537] Compiling LemmyKit Comment.swift
[399/537] Compiling LemmyKit CommentActions.swift
[400/537] Compiling LemmyKit CommentSort.swift
[401/537] Compiling LemmyKit CommentView.swift
[402/537] Compiling LemmyKit Community.swift
[403/537] Compiling LemmyKit CommunityActions.swift
[404/537] Compiling LemmyKit CommunityView.swift
[405/537] Compiling LemmyKit Cursor.swift
[406/537] Compiling LemmyKit FollowState.swift
[407/537] Compiling LemmyKit MyUser.swift
[408/537] Compiling LemmyKit NotificationData.swift
[409/537] Compiling LemmyKit NotificationEntry.swift
[410/537] Compiling LemmyKit NotificationKind.swift
[411/537] Compiling LemmyKit NotificationView.swift
[412/537] Compiling LemmyKit Page.swift
[413/537] Compiling LemmyKit Person.swift
[414/537] Compiling LemmyKit PersonActions.swift
[415/537] Compiling LemmyKit PersonDetails.swift
[416/537] Compiling LemmyKit PersonView.swift
[417/537] Compiling LemmyKit Post.swift
[418/537] Compiling LemmyKit PostActions.swift
[419/537] Compiling LemmyKit PostDetail.swift
[420/537] 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 |
[421/537] 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 |
[422/537] 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 |
[423/537] Compiling LemmyKit LemmyApi+SaveCommentNeutral.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 |
[424/537] 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 |
[425/537] Compiling LemmyKit LemmyApi+SavePostNeutral.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 |
[426/537] 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 |
[427/537] Compiling LemmyKit LemmyApi+SaveUserSettingsNeutral.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 |
[428/537] 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 |
[429/537] Compiling LemmyKit LemmyApi+SearchNeutral.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 |
[430/537] 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 |
[431/537] Compiling LemmyKit LemmyApi+UnreadCountsNeutral.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 |
[432/537] 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 |
[433/537] 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 |
[434/537] Compiling LemmyKit LemmyApi+UploadImageNeutral.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 |
[435/537] 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 |
[436/537] 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 |
[437/537] Compiling LemmyKit LemmyApi+VoteCommentNeutral.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 |
[438/537] Compiling LemmyKit LemmyApi+VotePostNeutral.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 |
[439/537] 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 |
[440/537] 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 |
[441/537] 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 |
[442/537] Compiling LemmyKit LemmyCredential.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 |
[443/537] Compiling LemmyKit LemmyApi+Login.swift
[444/537] Compiling LemmyKit LemmyApi+LoginNeutral.swift
[445/537] Compiling LemmyKit LemmyApi+Logout.swift
[446/537] Compiling LemmyKit LemmyApi+MarkAsRead.swift
[447/537] Compiling LemmyKit LemmyApi+MarkNotificationNeutral.swift
[448/537] Compiling LemmyKit LemmyApi+MarkPostAsRead.swift
[449/537] Compiling LemmyKit LemmyApi+MarkPostAsReadNeutral.swift
[450/537] Compiling LemmyKit LemmyApi+PasswordChangeAfterReset.swift
[451/537] Compiling LemmyKit LemmyApi+PasswordReset.swift
[452/537] Compiling LemmyKit LemmyApi+ProfileImageNeutral.swift
[453/537] Compiling LemmyKit LemmyApi+PurgeComment.swift
[454/537] Compiling LemmyKit LemmyApi+PurgeCommunity.swift
[455/537] Compiling LemmyKit LemmyApi+PurgePerson.swift
[456/537] Compiling LemmyKit LemmyApi+PurgePost.swift
[457/537] Compiling LemmyKit LemmyApi+Register.swift
[458/537] Compiling LemmyKit LemmyApi+RegisterNeutral.swift
[459/537] Compiling LemmyKit LemmyApi+RemoveComment.swift
[460/537] Compiling LemmyKit LemmyApi+RemoveCommunity.swift
[461/537] Compiling LemmyKit LemmyApi+RemovePost.swift
[462/537] Compiling LemmyKit LemmyApi+ReportPrivateMessage.swift
[463/537] Compiling LemmyKit LemmyApi+ResolveCommentReport.swift
[464/537] Compiling LemmyKit LemmyApi+ResolveObject.swift
[465/537] Compiling LemmyKit LemmyApi+ResolveObjectNeutral.swift
[466/537] Emitting module LemmyKit
[467/537] Compiling LemmyKit CommentPiefedMapping.swift
[468/537] Compiling LemmyKit CommentReplyNotificationV3Mapping.swift
[469/537] Compiling LemmyKit CommentV3Mapping.swift
[470/537] Compiling LemmyKit CommentV4Mapping.swift
[471/537] Compiling LemmyKit CommentViewPiefedMapping.swift
[472/537] Compiling LemmyKit CommentViewV3Mapping.swift
[473/537] Compiling LemmyKit CommentViewV4Mapping.swift
[474/537] Compiling LemmyKit CommunityActionsV4Mapping.swift
[475/537] Compiling LemmyKit CommunityPiefedMapping.swift
[476/537] Compiling LemmyKit CommunityV3Mapping.swift
[477/537] Compiling LemmyKit CommunityV4Mapping.swift
[478/537] Compiling LemmyKit CommunityViewPiefedMapping.swift
[479/537] Compiling LemmyKit CommunityViewV3Mapping.swift
[480/537] Compiling LemmyKit CommunityViewV4Mapping.swift
[481/537] Compiling LemmyKit FollowStateMapping.swift
[482/537] Compiling LemmyKit MyUserPiefedMapping.swift
[483/537] Compiling LemmyKit MyUserV3Mapping.swift
[484/537] Compiling LemmyKit MyUserV4Mapping.swift
[485/537] Compiling LemmyKit NotificationPiefedMapping.swift
[486/537] Compiling LemmyKit NotificationV4Mapping.swift
[487/537] Compiling LemmyKit PageMapping.swift
[488/537] Compiling LemmyKit PersonActionsV4Mapping.swift
[489/537] Compiling LemmyKit PersonDetailsPiefedMapping.swift
[490/537] Compiling LemmyKit PersonMentionNotificationV3Mapping.swift
[491/537] Compiling LemmyKit LemmyApi+BlockPersonNeutral.swift
[492/537] Compiling LemmyKit LemmyApi+ChangePassword.swift
[493/537] Compiling LemmyKit LemmyApi+CreateComment.swift
[494/537] Compiling LemmyKit LemmyApi+CreateCommentNeutral.swift
[495/537] Compiling LemmyKit LemmyApi+CreateCommentReport.swift
[496/537] Compiling LemmyKit LemmyApi+CreateCommunity.swift
[497/537] Compiling LemmyKit LemmyApi+CreateCustomEmoji.swift
[498/537] Compiling LemmyKit LemmyApi+CreatePost.swift
[499/537] Compiling LemmyKit LemmyApi+CreatePostNeutral.swift
[500/537] Compiling LemmyKit LemmyApi+CreatePostReport.swift
[501/537] Compiling LemmyKit LemmyApi+CreatePrivateMessage.swift
[502/537] Compiling LemmyKit LemmyApi+CreatePrivateMessageNeutral.swift
[503/537] Compiling LemmyKit LemmyApi+CreateSite.swift
[504/537] Compiling LemmyKit LemmyApi+DeleteAccount.swift
[505/537] Compiling LemmyKit LemmyApi+DeleteComment.swift
[506/537] Compiling LemmyKit LemmyApi+DeleteCommentNeutral.swift
[507/537] Compiling LemmyKit LemmyApi+DeleteCommunity.swift
[508/537] Compiling LemmyKit LemmyApi+DeleteCustomEmoji.swift
[509/537] Compiling LemmyKit LemmyApi+DeleteImage.swift
[510/537] Compiling LemmyKit LemmyApi+DeletePost.swift
[511/537] Compiling LemmyKit LemmyApi+DeletePostNeutral.swift
[512/537] Compiling LemmyKit LemmyApi+DeletePrivateMessage.swift
[513/537] Compiling LemmyKit LemmyApi+DistinguishComment.swift
[514/537] Compiling LemmyKit LemmyApi+EditComment.swift
[515/537] Compiling LemmyKit PiefedClient+PrivateMessages.swift
[516/537] Compiling LemmyKit PiefedClient.swift
[517/537] Compiling LemmyKit PiefedEntities.swift
[518/537] Compiling LemmyKit PiefedError.swift
[519/537] Compiling LemmyKit PiefedInboxEntities.swift
[520/537] Compiling LemmyKit PiefedRequests.swift
[521/537] Compiling LemmyKit PiefedViews.swift
[522/537] Compiling LemmyKit PiefedWriteResponses.swift
[523/537] Compiling LemmyKit AuthorizationMiddleware.swift
[524/537] Compiling LemmyKit CommentPath.swift
[525/537] Compiling LemmyKit CommunityFilter.swift
[526/537] Compiling LemmyKit ContentFilter.swift
[527/537] Compiling LemmyKit Date+lemmyFormat.swift
[528/537] Compiling LemmyKit ImageFormat.swift
[529/537] Compiling LemmyKit LemmyDateTranscoder.swift
[530/537] Compiling LemmyKit LenientUrl.swift
[531/537] Compiling LemmyKit LikeStatus.swift
[532/537] Compiling LemmyKit MultipartFormData.swift
[533/537] Compiling LemmyKit URL+lenientString.swift
[534/537] Compiling LemmyKit UserAgentMiddleware.swift
[535/537] Compiling LemmyKit Types.swift
[536/537] Compiling LemmyKit Client.swift
[537/537] Compiling LemmyKit Server.swift
BUILD FAILURE 6.1 android