Build Information
Failed to build OpenAI, reference 1.1.1 (de472c), with Swift 6.3 for Android on 16 Apr 2026 13:54:37 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/swift-openai-responses.git
Reference: 1.1.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/m1guelpf/swift-openai-responses
* tag 1.1.1 -> FETCH_HEAD
HEAD is now at de472c3 add `input_fidelity` to image generation tool
Cloned https://github.com/m1guelpf/swift-openai-responses.git
Revision (git rev-parse @):
de472c3e8d9fce9ab04498b9e4a7c477ead2aae1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-openai-responses.git at 1.1.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/m1guelpf/swift-openai-responses.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/SwiftyLab/MetaCodable.git
[1/158250] Fetching metacodable
Fetched https://github.com/SwiftyLab/MetaCodable.git from cache (11.95s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.6.0 (17.24s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/17523] Fetching swift-argument-parser
[2/41074] Fetching swift-argument-parser, swift-collections
[19294/116059] Fetching swift-argument-parser, swift-collections, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git from cache (2.03s)
[84289/98536] Fetching swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections.git from cache (6.35s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.38s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (9.83s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (0.63s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.80s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.3-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.51s)
[1/1] Compiling plugin MetaProtocolCodable
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/22] Write sources
[10/22] Write swift-version--4F562202D5529B1.txt
[12/40] Emitting module InternalCollectionsUtilities
[13/42] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[14/42] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[15/42] Compiling InternalCollectionsUtilities Span+Extras.swift
[16/42] Compiling InternalCollectionsUtilities _SortedCollection.swift
[17/42] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[18/42] Compiling InternalCollectionsUtilities Integer rank.swift
[19/42] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[20/42] Compiling InternalCollectionsUtilities UInt+reversed.swift
[21/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[22/42] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[23/42] Compiling InternalCollectionsUtilities Debugging.swift
[24/42] Compiling InternalCollectionsUtilities Descriptions.swift
[25/42] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[26/42] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[27/42] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[28/42] Compiling InternalCollectionsUtilities String+Padding.swift
[29/42] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[30/42] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[31/42] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[32/43] Wrapping AST for InternalCollectionsUtilities for debugging
[34/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[35/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[36/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[37/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[38/98] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[39/98] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[40/98] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[41/105] Compiling OrderedCollections OrderedDictionary.swift
[42/105] Compiling OrderedCollections OrderedSet+Codable.swift
[43/105] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[44/105] Compiling OrderedCollections OrderedSet+Descriptions.swift
[45/105] Compiling OrderedCollections OrderedSet+Diffing.swift
[46/105] Compiling OrderedCollections OrderedSet+Equatable.swift
[47/105] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[48/105] Compiling OrderedCollections OrderedSet+Hashable.swift
[49/105] Compiling OrderedCollections OrderedDictionary+Codable.swift
[50/105] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[51/105] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[52/105] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[53/105] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[54/105] Compiling OrderedCollections OrderedDictionary+Elements.swift
[55/105] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[56/105] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[57/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[58/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[59/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[60/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[61/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[62/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[63/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[64/105] Compiling OrderedCollections OrderedSet+Initializers.swift
[65/105] Compiling OrderedCollections OrderedSet+Insertions.swift
[66/105] Compiling OrderedCollections OrderedSet+Invariants.swift
[67/105] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[68/105] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[69/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[70/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[71/105] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[72/105] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[73/105] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[74/105] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[75/105] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[76/105] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[77/105] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[78/105] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[79/105] Compiling OrderedCollections OrderedDictionary+Values.swift
[80/105] Emitting module OrderedCollections
[81/105] Compiling OrderedCollections _HashTable+Bucket.swift
[82/105] Compiling OrderedCollections _HashTable+BucketIterator.swift
[83/105] Compiling OrderedCollections _HashTable+Constants.swift
[84/105] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[85/105] Compiling OrderedCollections _HashTable+Testing.swift
[86/105] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[87/105] Compiling OrderedCollections _HashTable.swift
[88/105] Compiling OrderedCollections _Hashtable+Header.swift
[89/105] Compiling OrderedCollections OrderedSet+Sendable.swift
[90/105] Compiling OrderedCollections OrderedSet+SubSequence.swift
[91/105] Compiling OrderedCollections OrderedSet+Testing.swift
[92/105] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[93/105] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[94/105] Compiling OrderedCollections OrderedSet.swift
[95/105] Compiling OrderedCollections _UnsafeBitset.swift
[96/106] Wrapping AST for OrderedCollections for debugging
[98/198] Emitting module PluginCore
[99/210] Compiling PluginCore DiagnosticProducer.swift
[100/210] Compiling PluginCore DuplicateUsage.swift
[101/210] Compiling PluginCore GroupedVariableDeclaration.swift
[102/210] Compiling PluginCore InvalidCombination.swift
[103/210] Compiling PluginCore InvalidDeclaration.swift
[104/210] Compiling PluginCore MetaCodableMessage.swift
[105/210] Compiling PluginCore StaticVariableDeclaration.swift
[106/210] Compiling PluginCore UninitializedVariableDecl.swift
[107/210] Compiling PluginCore AttributeExpander.swift
[108/210] Compiling PluginCore DeclModifiersGenerator.swift
[109/210] Compiling PluginCore Options.swift
[110/210] Compiling PluginCore ComposedVariable.swift
[111/210] Compiling PluginCore ConditionalCodingVariable.swift
[112/210] Compiling PluginCore AnyRequiredVariableInitialization.swift
[113/210] Compiling PluginCore IgnoredInitialization.swift
[114/210] Compiling PluginCore MemberwiseInitGenerator.swift
[115/210] Compiling PluginCore OptionalInitialization.swift
[116/210] Compiling PluginCore RequiredInitialization.swift
[117/210] Compiling PluginCore RequiredInitializationWithDefaultValue.swift
[118/210] Compiling PluginCore RequiredVariableInitialization.swift
[119/210] Compiling PluginCore VariableInitialization.swift
[120/210] Compiling PluginCore AliasedPropertyVariable.swift
[121/210] Compiling PluginCore AnyPropertyVariable.swift
[122/210] Compiling PluginCore BasicPropertyVariable.swift
[123/210] Compiling PluginCore DecodingFallback.swift
[124/210] Compiling PluginCore DefaultValueVariable.swift
[125/210] Compiling PluginCore IgnoreCodingInitialized.swift
[126/210] Compiling PluginCore Inherits.swift
[127/210] Compiling PluginCore StrategyFinder.swift
[128/210] Compiling PluginCore UnTagged.swift
[129/210] Compiling PluginCore CodedAs.swift
[130/210] Compiling PluginCore CodedBy.swift
[131/210] Compiling PluginCore Default.swift
[132/210] Compiling PluginCore IgnoreCoding.swift
[133/210] Compiling PluginCore IgnoreDecoding.swift
[134/210] Compiling PluginCore IgnoreEncoding.swift
[135/210] Compiling PluginCore CodedAt.swift
[136/210] Compiling PluginCore CodedIn.swift
[137/210] Compiling PluginCore ContentAt.swift
[138/210] Compiling PluginCore HelperCodedVariable.swift
[139/210] Compiling PluginCore InitializationVariable.swift
[140/210] Compiling PluginCore KeyedVariable.swift
[141/210] Compiling PluginCore PropertyVariable.swift
[142/210] Compiling PluginCore StrategyVariable.swift
[143/210] Compiling PluginCore PropertyVariableTreeNode+CodingData.swift
[144/210] Compiling PluginCore PropertyVariableTreeNode+CodingLocation.swift
[145/210] Compiling PluginCore PropertyVariableTreeNode+Generated.swift
[146/210] Compiling PluginCore PropertyVariableTreeNode.swift
[147/210] Compiling PluginCore AssociatedDeclSyntax.swift
[148/210] Compiling PluginCore EnumCaseVariableDeclSyntax.swift
[149/210] Compiling PluginCore MemberGroupSyntax.swift
[150/210] Compiling PluginCore PropertyDeclSyntax.swift
[151/210] Compiling PluginCore AssociatedVariable.swift
[152/210] Compiling PluginCore BasicAssociatedVariable.swift
[153/210] Compiling PluginCore BasicEnumCaseVariable.swift
[154/210] Compiling PluginCore EnumCaseVariable.swift
[155/210] Compiling PluginCore AdjacentlyTaggableSwitcher.swift
[156/210] Compiling PluginCore AdjacentlyTaggedEnumSwitcher.swift
[157/210] Compiling PluginCore AnyEnumSwitcher.swift
[158/210] Compiling PluginCore EnumSwitcherVariable.swift
[159/210] Compiling PluginCore ExternallyTaggedEnumSwitcher.swift
[160/210] Compiling PluginCore InternallyTaggedEnumSwitcher.swift
[161/210] Compiling PluginCore TaggedEnumSwitcherVariable.swift
[162/210] Compiling PluginCore UnTaggedEnumSwitcher.swift
[163/210] Compiling PluginCore AnyInitialization.swift
[164/210] Compiling PluginCore DecodedAt.swift
[165/210] Compiling PluginCore EncodedAt.swift
[166/210] Compiling PluginCore KeyPathProvider.swift
[167/210] Compiling PluginCore MemberInit+Expansion.swift
[168/210] Compiling PluginCore MemberInit.swift
[169/210] Compiling PluginCore PeerAttribute.swift
[170/210] Compiling PluginCore AggregatedDiagnosticProducer.swift
[171/210] Compiling PluginCore CombinedUsage.swift
[172/210] Compiling PluginCore ArgumentCountCondition.swift
[173/210] Compiling PluginCore DeclarationCondition.swift
[174/210] Compiling PluginCore DiagnosticCondition.swift
[175/210] Compiling PluginCore RawRepresentableEnumCondition.swift
[176/210] Compiling PluginCore ConditionalDiagnosticProducer.swift
[177/210] Compiling PluginCore AttributableDeclSyntax.swift
[178/210] Compiling PluginCore Attribute.swift
[179/210] Compiling PluginCore Codable+Expansion.swift
[180/210] Compiling PluginCore Codable.swift
[181/210] Compiling PluginCore CodingKeyTransformer.swift
[182/210] Compiling PluginCore CodingKeys.swift
[183/210] Compiling PluginCore Strategy.swift
[184/210] Compiling PluginCore AttributeExpander+Decodable.swift
[185/210] Compiling PluginCore Decodable+Expansion.swift
[186/210] Compiling PluginCore Decodable.swift
[187/210] Compiling PluginCore AttributeExpander+Encodable.swift
[188/210] Compiling PluginCore Encodable+Expansion.swift
[189/210] Compiling PluginCore Encodable.swift
[190/210] Compiling PluginCore VariableSyntax.swift
[191/210] Compiling PluginCore ActorVariable.swift
[192/210] Compiling PluginCore ClassVariable.swift
[193/210] Compiling PluginCore Case.swift
[194/210] Compiling PluginCore CodingKeysMap.swift
[195/210] Compiling PluginCore Key.swift
[196/210] Compiling PluginCore ConstraintGenerator.swift
[197/210] Compiling PluginCore Registration.swift
[198/210] Compiling PluginCore EnumVariable.swift
[199/210] Compiling PluginCore MemberGroup.swift
[200/210] Compiling PluginCore TypeVariable.swift
[201/210] Compiling PluginCore Variable.swift
[202/211] Wrapping AST for PluginCore for debugging
[204/214] Compiling MacroPlugin Plugin.swift
[205/214] Compiling MacroPlugin Definitions.swift
[206/214] Emitting module MacroPlugin
[207/215] Wrapping AST for MacroPlugin for debugging
[208/215] Write Objects.LinkFileList
[209/215] Linking MacroPlugin-tool
[211/238] Emitting module MetaCodable
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[212/241] Compiling MetaCodable Codable.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[213/241] Compiling MetaCodable CodableCommonStrategy.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[214/241] Compiling MetaCodable CodingKeys.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[215/241] Compiling MetaCodable Decodable.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[216/241] Compiling MetaCodable LossySequence.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[217/241] Compiling MetaCodable IgnoreCoding.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[218/241] Compiling MetaCodable MemberInit.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[219/241] Compiling MetaCodable AnyCodableLiteral.swift
[220/241] Compiling MetaCodable CodedAs+Dynamic.swift
[221/241] Compiling MetaCodable CodedAs.swift
[222/241] Compiling MetaCodable Encodable.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[223/241] Compiling MetaCodable IgnoreCodingInitialized.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[224/241] Compiling MetaCodable UnTagged.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[225/241] Compiling MetaCodable CodedAt.swift
[226/241] Compiling MetaCodable CodedBy.swift
[227/241] Compiling MetaCodable CodedIn.swift
[228/241] Compiling MetaCodable DynamicCodableIdentifier.swift
[229/241] Compiling MetaCodable EncodedAt.swift
[230/241] Compiling MetaCodable HelperCoder.swift
[231/241] Compiling MetaCodable DynamicCodable.swift
[232/241] Compiling MetaCodable DynamicCodableIdentifier+CodingKey.swift
[233/241] Compiling MetaCodable DynamicCodableIdentifier+Expressible.swift
[234/241] Compiling MetaCodable ContentAt.swift
[235/241] Compiling MetaCodable DecodedAt.swift
[236/241] Compiling MetaCodable Default.swift
[237/242] Wrapping AST for MetaCodable for debugging
[239/256] Compiling HelperCoders String.swift
[240/257] Compiling HelperCoders ValueCoder.swift
[241/257] Compiling HelperCoders NonConformingCoder.swift
[242/257] Compiling HelperCoders PropertyWrapperCoder.swift
[243/257] Compiling HelperCoders DefaultSequenceElementCoding.swift
[244/257] Compiling HelperCoders SequenceCoder.swift
[245/257] Compiling HelperCoders SequenceCoderConfiguration.swift
[246/257] Compiling HelperCoders HelperCoderStrategy.swift
[247/257] Compiling HelperCoders Bool.swift
[248/257] Compiling HelperCoders Number.swift
[249/257] Compiling HelperCoders DateCoder.swift
[250/257] Compiling HelperCoders Since1970DateCoder.swift
[251/257] Emitting module HelperCoders
[252/257] Compiling HelperCoders Base64Coder.swift
[253/257] Compiling HelperCoders ConditionalCoder.swift
[254/258] Wrapping AST for HelperCoders for debugging
[256/273] Compiling OpenAI Message.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[257/273] Compiling OpenAI Model.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[258/275] Compiling OpenAI Collection+safeAccess.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[259/275] Compiling OpenAI Config.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[260/275] Compiling OpenAI Conversation.swift
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/Conversation.swift:345:29: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:37: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:50: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:64: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:347:28: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:36: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:49: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:63: warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:349:80: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
350 | updateItem(index: outputIndex, id: itemId) { item in
351 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:57: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:71: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:367:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
368 |
369 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:371:56: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:371:70: warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:373:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
374 |
375 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:449:32: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:449:40: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:451:36: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:451:44: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:455:37: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:455:45: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[261/275] Compiling OpenAI AsyncBytes+collect.swift
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/Conversation.swift:345:29: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:37: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:50: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:345:64: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
343 | item = .fileSearch(fileSearch)
344 | }
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
/host/spi-builder-workspace/src/Conversation.swift:347:28: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:36: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:49: warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'contentIndex' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:347:63: warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
345 | case let .reasoningDelta(itemId, outputIndex, contentIndex, delta):
346 | break // this doesn't seem to ever get sent
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
/host/spi-builder-workspace/src/Conversation.swift:349:80: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
347 | case let .reasoningDone(itemId, outputIndex, contentIndex, text):
348 | break // this doesn't seem to ever get sent
349 | case let .reasoningSummaryPartAdded(itemId, outputIndex: outputIndex, part, summaryIndex):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
350 | updateItem(index: outputIndex, id: itemId) { item in
351 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:57: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:365:71: warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
363 | item = .reasoning(reasoning)
364 | }
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
| `- warning: immutable value 'delta' was never used; consider replacing with '_' or removing it [#no-usage]
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:367:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
365 | case let .reasoningSummaryDelta(itemId, outputIndex, summaryIndex, delta):
366 | updateItem(index: outputIndex, id: itemId) { item in
367 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
368 |
369 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:371:56: warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'summaryIndex' was never used; consider replacing with '_' or removing it [#no-usage]
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:371:70: warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
369 | // figure out where to put the reasoning
370 | }
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
| `- warning: immutable value 'text' was never used; consider replacing with '_' or removing it [#no-usage]
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
/host/spi-builder-workspace/src/Conversation.swift:373:32: warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
371 | case let .reasoningSummaryDone(itemId, outputIndex, summaryIndex, text):
372 | updateItem(index: outputIndex, id: itemId) { item in
373 | guard case var .reasoning(reasoning) = item else { return }
| `- warning: variable 'reasoning' was never used; consider replacing with '_' or removing it [#no-usage]
374 |
375 | // figure out where to put the reasoning
/host/spi-builder-workspace/src/Conversation.swift:449:32: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:449:40: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
447 | case .mcpCallFailed:
448 | break // mcpToolCall does not have a status field we can track
449 | case let .mcpCallInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:451:36: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:451:44: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
449 | case let .mcpCallInProgress(itemId, outputIndex):
450 | break // mcpToolCall does not have a status field we can track
451 | case let .mcpListToolsCompleted(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
452 | break // mcpListTools does not have a status field we can track
453 | case .mcpListToolsFailed:
/host/spi-builder-workspace/src/Conversation.swift:455:37: warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'itemId' was never used; consider replacing with '_' or removing it [#no-usage]
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Conversation.swift:455:45: warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
453 | case .mcpListToolsFailed:
454 | break // mcpListTools does not have a status field we can track
455 | case let .mcpListToolsInProgress(itemId, outputIndex):
| `- warning: immutable value 'outputIndex' was never used; consider replacing with '_' or removing it [#no-usage]
456 | break // mcpListTools does not have a status field we can track
457 | case let .codeInterpreterCallInProgress(itemId, outputIndex):
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[262/275] Compiling OpenAI OpenAI.swift
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: extraneous argument label 'request:' in call
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:92:41: error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:162:7: error: value of type 'URLRequest' has no member 'attach'
160 | var req = request
161 | req.httpMethod = "POST"
162 | req.attach(formData: form)
| `- error: value of type 'URLRequest' has no member 'attach'
163 | req.url!.append(path: "v1/files")
164 |
/host/spi-builder-workspace/src/OpenAI.swift:204:49: error: value of type 'URLSession' has no member 'bytes'
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
205 |
206 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[263/275] Compiling OpenAI MultiPartData.swift
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/src/OpenAI.swift:92:31: error: extraneous argument label 'request:' in call
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: extraneous argument label 'request:' in call
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:92:41: error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
90 | req.addValue("application/json", forHTTPHeaderField: "Content-Type")
91 |
92 | let bytes = try await stream(request: req)
| `- error: cannot convert value of type 'URLRequest' to expected argument type 'Request'
93 |
94 | let (stream, continuation) = AsyncThrowingStream.makeStream(of: Event.self)
/host/spi-builder-workspace/src/OpenAI.swift:162:7: error: value of type 'URLRequest' has no member 'attach'
160 | var req = request
161 | req.httpMethod = "POST"
162 | req.attach(formData: form)
| `- error: value of type 'URLRequest' has no member 'attach'
163 | req.url!.append(path: "v1/files")
164 |
/host/spi-builder-workspace/src/OpenAI.swift:204:49: error: value of type 'URLSession' has no member 'bytes'
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
| `- error: value of type 'URLSession' has no member 'bytes'
205 |
206 | guard let res = res as? HTTPURLResponse else { throw Error.invalidResponse(res) }
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
error: emit-module command failed with exit code 1 (use -v to see invocation)
[264/275] Emitting module OpenAI
/host/spi-builder-workspace/src/Conversation.swift:4:13: error: unknown attribute 'Observable'
2 |
3 | /// A wrapper around the Responses API for managing a conversation.
4 | @MainActor @Observable public final class Conversation {
| `- error: unknown attribute 'Observable'
5 | /// An entry in the conversation.
6 | public enum Entry: Equatable, Sendable {
/host/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift:3:22: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
1 | import Foundation
2 |
3 | extension URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
4 | func collect() async throws -> Data {
5 | var data = Data()
/host/spi-builder-workspace/src/OpenAI.swift:203:62: error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
201 | ///
202 | /// - Throws: If the request fails to send or has a non-200 status code.
203 | func stream(request: URLRequest) async throws -> URLSession.AsyncBytes {
| `- error: 'AsyncBytes' is not a member type of class 'FoundationNetworking.URLSession'
204 | let (data, res) = try await URLSession.shared.bytes(for: request)
205 |
FoundationNetworking.URLSession:1:12: note: 'URLSession' declared here
1 | open class URLSession : NSObject, @unchecked Sendable {
| `- note: 'URLSession' declared here
2 | open class var shared: URLSession { get }
3 | public init(configuration: URLSessionConfiguration)
/host/spi-builder-workspace/src/Support/MultiPartData.swift:55:11: error: cannot find type 'URLRequest' in scope
53 | }
54 |
55 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
56 | mutating func attach(formData form: FormData) {
57 | httpBody = form.data
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[265/275] Compiling OpenAI Request.swift
[266/275] Compiling OpenAI Response.swift
[267/275] Compiling OpenAI Tool.swift
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Tool.swift:645:2: note: expanded code originates here
7 | /// - **Built-in tools**: Tools that are provided by OpenAI that extend the model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search) or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about [built-in tools](https://platform.openai.com/docs/guides/tools).
8 | /// - **Function calls (custom tools)**: Functions that are defined by you, enabling the model to call your own code. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).
9 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Tool: Equatable, Hashable, Sendable {
| `- note: in expansion of macro 'Codable' on enum 'Tool' here
10 | public enum Choice: Equatable, Hashable, Sendable {
11 | /// The model will not call any tool and instead generates a message.
:
643 | @CodedAs("local_shell")
644 | case localShell
645 | }
+--- macro expansion @Codable --------------------------------------
| 8 | typeContainer = nil
| 9 | }
| 10 | if let typeContainer = typeContainer, let container = container {
| | `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
| 11 | let typeString: String?
| 12 | do {
+-------------------------------------------------------------------
646 |
647 | public extension Tool {
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[268/275] Compiling OpenAI WebhookEvent.swift
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Tool.swift:645:2: note: expanded code originates here
7 | /// - **Built-in tools**: Tools that are provided by OpenAI that extend the model's capabilities, like [web search](https://platform.openai.com/docs/guides/tools-web-search) or [file search](https://platform.openai.com/docs/guides/tools-file-search). Learn more about [built-in tools](https://platform.openai.com/docs/guides/tools).
8 | /// - **Function calls (custom tools)**: Functions that are defined by you, enabling the model to call your own code. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).
9 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Tool: Equatable, Hashable, Sendable {
| `- note: in expansion of macro 'Codable' on enum 'Tool' here
10 | public enum Choice: Equatable, Hashable, Sendable {
11 | /// The model will not call any tool and instead generates a message.
:
643 | @CodedAs("local_shell")
644 | case localShell
645 | }
+--- macro expansion @Codable --------------------------------------
| 8 | typeContainer = nil
| 9 | }
| 10 | if let typeContainer = typeContainer, let container = container {
| | `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
| 11 | let typeString: String?
| 12 | do {
+-------------------------------------------------------------------
646 |
647 | public extension Tool {
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[269/275] Compiling OpenAI Input.swift
macro expansion @Codable:24:22: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
9 | ///
10 | /// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
11 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
| |- note: in expansion of macro 'Codable' on enum 'Input' here
| `- note: in expansion of macro 'Codable' on enum 'Input' here
12 | /// A message input to the model with a role indicating instruction following hierarchy.
13 | ///
:
1101 | case input(Input)
1102 | case output(Output)
1103 | }
+--- macro expansion @Codable -------------------------------------
| 17 | if let typeString = typeString {
| 18 | switch typeString {
| 19 | case "message":
| | `- note: first occurrence of identical literal pattern is here
| 20 | let _0: Message.Input
| 21 | _0 = try Message.Input(from: decoder)
| 22 | self = .inputMessage(_0)
| 23 | return
| 24 | case "message":
| | `- warning: literal value is already handled by previous pattern; consider removing it
| 25 | let _0: Message.Output
| 26 | _0 = try Message.Output(from: decoder)
+------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
9 | ///
10 | /// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
11 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
| `- note: in expansion of macro 'Codable' on enum 'Input' here
12 | /// A message input to the model with a role indicating instruction following hierarchy.
13 | ///
:
1101 | case input(Input)
1102 | case output(Output)
1103 | }
+--- macro expansion @Codable -------------------------------------
| 8 | typeContainer = nil
| 9 | }
| 10 | if let typeContainer = typeContainer, let container = container {
| | `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
| 11 | let typeString: String?
| 12 | do {
+------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
105 |
106 | /// Content items generated by the model.
107 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
| `- note: in expansion of macro 'Codable' on enum 'Output' here
108 | /// The content of the output message.
109 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Content: Equatable, Hashable, Sendable {
:
1101 | case input(Input)
1102 | case output(Output)
1103 | }
+--- macro expansion @Codable -------------------------------------
| 8 | typeContainer = nil
| 9 | }
| 10 | if let typeContainer = typeContainer, let container = container {
| | `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
| 11 | let typeString: String?
| 12 | do {
+------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[270/275] Compiling OpenAI Item.swift
macro expansion @Codable:24:22: warning: literal value is already handled by previous pattern; consider removing it
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
9 | ///
10 | /// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
11 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
| |- note: in expansion of macro 'Codable' on enum 'Input' here
| `- note: in expansion of macro 'Codable' on enum 'Input' here
12 | /// A message input to the model with a role indicating instruction following hierarchy.
13 | ///
:
1101 | case input(Input)
1102 | case output(Output)
1103 | }
+--- macro expansion @Codable -------------------------------------
| 17 | if let typeString = typeString {
| 18 | switch typeString {
| 19 | case "message":
| | `- note: first occurrence of identical literal pattern is here
| 20 | let _0: Message.Input
| 21 | _0 = try Message.Input(from: decoder)
| 22 | self = .inputMessage(_0)
| 23 | return
| 24 | case "message":
| | `- warning: literal value is already handled by previous pattern; consider removing it
| 25 | let _0: Message.Output
| 26 | _0 = try Message.Output(from: decoder)
+------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
9 | ///
10 | /// Can contain text, images, and audio inputs, as well as previous assistant responses and tool call outputs.
11 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Input: Equatable, Hashable, Sendable {
| `- note: in expansion of macro 'Codable' on enum 'Input' here
12 | /// A message input to the model with a role indicating instruction following hierarchy.
13 | ///
:
1101 | case input(Input)
1102 | case output(Output)
1103 | }
+--- macro expansion @Codable -------------------------------------
| 8 | typeContainer = nil
| 9 | }
| 10 | if let typeContainer = typeContainer, let container = container {
| | `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
| 11 | let typeString: String?
| 12 | do {
+------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
macro expansion @Codable:10:51: warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
`- /host/spi-builder-workspace/src/Models/Item.swift:1103:2: note: expanded code originates here
105 |
106 | /// Content items generated by the model.
107 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
| `- note: in expansion of macro 'Codable' on enum 'Output' here
108 | /// The content of the output message.
109 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Content: Equatable, Hashable, Sendable {
:
1101 | case input(Input)
1102 | case output(Output)
1103 | }
+--- macro expansion @Codable -------------------------------------
| 8 | typeContainer = nil
| 9 | }
| 10 | if let typeContainer = typeContainer, let container = container {
| | `- warning: immutable value 'container' was never used; consider replacing with '_' or removing it [#no-usage]
| 11 | let typeString: String?
| 12 | do {
+------------------------------------------------------------------
1104 |
1105 | // MARK: - Item.Input Creating helpers
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[271/275] Compiling OpenAI Event.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
[272/275] Compiling OpenAI File.swift
Internal Error: DecodingError.dataCorrupted: Data was corrupted. Debug description: Corrupted JSON. Underlying error: unexpected end of file
BUILD FAILURE 6.3 android