Build Information
Failed to build LemmyKit, reference 0.5.1 (15270b), with Swift 6.2 for Android on 14 Jul 2026 19:10:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: e8bafa5c5d5b3cc8a20258ddf060ad6c89f46bf9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shadone/LemmyKit.git
Reference: 0.5.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/shadone/LemmyKit
* tag 0.5.1 -> FETCH_HEAD
HEAD is now at 15270b1 docs: changelog for 0.5.1
Submodule path 'Lemmy-OpenAPI-Spec': checked out '3b7fe7ef1f5001160e69a0197130e846b25a7695'
Submodule 'Lemmy-OpenAPI-Spec' (https://github.com/shadone/Lemmy-OpenAPI-Spec) registered for path 'Lemmy-OpenAPI-Spec'
Cloning into '/host/spi-builder-workspace/Lemmy-OpenAPI-Spec'...
Cloned https://github.com/shadone/LemmyKit.git
Revision (git rev-parse @):
15270b1be05705d211b66b8c617c025e9d51aea4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/shadone/LemmyKit.git at 0.5.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/shadone/LemmyKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:3f0849bce0d177c252f57ff0847fffe59d625aee973279c71a52a43c740d3c90
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-openapi-urlsession
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-openapi-generator
[1/1168] Fetching swift-openapi-urlsession
[153/7884] Fetching swift-openapi-urlsession, swift-openapi-runtime
Fetched https://github.com/apple/swift-openapi-urlsession from cache (0.46s)
[3291/6716] Fetching swift-openapi-runtime
Fetched https://github.com/apple/swift-openapi-runtime from cache (0.52s)
[1/17851] Fetching swift-openapi-generator
Fetched https://github.com/apple/swift-openapi-generator from cache (0.89s)
Computing version for https://github.com/apple/swift-openapi-urlsession
Computed https://github.com/apple/swift-openapi-urlsession at 1.3.1 (1.85s)
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/apple/swift-http-types
[1/1219] Fetching swift-http-types
[1220/27207] Fetching swift-http-types, swift-collections
Fetched https://github.com/apple/swift-http-types from cache (0.99s)
Fetched https://github.com/apple/swift-collections from cache (1.00s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.12.0 (1.17s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.6.0 (0.16s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.6.0 (0.26s)
Computing version for https://github.com/apple/swift-openapi-generator
Computed https://github.com/apple/swift-openapi-generator at 1.13.0 (0.22s)
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/mattpolzin/OpenAPIKit
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jpsim/Yams
[1/6076] Fetching swift-algorithms
[245/24100] Fetching swift-algorithms, swift-argument-parser
[6919/35947] Fetching swift-algorithms, swift-argument-parser, yams
Fetched https://github.com/jpsim/Yams from cache (1.05s)
[1/161436] Fetching openapikit
Fetched https://github.com/apple/swift-algorithms from cache (5.44s)
Fetched https://github.com/apple/swift-argument-parser from cache (5.45s)
Fetched https://github.com/mattpolzin/OpenAPIKit from cache (5.50s)
Computing version for https://github.com/mattpolzin/OpenAPIKit
Computed https://github.com/mattpolzin/OpenAPIKit at 6.2.0 (6.20s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (1.27s)
Fetching https://github.com/apple/swift-numerics.git
[1/6441] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.53s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.68s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.15s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 6.2.2 (0.15s)
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.12.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 6.2.2
Creating working copy for https://github.com/apple/swift-openapi-urlsession
Working copy of https://github.com/apple/swift-openapi-urlsession resolved at 1.3.1
Creating working copy for https://github.com/mattpolzin/OpenAPIKit
Working copy of https://github.com/mattpolzin/OpenAPIKit resolved at 6.2.0
Creating working copy for https://github.com/apple/swift-openapi-generator
Working copy of https://github.com/apple/swift-openapi-generator resolved at 1.13.0
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.6.0
[0/32] Write sources
[11/32] Compiling _NumericsShims _NumericsShims.c
[12/32] Compiling reader.c
[13/32] Compiling parser.c
[14/32] Compiling writer.c
[15/32] Compiling api.c
[16/32] Compiling emitter.c
[17/32] Write swift-version--11D90AFD9DD3AB2.txt
[18/32] Compiling scanner.c
[20/98] Emitting module OpenAPIKitCore
[21/102] Compiling OpenAPIKitCore JSONTypeFormat.swift
[22/102] Compiling OpenAPIKitCore Path.swift
[23/102] Compiling OpenAPIKitCore ResponseStatusCode.swift
[24/102] Compiling OpenAPIKitCore SecurityScheme.swift
[27/104] Compiling RealModule RealFunctions.swift
[28/105] Compiling OpenAPIKitCore CodingPathError.swift
[29/105] Compiling OpenAPIKitCore DecodingErrorExtensions.swift
[30/105] Compiling OpenAPIKitCore DiggingError.swift
[31/105] Compiling OpenAPIKitCore EitherDecodeNoTypesMatchedErrorExtensions.swift
[32/105] Compiling OpenAPIKitCore GenericError.swift
[33/105] Compiling RealModule Float16+Real.swift
[34/105] Compiling RealModule RelaxedArithmetic.swift
[35/105] Compiling RealModule Float80+Real.swift
[37/105] Compiling OpenAPIKitCore AnyCodable+Validatable.swift
[38/105] Compiling RealModule Real.swift
[41/105] Emitting module RealModule
[44/106] Wrapping AST for RealModule for debugging
[46/131] Compiling ArgumentParserToolInfo ToolInfo.swift
[47/131] Emitting module ArgumentParserToolInfo
[48/132] Wrapping AST for ArgumentParserToolInfo for debugging
[50/179] Compiling ArgumentParser ArgumentDiscussion.swift
[51/179] Compiling ArgumentParser ArgumentHelp.swift
[52/179] Compiling ArgumentParser ParentCommand.swift
[53/182] Compiling ArgumentParser ArgumentVisibility.swift
[54/182] Compiling ArgumentParser CompletionKind.swift
[55/182] Compiling ArgumentParser Errors.swift
[56/182] Compiling ArgumentParser Flag.swift
[57/182] Compiling ArgumentParser SplitArguments.swift
[58/182] Compiling ArgumentParser DumpHelpGenerator.swift
[59/182] Compiling ArgumentParser HelpCommand.swift
[60/182] Compiling ArgumentParser HelpGenerator.swift
[61/182] Compiling ArgumentParser ZshCompletionsGenerator.swift
[62/182] Compiling ArgumentParser Argument.swift
[66/182] Compiling ArgumentParser Name.swift
[67/182] Compiling ArgumentParser Parsed.swift
[68/182] Compiling ArgumentParser ParsedValues.swift
[69/182] Compiling ArgumentParser ParserError.swift
[70/182] Compiling ArgumentParser ParsableCommand.swift
[71/182] Compiling ArgumentParser ArgumentDecoder.swift
[72/182] Compiling ArgumentParser ArgumentDefinition.swift
[73/182] Compiling ArgumentParser EnumerableFlag.swift
[74/182] Compiling ArgumentParser ExpressibleByArgument.swift
[75/182] Compiling ArgumentParser ParsableArguments.swift
[76/182] Compiling ArgumentParser Option.swift
[77/182] Compiling ArgumentParser OptionGroup.swift
[78/182] Compiling ArgumentParser BashCompletionsGenerator.swift
[79/182] Compiling ArgumentParser CompletionsGenerator.swift
[80/182] Compiling ArgumentParser FishCompletionsGenerator.swift
[82/182] Compiling Algorithms Trim.swift
[83/182] Compiling Algorithms Unique.swift
[84/182] Compiling Algorithms Windows.swift
[85/182] Compiling ArgumentParser InputOrigin.swift
[93/183] Compiling ArgumentParser AsyncParsableCommand.swift
[94/183] Compiling ArgumentParser CommandConfiguration.swift
[106/183] Emitting module Yams
[108/183] Compiling ArgumentParser NameSpecification.swift
[114/184] Wrapping AST for OpenAPIKitCore for debugging
[120/245] Compiling OpenAPIKit30 Content.swift
[121/245] Compiling OpenAPIKit30 ContentEncoding.swift
[122/245] Compiling OpenAPIKit30 DereferencedContent.swift
[122/322] Wrapping AST for Yams for debugging
[124/325] Compiling OpenAPIKit30 RuntimeExpression.swift
[125/325] Compiling OpenAPIKit30 SchemaProtocols.swift
[126/325] Compiling OpenAPIKit30 SwiftPrimitiveTypes+OpenAPI.swift
[127/325] Compiling OpenAPIKit30 DereferencedJSONSchema.swift
[128/325] Compiling OpenAPIKit30 JSONSchema+Combining.swift
[129/325] Compiling OpenAPIKit30 JSONSchema.swift
[130/331] Compiling OpenAPIKit30 Either+LocallyDereferenceable.swift
[131/331] Compiling OpenAPIKit30 Either+Validatable.swift
[132/331] Compiling OpenAPIKit30 DocumentDecodingError.swift
[133/331] Compiling OpenAPIKit30 Callbacks.swift
[134/331] Compiling OpenAPIKit30 CodableVendorExtendable.swift
[135/331] Compiling OpenAPIKit30 Components+JSONReference.swift
[136/331] Compiling OpenAPIKit30 Components+Locatable.swift
[141/331] Compiling OpenAPIKit30 JSONReference+URIResolution.swift
[142/331] Compiling OpenAPIKit30 JSONReference.swift
[143/331] Compiling OpenAPIKit30 Link.swift
[144/331] Compiling OpenAPIKit30 OpenAPI.swift
[145/331] Compiling OpenAPIKit30 DereferencedOperation.swift
[146/331] Compiling OpenAPIKit30 Operation.swift
[147/331] Emitting module OpenAPIKit
[148/341] Compiling OpenAPIKit30 DereferencedDocument.swift
[149/341] Compiling OpenAPIKit30 Document+URIResolution.swift
[150/341] Compiling OpenAPIKit30 Document.swift
[151/341] Compiling OpenAPIKit30 DocumentInfo.swift
[152/341] Compiling OpenAPIKit30 ResolvedDocument.swift
[153/341] Compiling OpenAPIKit30 Either+Convenience.swift
[154/341] Compiling OpenAPIKit30 Either+ExternallyDereferenceable.swift
[155/341] Emitting module ArgumentParser
[156/341] Compiling OpenAPIKit30 ResolvedEndpoint.swift
[157/341] Compiling OpenAPIKit30 DereferencedParameter.swift
[158/341] Compiling OpenAPIKit30 DereferencedSchemaContext.swift
[159/341] Compiling OpenAPIKit30 Parameter.swift
[160/341] Compiling OpenAPIKit30 ParameterContext.swift
[161/341] Compiling OpenAPIKit30 ParameterContextLocation.swift
[162/341] Compiling ArgumentParser AsyncCompletionsValidator.swift
[163/341] Compiling ArgumentParser CodingKeyValidator.swift
[164/341] Compiling ArgumentParser NonsenseFlagsValidator.swift
[165/341] Compiling ArgumentParser ParsableArgumentsValidation.swift
[166/341] Compiling ArgumentParser PositionalArgumentsValidator.swift
[167/341] Compiling ArgumentParser UniqueNamesValidator.swift
[168/341] Compiling OpenAPIKit30 DereferencedSecurityRequirement.swift
[169/341] Compiling OpenAPIKit30 OAuthFlows.swift
[170/341] Compiling OpenAPIKit30 SecurityScheme.swift
[171/341] Compiling OpenAPIKit30 Server.swift
[172/341] Compiling OpenAPIKit30 Tag.swift
[173/341] Compiling OpenAPIKit30 URLTemplate+Validatable.swift
[174/341] Compiling OpenAPIKit30 Array+ExternallyDereferenceable.swift
[175/341] Compiling OpenAPIKit SecurityScheme.swift
[176/341] Compiling OpenAPIKit Server.swift
[177/350] Emitting module Algorithms
[178/351] Wrapping AST for Algorithms for debugging
[180/351] Compiling OpenAPIKit30 PathDecodingError.swift
[181/351] Compiling OpenAPIKit30 ResponseDecodingError.swift
[182/351] Compiling OpenAPIKit30 Example.swift
[183/351] Compiling OpenAPIKit30 ExternalDocumentation.swift
[184/351] Compiling OpenAPIKit30 ExternalLoader.swift
[185/351] Compiling OpenAPIKit30 DereferencedHeader.swift
[186/351] Compiling OpenAPIKit30 Header.swift
[187/351] Compiling OpenAPIKit30 Components.swift
[191/351] Compiling OpenAPIKit30 DereferencedContentEncoding.swift
[192/351] Compiling OpenAPIKit30 Discriminator.swift
[193/351] Compiling OpenAPIKit30 OperationDecodingError.swift
[194/352] Wrapping AST for ArgumentParser for debugging
[201/352] Compiling OpenAPIKit30 Optional+ExternallyDereferenceable.swift
[202/352] Compiling OpenAPIKit30 OrderedDictionary+ExternallyDereferenceable.swift
[203/352] Compiling OpenAPIKit30 OrderedDictionry+LocallyDereferenceable.swift
[204/352] Compiling OpenAPIKit30 Validation+Builtins.swift
[205/352] Compiling OpenAPIKit30 Validation.swift
[216/352] Emitting module OpenAPIKit30
[232/352] Compiling OpenAPIKit30 Validator+Convenience.swift
[233/352] Compiling OpenAPIKit30 Validator.swift
[234/352] Compiling OpenAPIKit30 XML.swift
[235/352] Compiling OpenAPIKit30 _CoreReExport.swift
[240/352] Compiling OpenAPIKit Validation+Builtins.swift
[241/352] Compiling OpenAPIKit Validation.swift
[242/352] Compiling OpenAPIKit Validator+Convenience.swift
[243/352] Compiling OpenAPIKit Validator.swift
[244/352] Compiling OpenAPIKit XML.swift
[245/352] Compiling OpenAPIKit _CoreReExport.swift
[271/352] Compiling OpenAPIKit30 PathItem.swift
[272/352] Compiling OpenAPIKit30 ResolvedRoute.swift
[273/352] Compiling OpenAPIKit30 DereferencedRequest.swift
[274/352] Compiling OpenAPIKit30 Request.swift
[275/352] Compiling OpenAPIKit30 DereferencedResponse.swift
[276/352] Compiling OpenAPIKit30 Response.swift
[306/353] Wrapping AST for OpenAPIKit30 for debugging
[348/354] Wrapping AST for OpenAPIKit for debugging
[350/357] Compiling OpenAPIKitCompat Either+Map.swift
[351/357] Compiling OpenAPIKitCompat Compat30To31.swift
[352/357] Emitting module OpenAPIKitCompat
[353/358] Wrapping AST for OpenAPIKitCompat for debugging
[355/440] Compiling _OpenAPIGeneratorCore Config.swift
[356/440] Compiling _OpenAPIGeneratorCore Diagnostics.swift
[357/440] Compiling _OpenAPIGeneratorCore DiagnosticsCollectorProvider.swift
[358/440] Compiling _OpenAPIGeneratorCore Errors.swift
[359/440] Compiling _OpenAPIGeneratorCore Foundation.swift
[360/440] Compiling _OpenAPIGeneratorCore OpenAPIKit.swift
[361/440] Compiling _OpenAPIGeneratorCore String.swift
[362/440] Compiling _OpenAPIGeneratorCore SwiftStandardLibrary.swift
[363/440] Compiling _OpenAPIGeneratorCore FeatureFlags.swift
[364/440] Compiling _OpenAPIGeneratorCore GeneratorMode.swift
[365/440] Compiling _OpenAPIGeneratorCore GeneratorPipeline.swift
[366/440] Compiling _OpenAPIGeneratorCore GeneratorPipelineStage.swift
[367/440] Emitting module _OpenAPIGeneratorCore
[368/451] Compiling _OpenAPIGeneratorCore ResponseKind.swift
[369/451] Compiling _OpenAPIGeneratorCore TypedResponse.swift
[370/451] Compiling _OpenAPIGeneratorCore TypedResponseHeader.swift
[371/451] Compiling _OpenAPIGeneratorCore acceptHeaderContentTypes.swift
[372/451] Compiling _OpenAPIGeneratorCore translateResponse.swift
[373/451] Compiling _OpenAPIGeneratorCore translateResponseHeader.swift
[374/451] Compiling _OpenAPIGeneratorCore translateResponseOutcome.swift
[375/451] Compiling _OpenAPIGeneratorCore ServerTranslator.swift
[376/451] Compiling _OpenAPIGeneratorCore translateServerMethod.swift
[377/451] Compiling _OpenAPIGeneratorCore TranslatorProtocol.swift
[378/451] Compiling _OpenAPIGeneratorCore Builtins.swift
[379/451] Compiling _OpenAPIGeneratorCore ReferenceStack.swift
[380/451] Compiling _OpenAPIGeneratorCore SafeNameGenerator.swift
[381/451] Compiling _OpenAPIGeneratorCore TypeAssigner.swift
[382/451] Compiling _OpenAPIGeneratorCore TypeLocation.swift
[383/451] Compiling _OpenAPIGeneratorCore TypeMatcher.swift
[384/451] Compiling _OpenAPIGeneratorCore TypeName.swift
[385/451] Compiling _OpenAPIGeneratorCore TypeUsage.swift
[386/451] Compiling _OpenAPIGeneratorCore isSchemaSupported.swift
[387/451] Compiling _OpenAPIGeneratorCore TypesFileTranslator.swift
[388/451] Compiling _OpenAPIGeneratorCore translateAPIProtocol.swift
[389/451] Compiling _OpenAPIGeneratorCore translateBoxedTypes.swift
[390/451] Compiling _OpenAPIGeneratorCore translateClientMethod.swift
[391/451] Compiling _OpenAPIGeneratorCore translateAllAnyOneOf.swift
[392/451] Compiling _OpenAPIGeneratorCore translateArray.swift
[393/451] Compiling _OpenAPIGeneratorCore translateCodable.swift
[394/451] Compiling _OpenAPIGeneratorCore translateObjectStruct.swift
[395/451] Compiling _OpenAPIGeneratorCore translateRawEnum.swift
[396/451] Compiling _OpenAPIGeneratorCore translateRawRepresentableEnum.swift
[397/451] Compiling _OpenAPIGeneratorCore translateSchema.swift
[398/451] Compiling _OpenAPIGeneratorCore translateStructBlueprint.swift
[399/451] Compiling _OpenAPIGeneratorCore translateTypealias.swift
[400/451] Compiling _OpenAPIGeneratorCore Annotations.swift
[401/451] Compiling _OpenAPIGeneratorCore CommentExtensions.swift
[402/451] Compiling _OpenAPIGeneratorCore Constants.swift
[403/451] Compiling _OpenAPIGeneratorCore DiscriminatorExtensions.swift
[404/451] Compiling _OpenAPIGeneratorCore SchemaOverrides.swift
[405/451] Compiling _OpenAPIGeneratorCore StructBlueprint.swift
[406/451] Compiling _OpenAPIGeneratorCore CodingStrategy.swift
[407/451] Compiling _OpenAPIGeneratorCore ContentInspector.swift
[408/451] Compiling _OpenAPIGeneratorCore ContentType.swift
[409/451] Compiling _OpenAPIGeneratorCore SchemaContent.swift
[410/451] Compiling _OpenAPIGeneratorCore FileTranslator+FeatureFlags.swift
[411/451] Compiling _OpenAPIGeneratorCore FileTranslator.swift
[412/451] Compiling _OpenAPIGeneratorCore MultipartAdditionalProperties.swift
[413/451] Compiling _OpenAPIGeneratorCore MultipartContent.swift
[414/451] Compiling _OpenAPIGeneratorCore translateComponentHeaders.swift
[415/451] Compiling _OpenAPIGeneratorCore translateComponentParameters.swift
[416/451] Compiling _OpenAPIGeneratorCore translateComponentRequestBodies.swift
[417/451] Compiling _OpenAPIGeneratorCore translateComponentResponses.swift
[418/451] Compiling _OpenAPIGeneratorCore translateComponents.swift
[419/451] Compiling _OpenAPIGeneratorCore translateOperations.swift
[420/451] Compiling _OpenAPIGeneratorCore translateSchemas.swift
[421/451] Compiling _OpenAPIGeneratorCore translateServers.swift
[422/451] Compiling _OpenAPIGeneratorCore translateServersVariables.swift
[423/451] Compiling _OpenAPIGeneratorCore TypeOverrides.swift
[424/451] Compiling _OpenAPIGeneratorCore YamlFileDiagnosticsCollector.swift
[425/451] Compiling _OpenAPIGeneratorCore MultipartContentInspector.swift
[426/451] Compiling _OpenAPIGeneratorCore translateMultipart.swift
[427/451] Compiling _OpenAPIGeneratorCore MultiplexTranslator.swift
[428/451] Compiling _OpenAPIGeneratorCore OperationDescription.swift
[429/451] Compiling _OpenAPIGeneratorCore TypedParameter.swift
[430/451] Compiling _OpenAPIGeneratorCore translateParameter.swift
[431/451] Compiling _OpenAPIGeneratorCore DeclarationRecursionDetector.swift
[432/451] Compiling _OpenAPIGeneratorCore RecursionDetector.swift
[433/451] Compiling _OpenAPIGeneratorCore TypedRequestBody.swift
[434/451] Compiling _OpenAPIGeneratorCore translateRequestBody.swift
[435/451] Compiling _OpenAPIGeneratorCore HTTPStatusCodes.swift
[436/451] Compiling _OpenAPIGeneratorCore DocumentFilter.swift
[437/451] Compiling _OpenAPIGeneratorCore FilteredDocument.swift
[438/451] Compiling _OpenAPIGeneratorCore ParsedOpenAPIRepresentation.swift
[439/451] Compiling _OpenAPIGeneratorCore RenderedSwiftRepresentation.swift
[440/451] Compiling _OpenAPIGeneratorCore StructuredSwiftRepresentation.swift
[441/451] Compiling _OpenAPIGeneratorCore ParserProtocol.swift
[442/451] Compiling _OpenAPIGeneratorCore YamsParser.swift
[443/451] Compiling _OpenAPIGeneratorCore validateDoc.swift
[444/451] Compiling _OpenAPIGeneratorCore PlatformChecks.swift
[445/451] Compiling _OpenAPIGeneratorCore RendererProtocol.swift
[446/451] Compiling _OpenAPIGeneratorCore TextBasedRenderer.swift
[447/451] Compiling _OpenAPIGeneratorCore ClientTranslator.swift
[448/452] Wrapping AST for _OpenAPIGeneratorCore for debugging
[450/461] Compiling swift_openapi_generator PluginSource.swift
[451/462] Compiling swift_openapi_generator Tool.swift
[452/462] Emitting module swift_openapi_generator
[453/462] Compiling swift_openapi_generator GenerateCommand.swift
[454/462] Compiling swift_openapi_generator UserConfig.swift
[455/462] Compiling swift_openapi_generator GenerateOptions.swift
[456/462] Compiling swift_openapi_generator Extensions.swift
[457/462] Compiling swift_openapi_generator FilterCommand.swift
[458/462] Compiling swift_openapi_generator GenerateOptions+runGenerator.swift
[459/462] Compiling swift_openapi_generator runGenerator.swift
[460/463] Wrapping AST for swift-openapi-generator for debugging
[461/463] Write Objects.LinkFileList
[462/463] Linking swift-openapi-generator-tool
[1/1] Compiling plugin OpenAPIGeneratorCommand
[2/2] Compiling plugin OpenAPIGenerator
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/44] Write sources
[19/44] Compiling _NumericsShims _NumericsShims.c
[19/44] Write sources
[22/44] Compiling reader.c
[23/44] Compiling api.c
[24/44] Compiling writer.c
[25/44] Compiling parser.c
[26/44] Write swift-version--11D90AFD9DD3AB2.txt
[27/44] Compiling emitter.c
[28/71] Compiling scanner.c
[29/71] Wrapping AST for ArgumentParserToolInfo for debugging
[30/71] Wrapping AST for RealModule for debugging
[31/71] Wrapping AST for OpenAPIKitCore for debugging
[32/71] Wrapping AST for ArgumentParser for debugging
[33/71] Wrapping AST for Algorithms for debugging
[34/71] Wrapping AST for Yams for debugging
[35/71] Wrapping AST for OpenAPIKit30 for debugging
[36/71] Wrapping AST for OpenAPIKit for debugging
[37/71] Wrapping AST for OpenAPIKitCompat for debugging
[38/71] Wrapping AST for _OpenAPIGeneratorCore for debugging
[39/71] Wrapping AST for swift-openapi-generator for debugging
[40/71] Write Objects.LinkFileList
[41/71] Linking swift-openapi-generator-tool
[43/71] Emitting module HTTPTypes
[44/72] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[45/72] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[46/74] Compiling InternalCollectionsUtilities _SortedCollection.swift
[47/74] Compiling HTTPTypes NIOLock.swift
[48/74] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[49/74] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[50/74] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[51/74] Compiling InternalCollectionsUtilities String+Padding.swift
[52/74] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[53/74] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[54/74] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[55/74] Compiling HTTPTypes ISOLatin1String.swift
[56/74] Compiling InternalCollectionsUtilities Integer rank.swift
[57/74] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[58/74] Compiling InternalCollectionsUtilities UInt+reversed.swift
[59/74] Emitting module InternalCollectionsUtilities
[60/74] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[61/74] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[62/74] Compiling InternalCollectionsUtilities Span+Extras.swift
[63/74] Compiling InternalCollectionsUtilities Debugging.swift
[64/74] Compiling InternalCollectionsUtilities Descriptions.swift
[65/74] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[67/75] Compiling HTTPTypes HTTPRequest.swift
[68/75] Compiling HTTPTypes HTTPResponse.swift
[69/111] Compiling ContainersPreview Producer+Map.swift
[70/111] Compiling ContainersPreview Producer+Reduce.swift
[71/111] Compiling ContainersPreview Producer.swift
[72/111] Compiling ContainersPreview InputSpan.swift
[73/111] Compiling ContainersPreview MutableRef.swift
[74/115] Compiling ContainersPreview Drain+Map.swift
[75/115] Compiling ContainersPreview Drain+Reduce.swift
[76/115] Compiling ContainersPreview Drain.swift
[77/115] Compiling ContainersPreview Producer+Collect.swift
[78/115] Compiling ContainersPreview Producer+Filter.swift
[79/115] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[80/115] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[81/115] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[82/115] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[83/115] Compiling ContainersPreview BorrowingSequence+Algorithms.swift
[84/115] Compiling ContainersPreview PermutableContainer.swift
[85/115] Compiling ContainersPreview RandomAccessContainer.swift
[86/115] Compiling ContainersPreview RangeExpression2.swift
[87/115] Compiling ContainersPreview RangeReplaceableContainer.swift
[88/115] Compiling ContainersPreview Strideable+Limits.swift
[89/115] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[90/115] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[91/115] Compiling ContainersPreview BorrowingSequence.swift
[92/115] Compiling ContainersPreview BidirectionalContainer.swift
[93/115] Compiling ContainersPreview Container+Filter.swift
[94/115] Compiling ContainersPreview Container+SpanwiseZip.swift
[95/115] Compiling ContainersPreview Container.swift
[96/115] Compiling ContainersPreview ContainerIterator.swift
[97/115] Compiling ContainersPreview DynamicContainer.swift
[98/115] Compiling ContainersPreview MutableContainer.swift
[99/115] Compiling ContainersPreview OutputSpan+Extras.swift
[100/115] Compiling ContainersPreview TemporaryAllocation.swift
[101/115] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[102/115] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[103/115] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[104/115] Emitting module ContainersPreview
[105/115] Compiling ContainersPreview Ref.swift
[106/115] Compiling ContainersPreview Shared.swift
[107/115] Compiling ContainersPreview SpanIterator.swift
[108/115] Compiling ContainersPreview UniqueBox.swift
[110/157] Compiling DequeModule _DequeBuffer.swift
[111/157] Compiling DequeModule _DequeBufferHeader.swift
[112/157] Compiling DequeModule RigidDeque+Append.swift
[113/157] Compiling DequeModule RigidDeque+Consumption.swift
[114/157] Compiling DequeModule RigidDeque+Container.swift
[115/157] Compiling DequeModule RigidDeque+Descriptions.swift
[116/162] Compiling DequeModule UniqueDeque+Container.swift
[117/162] Compiling DequeModule UniqueDeque+Deprecated.swift
[118/162] Compiling DequeModule UniqueDeque+Descriptions.swift
[119/162] Compiling DequeModule UniqueDeque+Equatable.swift
[120/162] Compiling DequeModule UniqueDeque+Experimental.swift
[121/162] Compiling DequeModule UniqueDeque+Hashable.swift
[122/162] Compiling DequeModule UniqueDeque+Initializers.swift
[123/162] Compiling DequeModule UniqueDeque+Insertions.swift
[124/162] Compiling DequeModule UniqueDeque+Prepend.swift
[125/162] Compiling DequeModule UniqueDeque+Removals.swift
[126/162] Compiling DequeModule RigidDeque+Equatable.swift
[127/162] Compiling DequeModule RigidDeque+Experimental.swift
[128/162] Compiling DequeModule RigidDeque+Hashable.swift
[129/162] Compiling DequeModule RigidDeque+Initializers.swift
[130/162] Compiling DequeModule RigidDeque+Insertions.swift
[131/162] Compiling DequeModule RigidDeque+Prepend.swift
[132/162] Compiling DequeModule RigidDeque+Removals.swift
[133/162] Compiling DequeModule RigidDeque+Replacements.swift
[134/162] Compiling DequeModule RigidDeque+Testing.swift
[135/162] Compiling DequeModule RigidDeque.swift
[136/162] Compiling DequeModule UniqueDeque+Append.swift
[137/162] Compiling DequeModule UniqueDeque+Consumption.swift
[138/162] Compiling DequeModule Deque+Extras.swift
[139/162] Compiling DequeModule Deque+Hashable.swift
[140/162] Compiling DequeModule Deque+Testing.swift
[141/162] Compiling DequeModule Deque._Storage.swift
[142/162] Compiling DequeModule Deque._UnsafeHandle.swift
[143/162] Compiling DequeModule Deque.swift
[144/162] Compiling DequeModule Deque+Codable.swift
[145/162] Compiling DequeModule Deque+Collection.swift
[146/162] Compiling DequeModule Deque+CustomReflectable.swift
[147/162] Compiling DequeModule Deque+Descriptions.swift
[148/162] Compiling DequeModule Deque+Equatable.swift
[149/162] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[150/162] Compiling HTTPTypes HTTPParsedFields.swift
[151/162] Compiling HTTPTypes HTTPRequest+URL.swift
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>Writing data to file Client.swift...
Writing data to file Types.swift...
Writing data to file Server.swift...
[151/162] Running swift-openapi-generator
[152/162] Write sources
[154/162] Emitting module DequeModule
[155/162] Compiling HTTPTypes HTTPFields.swift
[158/163] Compiling DequeModule UniqueDeque+Replacements.swift
[159/163] Compiling DequeModule UniqueDeque.swift
[160/163] Compiling DequeModule _DequeSlot.swift
[161/163] Compiling DequeModule _UnsafeDequeHandle.swift
[162/163] Compiling DequeModule _UnsafeDequeSegments.swift
[165/228] Emitting module OpenAPIRuntime
[166/236] Compiling OpenAPIRuntime UndocumentedPayload.swift
[167/236] Compiling OpenAPIRuntime WarningSuppressingAnnotations.swift
[168/236] Compiling OpenAPIRuntime CodableExtensions.swift
[169/236] Compiling OpenAPIRuntime Configuration.swift
[170/236] Compiling OpenAPIRuntime Converter+Client.swift
[171/236] Compiling OpenAPIRuntime Converter+Common.swift
[172/236] Compiling OpenAPIRuntime Converter+Server.swift
[173/236] Compiling OpenAPIRuntime Converter.swift
[174/236] Compiling OpenAPIRuntime CurrencyExtensions.swift
[175/236] Compiling OpenAPIRuntime OpenAPIMIMEType+Multipart.swift
[176/236] Compiling OpenAPIRuntime URICodeCodingKey.swift
[177/236] Compiling OpenAPIRuntime URICoderConfiguration.swift
[178/236] Compiling OpenAPIRuntime URIEncodedNode.swift
[179/236] Compiling OpenAPIRuntime URIParsedTypes.swift
[180/236] Compiling OpenAPIRuntime URIDecoder.swift
[181/236] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Keyed.swift
[182/236] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Single.swift
[183/236] Compiling OpenAPIRuntime URIValueFromNodeDecoder+Unkeyed.swift
[184/236] Compiling OpenAPIRuntime Acceptable.swift
[185/236] Compiling OpenAPIRuntime Base64EncodedData.swift
[186/236] Compiling OpenAPIRuntime ByteUtilities.swift
[187/236] Compiling OpenAPIRuntime ContentDisposition.swift
[188/236] Compiling OpenAPIRuntime CopyOnWriteBox.swift
[189/236] Compiling OpenAPIRuntime Lock.swift
[190/236] Compiling OpenAPIRuntime OpenAPIMIMEType.swift
[191/236] Compiling OpenAPIRuntime OpenAPIValue.swift
[192/236] Compiling OpenAPIRuntime PrettyStringConvertible.swift
[193/236] Compiling OpenAPIRuntime ErrorExtensions.swift
[194/236] Compiling OpenAPIRuntime FoundationExtensions.swift
[195/236] Compiling OpenAPIRuntime ParameterStyles.swift
[196/236] Compiling OpenAPIRuntime ServerVariable.swift
[197/236] Compiling OpenAPIRuntime URLExtensions.swift
[198/236] Compiling OpenAPIRuntime Deprecated.swift
[199/236] Compiling OpenAPIRuntime ClientError.swift
[200/236] Compiling OpenAPIRuntime CodingErrors.swift
[201/236] Compiling OpenAPIRuntime RuntimeError.swift
[202/236] Compiling OpenAPIRuntime MultipartBoundaryGenerator.swift
[203/236] Compiling OpenAPIRuntime MultipartBytesToFramesSequence.swift
[204/236] Compiling OpenAPIRuntime MultipartFramesToBytesSequence.swift
[205/236] Compiling OpenAPIRuntime MultipartFramesToRawPartsSequence.swift
[206/236] Compiling OpenAPIRuntime MultipartInternalTypes.swift
[207/236] Compiling OpenAPIRuntime MultipartPublicTypes.swift
[208/236] Compiling OpenAPIRuntime MultipartPublicTypesExtensions.swift
[209/236] Compiling OpenAPIRuntime MultipartRawPartsToFramesSequence.swift
[210/236] Compiling OpenAPIRuntime MultipartValidation.swift
[211/236] Compiling OpenAPIRuntime ClientTransport.swift
[212/236] Compiling OpenAPIRuntime CurrencyTypes.swift
[213/236] Compiling OpenAPIRuntime ErrorHandlingMiddleware.swift
[214/236] Compiling OpenAPIRuntime HTTPBody.swift
[215/236] Compiling OpenAPIRuntime QuerySpaceNormalizingMiddleware.swift
[216/236] Compiling OpenAPIRuntime SendableMetatype.swift
[217/236] Compiling OpenAPIRuntime ServerTransport.swift
[218/236] Compiling OpenAPIRuntime UniversalClient.swift
[219/236] Compiling OpenAPIRuntime UniversalServer.swift
[220/236] Compiling OpenAPIRuntime ServerError.swift
[221/236] Compiling OpenAPIRuntime JSONLinesDecoding.swift
[222/236] Compiling OpenAPIRuntime JSONLinesEncoding.swift
[223/236] Compiling OpenAPIRuntime JSONSequenceDecoding.swift
[224/236] Compiling OpenAPIRuntime JSONSequenceEncoding.swift
[225/236] Compiling OpenAPIRuntime ServerSentEvents.swift
[226/236] Compiling OpenAPIRuntime ServerSentEventsDecoding.swift
[227/236] Compiling OpenAPIRuntime ServerSentEventsEncoding.swift
[228/236] Compiling OpenAPIRuntime AsyncSequenceCommon.swift
[229/236] Compiling OpenAPIRuntime URIValueFromNodeDecoder.swift
[230/236] Compiling OpenAPIRuntime URIEncoder.swift
[231/236] Compiling OpenAPIRuntime URIValueToNodeEncoder+Keyed.swift
[232/236] Compiling OpenAPIRuntime URIValueToNodeEncoder+Single.swift
[233/236] Compiling OpenAPIRuntime URIValueToNodeEncoder+Unkeyed.swift
[234/236] Compiling OpenAPIRuntime URIValueToNodeEncoder.swift
[235/236] Compiling OpenAPIRuntime URIParser.swift
[236/236] Compiling OpenAPIRuntime URISerializer.swift
[238/244] Compiling OpenAPIURLSession BidirectionalStreamingURLSessionDelegate.swift
[239/244] Compiling OpenAPIURLSession HTTPBodyOutputStreamBridge.swift
[240/244] Compiling OpenAPIURLSession URLSession+Extensions.swift
[241/244] Compiling OpenAPIURLSession URLSessionTransport.swift
[242/244] Compiling OpenAPIURLSession Lock.swift
[243/244] Emitting module OpenAPIURLSession
[244/244] Compiling OpenAPIURLSession BufferedStream.swift
[246/360] Compiling LemmyKit LemmyApi+ResolveCommentReport.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
52 | )
53 |
54 | var request = URLRequest(url: endpoint)
| `- error: cannot find 'URLRequest' in scope
55 | request.httpMethod = "POST"
56 | request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | let data: Data
65 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | do {
67 | (data, response) = try await URLSession.shared.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | let response: URLResponse
66 | do {
67 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | } catch {
69 | throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 | }
71 |
72 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
73 | throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
74 | }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | }
71 |
72 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
74 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 | }
75 |
76 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | case 200, 201:
78 | break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
80 | throw LemmyApiError.unauthorized(message: nil)
81 | default:
82 | throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | }
84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 |
95 | guard let image = uploadResponse.files.first else {
96 | throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | }
98 |
[247/360] Compiling LemmyKit LemmyApi+ResolveObject.swift
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:54:23: error: cannot find 'URLRequest' in scope
52 | )
53 |
54 | var request = URLRequest(url: endpoint)
| `- error: cannot find 'URLRequest' in scope
55 | request.httpMethod = "POST"
56 | request.setValue("Bearer \(jwt)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | let data: Data
65 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | do {
67 | (data, response) = try await URLSession.shared.data(for: request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:67:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
65 | let response: URLResponse
66 | do {
67 | (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
68 | } catch {
69 | throw LemmyApiError.network(error)
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
70 | }
71 |
72 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
73 | throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
74 | }
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:72:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | }
71 |
72 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | throw LemmyApiError.unknownServerError(httpStatusCode: -1, error: nil)
74 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:76:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
74 | }
75 |
76 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
77 | case 200, 201:
78 | break
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
80 | throw LemmyApiError.unauthorized(message: nil)
81 | default:
82 | throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | }
84 |
/host/spi-builder-workspace/Sources/LemmyKit/LemmyApi+UploadImage.swift:96:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 |
95 | guard let image = uploadResponse.files.first else {
96 | throw LemmyApiError.unknownServerError(httpStatusCode: httpResponse.statusCode, error: nil)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
97 | }
98 |
[248/360] 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 |
[249/360] 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 |
[250/360] 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 |
[251/360] 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 |
[252/360] 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 |
[253/360] 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 |
[254/360] 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 |
[255/360] 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 |
[256/360] 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 |
[257/360] 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 |
[258/360] 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 |
[259/360] 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 |
[260/360] 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 |
[261/360] 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 |
[262/376] Compiling LemmyKit LemmyApi+GetModlog.swift
[263/376] Compiling LemmyKit LemmyApi+GetPersonDetails+id.swift
[264/376] Compiling LemmyKit LemmyApi+GetPersonDetails+username.swift
[265/376] Compiling LemmyKit LemmyApi+GetPersonMentions.swift
[266/376] Compiling LemmyKit LemmyApi+GetPost.swift
[267/376] Compiling LemmyKit LemmyApi+GetPosts+Community.swift
[268/376] Compiling LemmyKit LemmyApi+GetPosts+ListingType.swift
[269/376] Compiling LemmyKit LemmyApi+GetPosts.swift
[270/376] Compiling LemmyKit LemmyApi+GetPrivateMessages.swift
[271/376] Compiling LemmyKit LemmyApi+GetRegistrationApplication.swift
[272/376] Compiling LemmyKit LemmyApi+GetReplies.swift
[273/376] Compiling LemmyKit LemmyApi+GetReportCount.swift
[274/376] Compiling LemmyKit LemmyApi+GetSite.swift
[275/376] Compiling LemmyKit LemmyApi+GetSiteMetadata.swift
[276/376] Compiling LemmyKit LemmyApi+GetUnreadCount.swift
[277/376] Compiling LemmyKit LemmyApi+GetUnreadRegistrationApplicationCount.swift
[278/376] Compiling LemmyKit CommentSortType+Identifiable.swift
[279/376] Compiling LemmyKit CommentSortType+allCases.swift
[280/376] Compiling LemmyKit SortType+Identifiable.swift
[281/376] Compiling LemmyKit SortType+allCases.swift
[282/376] Compiling LemmyKit LemmyApi+AddAdmin.swift
[283/376] Compiling LemmyKit LemmyApi+AddModToCommunity.swift
[284/376] Compiling LemmyKit LemmyApi+ApproveRegistrationApplication.swift
[285/376] Compiling LemmyKit LemmyApi+BanFromCommunity.swift
[286/376] Compiling LemmyKit LemmyApi+BanPerson.swift
[287/376] Compiling LemmyKit LemmyApi+BlockCommunity.swift
[288/376] Compiling LemmyKit LemmyApi+BlockInstance.swift
[289/376] Compiling LemmyKit LemmyApi+BlockPerson.swift
[290/376] Compiling LemmyKit LemmyApi+ChangePassword.swift
[291/376] Compiling LemmyKit LemmyApi+CreateComment.swift
[292/376] Compiling LemmyKit LemmyApi+CreateCommentReport.swift
[293/376] Compiling LemmyKit LemmyApi+CreateCommunity.swift
[294/376] Compiling LemmyKit LemmyApi+CreateCustomEmoji.swift
[295/376] Compiling LemmyKit LemmyApi+EditSite.swift
[296/376] Compiling LemmyKit LemmyApi+ExportSettings.swift
[297/376] Compiling LemmyKit LemmyApi+FeaturePost.swift
[298/376] Compiling LemmyKit LemmyApi+FollowCommunity.swift
[299/376] Compiling LemmyKit LemmyApi+GenerateTotpSecret.swift
[300/376] Compiling LemmyKit LemmyApi+GetBannedPersons.swift
[301/376] Compiling LemmyKit LemmyApi+GetCaptcha.swift
[302/376] Compiling LemmyKit LemmyApi+GetComment.swift
[303/376] Compiling LemmyKit LemmyApi+GetComments+Community.swift
[304/376] Compiling LemmyKit LemmyApi+GetComments+ListingType.swift
[305/376] Compiling LemmyKit LemmyApi+GetComments+Parent.swift
[306/376] Compiling LemmyKit LemmyApi+GetComments+Post.swift
[307/376] Compiling LemmyKit LemmyApi+GetComments.swift
[308/376] Compiling LemmyKit LemmyApi+GetCommunity.swift
[309/376] Compiling LemmyKit LemmyApi+GetFederatedInstances.swift
[310/376] Compiling LemmyKit LemmyApi+GetImage.swift
[311/376] Compiling LemmyKit LemmyApi+LockPost.swift
[312/376] Compiling LemmyKit LemmyApi+Login.swift
[313/376] Compiling LemmyKit LemmyApi+Logout.swift
[314/376] Compiling LemmyKit LemmyApi+MarkAsRead.swift
[315/376] Compiling LemmyKit LemmyApi+MarkPostAsRead.swift
[316/376] Compiling LemmyKit LemmyApi+PasswordChangeAfterReset.swift
[317/376] Compiling LemmyKit LemmyApi+PasswordReset.swift
[318/376] Compiling LemmyKit LemmyApi+PurgeComment.swift
[319/376] Compiling LemmyKit LemmyApi+PurgeCommunity.swift
[320/376] Compiling LemmyKit LemmyApi+PurgePerson.swift
[321/376] Compiling LemmyKit LemmyApi+PurgePost.swift
[322/376] Compiling LemmyKit LemmyApi+Register.swift
[323/376] Compiling LemmyKit LemmyApi+RemoveComment.swift
[324/376] Compiling LemmyKit LemmyApi+RemoveCommunity.swift
[325/376] Compiling LemmyKit LemmyApi+RemovePost.swift
[326/376] Compiling LemmyKit LemmyApi+ReportPrivateMessage.swift
[327/376] Compiling LemmyKit LemmyApi+HideCommunity.swift
[328/376] Compiling LemmyKit LemmyApi+HidePost.swift
[329/376] Compiling LemmyKit LemmyApi+ImportSettings.swift
[330/376] Compiling LemmyKit LemmyApi+LeaveAdmin.swift
[331/376] Compiling LemmyKit LemmyApi+LikeComment.swift
[332/376] Compiling LemmyKit LemmyApi+LikePost.swift
[333/376] Compiling LemmyKit LemmyApi+ListAllMedia.swift
[334/376] Compiling LemmyKit LemmyApi+ListCommentLikes.swift
[335/376] Compiling LemmyKit LemmyApi+ListCommentReports.swift
[336/376] Compiling LemmyKit LemmyApi+ListCommunities.swift
[337/376] Compiling LemmyKit LemmyApi+ListLogins.swift
[338/376] Compiling LemmyKit LemmyApi+ListMedia.swift
[339/376] Compiling LemmyKit LemmyApi+ListPostLikes.swift
[340/376] Compiling LemmyKit LemmyApi+ListPostReports.swift
[341/376] Compiling LemmyKit LemmyApi+ListPrivateMessageReports.swift
[342/376] Compiling LemmyKit LemmyApi+ListRegistrationApplications.swift
[343/376] Compiling LemmyKit LemmyApi+CreatePost.swift
[344/376] Compiling LemmyKit LemmyApi+CreatePostReport.swift
[345/376] Compiling LemmyKit LemmyApi+CreatePrivateMessage.swift
[346/376] Compiling LemmyKit LemmyApi+CreateSite.swift
[347/376] Compiling LemmyKit LemmyApi+DeleteAccount.swift
[348/376] Compiling LemmyKit LemmyApi+DeleteComment.swift
[349/376] Compiling LemmyKit LemmyApi+DeleteCommunity.swift
[350/376] Compiling LemmyKit LemmyApi+DeleteCustomEmoji.swift
[351/376] Compiling LemmyKit LemmyApi+DeleteImage.swift
[352/376] Compiling LemmyKit LemmyApi+DeletePost.swift
[353/376] Compiling LemmyKit LemmyApi+DeletePrivateMessage.swift
[354/376] Compiling LemmyKit LemmyApi+DistinguishComment.swift
[355/376] Compiling LemmyKit LemmyApi+EditComment.swift
[356/376] Compiling LemmyKit LemmyApi+EditCommunity.swift
[357/376] Compiling LemmyKit LemmyApi+EditCustomEmoji.swift
[358/376] Compiling LemmyKit LemmyApi+EditPost.swift
[359/376] Compiling LemmyKit LemmyApi+EditPrivateMessage.swift
[360/376] Emitting module LemmyKit
[361/376] Compiling LemmyKit LemmyCredential.swift
[362/376] Compiling LemmyKit AuthorizationMiddleware.swift
[363/376] Compiling LemmyKit CommentPath.swift
[364/376] Compiling LemmyKit CommunityFilter.swift
[365/376] Compiling LemmyKit ContentFilter.swift
[366/376] Compiling LemmyKit Date+lemmyFormat.swift
[367/376] Compiling LemmyKit ImageFormat.swift
[368/376] Compiling LemmyKit LemmyDateTranscoder.swift
[369/376] Compiling LemmyKit LenientUrl.swift
[370/376] Compiling LemmyKit LikeStatus.swift
[371/376] Compiling LemmyKit MultipartFormData.swift
[372/376] Compiling LemmyKit URL+lenientString.swift
[373/376] Compiling LemmyKit UserAgentMiddleware.swift
[374/376] Compiling LemmyKit Types.swift
[375/376] Compiling LemmyKit Client.swift
[376/376] Compiling LemmyKit Server.swift
BUILD FAILURE 6.2 android