Build Information
Failed to build OpenAI, reference main (15ecf9), with Swift 6.4 for tvOS using Xcode 27.0 on 23 Sep 2026 05:05:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme OpenAI -destination generic/platform=tvOSBuild Log
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:232:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
230 | /// An invocation of a tool on an MCP server.
231 | @CodedAs("mcp_call")
232 | case mcpToolCall(Item.MCPToolCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
233 |
234 | /// A list of tools available on an MCP server.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:236:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
234 | /// A list of tools available on an MCP server.
235 | @CodedAs("mcp_list_tools")
236 | case mcpListTools(Item.MCPListTools)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
237 |
238 | /// A request for human approval of a tool invocation.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:240:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
238 | /// A request for human approval of a tool invocation.
239 | @CodedAs("mcp_approval_request")
240 | case mcpApprovalRequest(Item.MCPApprovalRequest)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
241 |
242 | /// The unique ID for this item.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:346:50: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
344 | ///
345 | /// See the [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information.
346 | @Codable @CodingKeys(.snake_case) public struct FunctionCall: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
347 | /// The status of the function call.
348 | ///
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:391:50: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
389 | ///
390 | /// See the [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information.
391 | @Codable @CodingKeys(.snake_case) public struct FunctionCallOutput: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
392 | /// The unique ID of the function tool call output. Populated when this item is returned via API.
393 | public var id: String?
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:421:16: error: type 'Item.WebSearchCall' does not conform to protocol 'Decodable'
419 | ///
420 | /// See the [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information.
421 | public struct WebSearchCall: Equatable, Codable, Hashable, Sendable {
| `- error: type 'Item.WebSearchCall' does not conform to protocol 'Decodable'
422 | /// The status of the web search tool call.
423 | public enum Status: String, CaseIterable, Equatable, Codable, Hashable, Sendable {
:
452 | ///
453 | /// Includes details on how the model used the web (search, open_page, find).
454 | public var action: Action?
| `- note: cannot automatically synthesize 'Decodable' because 'Action?' does not conform to 'Decodable'
455 |
456 | /// Creates a new web search call.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:437:9: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
435 | /// - Parameter url: The URL opened by the model.
436 | @CodedAs("open_page")
437 | case openPage(url: URL)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
438 |
439 | /// Searches for a pattern within a loaded page.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Item.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Item.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/JSONSchema.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONSchema.swift
SwiftCompile normal arm64 Compiling\ JSONEncoder+string.swift,\ URL+appendOptionalQueryItems.swift /Users/admin/builder/spi-builder-workspace/src/Extensions/JSONEncoder+string.swift /Users/admin/builder/spi-builder-workspace/src/Extensions/URL+appendOptionalQueryItems.swift (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Extensions/JSONEncoder+string.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONEncoder+string.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Extensions/URL+appendOptionalQueryItems.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile URL+appendOptionalQueryItems.swift
SwiftCompile normal arm64 Compiling\ Message.swift,\ Model.swift /Users/admin/builder/spi-builder-workspace/src/Models/Message.swift /Users/admin/builder/spi-builder-workspace/src/Models/Model.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1204]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Message.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Message.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Model.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Model.swift
SwiftDriverJobDiscovery normal arm64 Compiling Schemable.swift (in target 'OpenAI' from project 'OpenAI')
SwiftDriverJobDiscovery normal arm64 Compiling AsyncBytes+collect.swift, Collection+safeAccess.swift (in target 'OpenAI' from project 'OpenAI')
SwiftDriverJobDiscovery normal arm64 Compiling JSONEncoder+string.swift, URL+appendOptionalQueryItems.swift (in target 'OpenAI' from project 'OpenAI')
SwiftDriverJobDiscovery normal arm64 Compiling MultiPartData.swift (in target 'OpenAI' from project 'OpenAI')
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-23 01:04:45.366 xcodebuild[850:5199] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 Compiling\ Request.swift,\ Response.swift /Users/admin/builder/spi-builder-workspace/src/Models/Request.swift /Users/admin/builder/spi-builder-workspace/src/Models/Response.swift (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Request.swift (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Response.swift (in target 'OpenAI' from project 'OpenAI')
Building workspace OpenAI with scheme OpenAI
(4 failures)
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
swift-argument-parser: https://github.com/apple/swift-argument-parser.git @ 1.8.2
OpenAI: /Users/admin/builder/spi-builder-workspace
MetaCodable: https://github.com/SwiftyLab/MetaCodable.git @ 1.6.1
swift-syntax: https://github.com/swiftlang/swift-syntax.git @ 603.0.2
swift-collections: https://github.com/apple/swift-collections.git @ 1.7.0
resolved source packages: swift-argument-parser, OpenAI, MetaCodable, swift-syntax, swift-collections
2026-09-23 01:05:09.766 xcodebuild[1205:7088] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
{
"identity" : "metacodable",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftyLab/MetaCodable.git"
}
],
"manifest_display_name" : "OpenAI",
"name" : "OpenAI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "26.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "26.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
}
],
"products" : [
{
"name" : "OpenAI",
"targets" : [
"OpenAI"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "OpenAI",
"module_type" : "SwiftTarget",
"name" : "OpenAI",
"path" : "src",
"product_dependencies" : [
"MetaCodable",
"HelperCoders"
],
"product_memberships" : [
"OpenAI"
],
"sources" : [
"Extensions/AsyncBytes+collect.swift",
"Extensions/Collection+safeAccess.swift",
"Extensions/JSONEncoder+string.swift",
"Extensions/URL+appendOptionalQueryItems.swift",
"Models/Config.swift",
"Models/Event.swift",
"Models/File.swift",
"Models/Input.swift",
"Models/Item.swift",
"Models/JSONSchema.swift",
"Models/Message.swift",
"Models/Model.swift",
"Models/Request.swift",
"Models/Response.swift",
"Models/Tool.swift",
"Models/WebhookEvent.swift",
"Protocol/Schemable.swift",
"Support/MultiPartData.swift"
],
"type" : "library"
}
],
"tools_version" : "6.2"
}
{
"workspace" : {
"name" : "OpenAI",
"schemes" : [
"OpenAI"
]
}
}
2026-09-23 01:05:14.083 xcodebuild[1229:7266] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme OpenAI -destination generic/platform=tvOS
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme OpenAI -destination generic/platform=tvOS
Resolve Package Graph
Resolved source packages:
swift-syntax: https://github.com/swiftlang/swift-syntax.git @ 603.0.2
swift-argument-parser: https://github.com/apple/swift-argument-parser.git @ 1.8.2
swift-collections: https://github.com/apple/swift-collections.git @ 1.7.0
MetaCodable: https://github.com/SwiftyLab/MetaCodable.git @ 1.6.1
OpenAI: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (11 targets)
Target 'OpenAI-product' in project 'OpenAI'
➜ Explicit dependency on target 'OpenAI' in project 'OpenAI'
➜ Explicit dependency on target 'MetaCodable-product' in project 'MetaCodable'
➜ Explicit dependency on target 'HelperCoders-product' in project 'MetaCodable'
Target 'OpenAI' in project 'OpenAI'
➜ Explicit dependency on target 'MetaCodable-product' in project 'MetaCodable'
➜ Explicit dependency on target 'HelperCoders-product' in project 'MetaCodable'
Target 'HelperCoders-product' in project 'MetaCodable'
➜ Explicit dependency on target 'HelperCoders' in project 'MetaCodable'
➜ Explicit dependency on target 'MacroPlugin' in project 'MetaCodable'
➜ Explicit dependency on target 'MetaCodable' in project 'MetaCodable'
Target 'HelperCoders' in project 'MetaCodable'
➜ Explicit dependency on target 'MacroPlugin' in project 'MetaCodable'
➜ Explicit dependency on target 'MetaCodable' in project 'MetaCodable'
Target 'MetaCodable-product' in project 'MetaCodable'
➜ Explicit dependency on target 'MetaCodable' in project 'MetaCodable'
➜ Explicit dependency on target 'MacroPlugin' in project 'MetaCodable'
Target 'MetaCodable' in project 'MetaCodable'
➜ Explicit dependency on target 'MacroPlugin' in project 'MetaCodable'
Target 'MacroPlugin' in project 'MetaCodable'
➜ Explicit dependency on target 'PluginCore' in project 'MetaCodable'
➜ Explicit dependency on target 'OrderedCollections-product' in project 'swift-collections'
Target 'PluginCore' in project 'MetaCodable'
➜ Explicit dependency on target 'OrderedCollections-product' in project 'swift-collections'
Target 'OrderedCollections-product' in project 'swift-collections'
➜ Explicit dependency on target 'OrderedCollections' in project 'swift-collections'
➜ Explicit dependency on target 'InternalCollectionsUtilities' in project 'swift-collections'
Target 'OrderedCollections' in project 'swift-collections'
➜ Explicit dependency on target 'InternalCollectionsUtilities' in project 'swift-collections'
Target 'InternalCollectionsUtilities' in project 'swift-collections' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/macosx27.0-26A425-e829b21a6f8c9b70876ba0858053c0446a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/macosx27.0-26A425-e829b21a6f8c9b70876ba0858053c0446a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache
SwiftDriver OpenAI normal arm64 com.apple.xcode.tools.swift.compiler (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name OpenAI -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -target arm64-apple-tvos17.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -Xfrontend -load-plugin-executable -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin\#MacroPlugin -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ JSONSchema.swift /Users/admin/builder/spi-builder-workspace/src/Models/JSONSchema.swift (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/JSONSchema.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile JSONSchema.swift
dyld[1284]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
SwiftCompile normal arm64 Compiling\ Model.swift /Users/admin/builder/spi-builder-workspace/src/Models/Model.swift (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Model.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Model.swift
dyld[1286]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
SwiftCompile normal arm64 Compiling\ File.swift,\ Input.swift /Users/admin/builder/spi-builder-workspace/src/Models/File.swift /Users/admin/builder/spi-builder-workspace/src/Models/Input.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1280]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/File.swift:5:49: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
3 | import HelperCoders
4 |
5 | @Codable @CodingKeys(.snake_case) public struct File: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
6 | public struct Upload: Equatable, Hashable, Sendable {
7 | /// The name of the file
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/File.swift:5:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
3 | import HelperCoders
4 |
5 | @Codable @CodingKeys(.snake_case) public struct File: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
6 | public struct Upload: Equatable, Hashable, Sendable {
7 | /// The name of the file
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/File.swift:65:13: error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
63 | /// The `Date` when the file was created.
64 | @CodedBy(Since1970DateCoder())
65 | public var createdAt: Date
| `- error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
66 |
67 | /// The `Date` when the file will expire.
MetaCodable.CodedBy:2:30: note: 'CodedBy' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedBy<T>(_ helper: T) = #externalMacro(module: "MacroPlugin", type: "CodedBy") where T : MetaCodable.HelperCoder
| `- note: 'CodedBy' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/File.swift:69:13: error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
67 | /// The `Date` when the file will expire.
68 | @CodedBy(Since1970DateCoder())
69 | public var expiresAt: Date?
| `- error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
70 |
71 | /// The current status of the file
MetaCodable.CodedBy:2:30: note: 'CodedBy' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedBy<T>(_ helper: T) = #externalMacro(module: "MacroPlugin", type: "CodedBy") where T : MetaCodable.HelperCoder
| `- note: 'CodedBy' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/File.swift:5:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
3 | import HelperCoders
4 |
5 | @Codable @CodingKeys(.snake_case) public struct File: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
6 | public struct Upload: Equatable, Hashable, Sendable {
7 | /// The name of the file
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/File.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile File.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Input.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Input.swift
SwiftCompile normal arm64 Compiling\ Request.swift /Users/admin/builder/spi-builder-workspace/src/Models/Request.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1279]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/Request.swift:5:49: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
3 |
4 | /// A request to the OpenAI Response API.
5 | @Codable @CodingKeys(.snake_case) public struct Request: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
6 | /// Additional output data to include in the model response.
7 | public enum Include: String, Equatable, Hashable, Codable, Sendable {
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Request.swift:5:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
3 |
4 | /// A request to the OpenAI Response API.
5 | @Codable @CodingKeys(.snake_case) public struct Request: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
6 | /// Additional output data to include in the model response.
7 | public enum Include: String, Equatable, Hashable, Codable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Request.swift:5:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
3 |
4 | /// A request to the OpenAI Response API.
5 | @Codable @CodingKeys(.snake_case) public struct Request: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
6 | /// Additional output data to include in the model response.
7 | public enum Include: String, Equatable, Hashable, Codable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Input.swift:5:32: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
3 |
4 | /// Text, image, or file inputs to the model, used to generate a response.
5 | @Codable @UnTagged public enum Input: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
6 | /// A list of items used to generate a model response.
7 | @Codable @CodingKeys(.snake_case) public struct ItemList: Equatable, Hashable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:12:64: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// - **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).
11 | /// - **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).
12 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Tool: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
13 | public enum Choice: Equatable, Hashable, Sendable {
14 | /// The model will not call any tool and instead generates a message.
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Request.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Request.swift
SwiftCompile normal arm64 Compiling\ Response.swift /Users/admin/builder/spi-builder-workspace/src/Models/Response.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1282]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:6:49: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
4 |
5 | /// A response from the OpenAI Responses API
6 | @Codable @CodingKeys(.snake_case) public struct Response: Identifiable, Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// An error object returned when the model fails to generate a Response.
8 | public struct Error: Equatable, Hashable, Codable {
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:6:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
4 |
5 | /// A response from the OpenAI Responses API
6 | @Codable @CodingKeys(.snake_case) public struct Response: Identifiable, Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// An error object returned when the model fails to generate a Response.
8 | public struct Error: Equatable, Hashable, Codable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:59:50: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 |
58 | /// Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.
59 | @Codable @CodingKeys(.snake_case) public struct Usage: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
60 | /// A detailed breakdown of the input tokens.
61 | @Codable @CodingKeys(.snake_case) public struct InputTokensDetails: Equatable, Hashable, Sendable {
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:122:13: error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
120 | /// When this Response was created.
121 | @CodedBy(Since1970DateCoder())
122 | public var createdAt: Date
| `- error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
123 |
124 | /// Unique identifier for this Response.
MetaCodable.CodedBy:2:30: note: 'CodedBy' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedBy<T>(_ helper: T) = #externalMacro(module: "MacroPlugin", type: "CodedBy") where T : MetaCodable.HelperCoder
| `- note: 'CodedBy' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:6:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
4 |
5 | /// A response from the OpenAI Responses API
6 | @Codable @CodingKeys(.snake_case) public struct Response: Identifiable, Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// An error object returned when the model fails to generate a Response.
8 | public struct Error: Equatable, Hashable, Codable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Response.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Response.swift
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:59:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 |
58 | /// Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.
59 | @Codable @CodingKeys(.snake_case) public struct Usage: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
60 | /// A detailed breakdown of the input tokens.
61 | @Codable @CodingKeys(.snake_case) public struct InputTokensDetails: Equatable, Hashable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:61:51: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
59 | @Codable @CodingKeys(.snake_case) public struct Usage: Equatable, Hashable, Sendable {
60 | /// A detailed breakdown of the input tokens.
61 | @Codable @CodingKeys(.snake_case) public struct InputTokensDetails: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
62 | /// The number of cached tokens.
63 | public var cachedTokens: UInt
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Response.swift:74:51: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
72 |
73 | /// A detailed breakdown of the output tokens.
74 | @Codable @CodingKeys(.snake_case) public struct OutputTokensDetails: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
75 | /// The number of reasoning tokens.
76 | public var reasoningTokens: UInt
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
SwiftCompile normal arm64 Compiling\ Tool.swift /Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1277]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:12:64: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// - **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).
11 | /// - **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).
12 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Tool: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
13 | public enum Choice: Equatable, Hashable, Sendable {
14 | /// The model will not call any tool and instead generates a message.
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:12:64: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// - **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).
11 | /// - **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).
12 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Tool: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
13 | public enum Choice: Equatable, Hashable, Sendable {
14 | /// The model will not call any tool and instead generates a message.
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:57:29: error: 'GenerationSchema' is unavailable in tvOS
55 | public enum Parameters: Codable, Sendable {
56 | case jsonSchema(JSONSchema)
57 | case generationSchema(GenerationSchema)
| `- error: 'GenerationSchema' is unavailable in tvOS
58 |
59 | public init(from decoder: Decoder) throws {
FoundationModels.GenerationSchema:3:15: note: 'GenerationSchema' has been explicitly marked unavailable here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationSchema : Sendable {
| `- note: 'GenerationSchema' has been explicitly marked unavailable here
4 | }
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:98:71: error: 'GenerationSchema' is unavailable in tvOS
96 |
97 | /// Create a new `Function` instance with a raw JSON string parameter definition.
98 | public init(name: String, description: String? = nil, parameters: GenerationSchema, strict: Bool = true) {
| `- error: 'GenerationSchema' is unavailable in tvOS
99 | self.init(name: name, description: description, parameters: .generationSchema(parameters), strict: strict)
100 | }
FoundationModels.GenerationSchema:3:15: note: 'GenerationSchema' has been explicitly marked unavailable here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationSchema : Sendable {
| `- note: 'GenerationSchema' has been explicitly marked unavailable here
4 | }
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:116:51: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
114 | ///
115 | /// Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).
116 | @Codable @CodingKeys(.snake_case) public struct FileSearch: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
117 | /// A filter to apply based on file attributes.
118 | @Codable @UnTagged public enum Filters: Equatable, Hashable, Sendable {
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Tool.swift
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:116:51: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
114 | ///
115 | /// Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).
116 | @Codable @CodingKeys(.snake_case) public struct FileSearch: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
117 | /// A filter to apply based on file attributes.
118 | @Codable @UnTagged public enum Filters: Equatable, Hashable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:118:36: error: external macro implementation type 'MacroPlugin.UnTagged' could not be found for macro 'UnTagged()'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
116 | @Codable @CodingKeys(.snake_case) public struct FileSearch: Equatable, Hashable, Sendable {
117 | /// A filter to apply based on file attributes.
118 | @Codable @UnTagged public enum Filters: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.UnTagged' could not be found for macro 'UnTagged()'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
119 | /// A filter used to compare a specified attribute key to a given value using a defined comparison operation.
120 | public struct Comparison: Equatable, Hashable, Codable, Sendable {
MetaCodable.UnTagged:2:30: note: 'UnTagged()' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro UnTagged() = #externalMacro(module: "MacroPlugin", type: "UnTagged")
| `- note: 'UnTagged()' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:188:53: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
186 |
187 | /// Ranking options for search.
188 | @Codable @CodingKeys(.snake_case) public struct RankingOptions: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
189 | /// The ranker to use for the file search.
190 | public var ranker: String?
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:116:51: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
114 | ///
115 | /// Learn more about the [file search tool](https://platform.openai.com/docs/guides/tools-file-search).
116 | @Codable @CodingKeys(.snake_case) public struct FileSearch: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
117 | /// A filter to apply based on file attributes.
118 | @Codable @UnTagged public enum Filters: Equatable, Hashable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:122:40: error: external macro implementation type 'MacroPlugin.UnTagged' could not be found for macro 'UnTagged()'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
120 | public struct Comparison: Equatable, Hashable, Codable, Sendable {
121 | /// The value to compare against the attribute key.
122 | @Codable @UnTagged public enum Value: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.UnTagged' could not be found for macro 'UnTagged()'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
123 | case bool(Bool)
124 | case number(Int)
MetaCodable.UnTagged:2:30: note: 'UnTagged()' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro UnTagged() = #externalMacro(module: "MacroPlugin", type: "UnTagged")
| `- note: 'UnTagged()' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift:122:40: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
120 | public struct Comparison: Equatable, Hashable, Codable, Sendable {
121 | /// The value to compare against the attribute key.
122 | @Codable @UnTagged public enum Value: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
123 | case bool(Bool)
124 | case number(Int)
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
SwiftCompile normal arm64 Compiling\ Config.swift,\ Event.swift /Users/admin/builder/spi-builder-workspace/src/Models/Config.swift /Users/admin/builder/spi-builder-workspace/src/Models/Event.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1281]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:54:15: error: type 'TextConfig' does not conform to protocol 'Decodable'
52 | /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
53 | /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
| `- error: type 'TextConfig' does not conform to protocol 'Decodable'
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
:
105 |
106 | /// An object specifying the format that the model must output.
107 | public var format: Format
| `- note: cannot automatically synthesize 'Decodable' because 'Format' does not conform to 'Decodable'
108 |
109 | /// Creates a new `TextConfig` instance.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:65:10: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
63 | /// - Parameter strict: Whether to enable strict schema adherence when generating the output. If set to `true`, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when `strict` is `true`.
64 | @CodedAs("json_schema")
65 | case jsonSchema(
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
66 | schema: JSONSchema,
67 | description: String? = nil,
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:77:10: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
75 | /// Note that the model will not generate JSON without a system or user message instructing it to do so.
76 | @CodedAs("json_object")
77 | case jsonObject
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
78 |
79 | @CodedAs("json_schema")
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:80:10: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
78 |
79 | @CodedAs("json_schema")
80 | case generationSchema(
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
81 | schema: GenerationSchema,
82 | description: String? = nil,
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:81:15: error: 'GenerationSchema' is unavailable in tvOS
79 | @CodedAs("json_schema")
80 | case generationSchema(
81 | schema: GenerationSchema,
| `- error: 'GenerationSchema' is unavailable in tvOS
82 | description: String? = nil,
83 | name: String,
FoundationModels.GenerationSchema:3:15: note: 'GenerationSchema' has been explicitly marked unavailable here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationSchema : Sendable {
| `- note: 'GenerationSchema' has been explicitly marked unavailable here
4 | }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Config.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Config.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Event.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Event.swift
SwiftCompile normal arm64 Compiling\ WebhookEvent.swift /Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1278]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift:6:49: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
4 |
5 | /// A webhook event corresponding to an update from the Responses API.
6 | @Codable @CodingKeys(.snake_case) public struct WebhookEvent: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Event data payload.
8 | public struct EventData: Equatable, Hashable, Codable, Sendable {
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift:6:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
4 |
5 | /// A webhook event corresponding to an update from the Responses API.
6 | @Codable @CodingKeys(.snake_case) public struct WebhookEvent: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Event data payload.
8 | public struct EventData: Equatable, Hashable, Codable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift:28:13: error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
26 | /// The date when the model response was completed.
27 | @CodedBy(Since1970DateCoder())
28 | public var createdAt: Date
| `- error: external macro implementation type 'MacroPlugin.CodedBy' could not be found for macro 'CodedBy'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
29 |
30 | /// Event data payload.
MetaCodable.CodedBy:2:30: note: 'CodedBy' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedBy<T>(_ helper: T) = #externalMacro(module: "MacroPlugin", type: "CodedBy") where T : MetaCodable.HelperCoder
| `- note: 'CodedBy' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift:6:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
4 |
5 | /// A webhook event corresponding to an update from the Responses API.
6 | @Codable @CodingKeys(.snake_case) public struct WebhookEvent: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Event data payload.
8 | public struct EventData: Equatable, Hashable, Codable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/admin/builder/spi-builder-workspace/src/Extensions/AsyncBytes+collect.swift /Users/admin/builder/spi-builder-workspace/src/Extensions/Collection+safeAccess.swift /Users/admin/builder/spi-builder-workspace/src/Extensions/JSONEncoder+string.swift /Users/admin/builder/spi-builder-workspace/src/Extensions/URL+appendOptionalQueryItems.swift /Users/admin/builder/spi-builder-workspace/src/Models/Config.swift /Users/admin/builder/spi-builder-workspace/src/Models/Event.swift /Users/admin/builder/spi-builder-workspace/src/Models/File.swift /Users/admin/builder/spi-builder-workspace/src/Models/Input.swift /Users/admin/builder/spi-builder-workspace/src/Models/Item.swift /Users/admin/builder/spi-builder-workspace/src/Models/JSONSchema.swift /Users/admin/builder/spi-builder-workspace/src/Models/Message.swift /Users/admin/builder/spi-builder-workspace/src/Models/Model.swift /Users/admin/builder/spi-builder-workspace/src/Models/Request.swift /Users/admin/builder/spi-builder-workspace/src/Models/Response.swift /Users/admin/builder/spi-builder-workspace/src/Models/Tool.swift -primary-file /Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift /Users/admin/builder/spi-builder-workspace/src/Protocol/Schemable.swift /Users/admin/builder/spi-builder-workspace/src/Support/MultiPartData.swift -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/WebhookEvent.d -emit-const-values-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/WebhookEvent.swiftconstvalues -emit-reference-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/WebhookEvent.swiftdeps -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/WebhookEvent.dia -target arm64-apple-tvos17.0 -disable-cross-import-overlay-search -swift-module-cross-import FoundationModels /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/System/Library/Frameworks/FoundationModels.framework/Modules/FoundationModels.swiftcrossimport/UIKit.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationModelsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationModelsMacros -load-resolved-plugin \#/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin\#MacroPlugin -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin\#MacroPlugin -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos27.0-24J360-e829b21a6f8c9b70876ba0858053c044b32bfd8d43560033f8d89884cdb90028.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name OpenAI -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-tvos27.0 -target-sdk-version 27.0 -target-sdk-name appletvos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/WebhookEvent.o -debug-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/OpenAI.swiftmodule -index-unit-output-path /OpenAI.build/Debug-appletvos/OpenAI-t.build/Objects-normal/arm64/WebhookEvent.o -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -index-system-modules
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile WebhookEvent.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ OpenAI (in target 'OpenAI' from project 'OpenAI')
dyld[1285]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:9:49: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
7 | /// Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
8 | /// Only available for o-series models.
9 | @Codable @CodingKeys(.snake_case) public struct ReasoningConfig: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
10 | /// Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
11 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:56:66: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// Used to generate text responses.
58 | case text
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:54:15: error: type 'TextConfig' does not conform to protocol 'Decodable'
52 | /// - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
53 | /// - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
54 | public struct TextConfig: Equatable, Hashable, Codable, Sendable {
| `- error: type 'TextConfig' does not conform to protocol 'Decodable'
55 | /// An object specifying the format that the model must output.
56 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Format: Equatable, Hashable, Sendable {
:
105 |
106 | /// An object specifying the format that the model must output.
107 | public var format: Format
| `- note: cannot automatically synthesize 'Decodable' because 'Format' does not conform to 'Decodable'
108 |
109 | /// Creates a new `TextConfig` instance.
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
| `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:65:10: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
63 | /// - Parameter strict: Whether to enable strict schema adherence when generating the output. If set to `true`, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when `strict` is `true`.
64 | @CodedAs("json_schema")
65 | case jsonSchema(
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
66 | schema: JSONSchema,
67 | description: String? = nil,
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:77:10: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
75 | /// Note that the model will not generate JSON without a system or user message instructing it to do so.
76 | @CodedAs("json_object")
77 | case jsonObject
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
78 |
79 | @CodedAs("json_schema")
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:80:10: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
78 |
79 | @CodedAs("json_schema")
80 | case generationSchema(
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
81 | schema: GenerationSchema,
82 | description: String? = nil,
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Config.swift:81:15: error: 'GenerationSchema' is unavailable in tvOS
79 | @CodedAs("json_schema")
80 | case generationSchema(
81 | schema: GenerationSchema,
| `- error: 'GenerationSchema' is unavailable in tvOS
82 | description: String? = nil,
83 | name: String,
FoundationModels.GenerationSchema:3:15: note: 'GenerationSchema' has been explicitly marked unavailable here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationSchema : Sendable {
| `- note: 'GenerationSchema' has been explicitly marked unavailable here
4 | }
SwiftCompile normal arm64 (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ Item.swift /Users/admin/builder/spi-builder-workspace/src/Models/Item.swift (in target 'OpenAI' from project 'OpenAI')
dyld[1283]: Symbol not found: _swift_initBorrow
Referenced from: <EC1B44AB-9176-36DF-9987-50AC74F684E0> /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin
Expected in: <83794FB3-DE9B-3D23-AB5E-2C1D5D30F134> /usr/lib/swift/libswiftCore.dylib
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:11:65: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
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 {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
12 | /// A message input to the model with a role indicating instruction following hierarchy.
13 | ///
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:11:65: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
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 {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
12 | /// A message input to the model with a role indicating instruction following hierarchy.
13 | ///
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:16:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
14 | /// Instructions given with the `Developer` or `System` role take precedence over instructions given with the `User` role.
15 | @CodedAs("message")
16 | case inputMessage(Message.Input)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
17 |
18 | /// An output message from the model.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:11:65: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
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 {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
12 | /// A message input to the model with a role indicating instruction following hierarchy.
13 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:20:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
18 | /// An output message from the model.
19 | @CodedAs("message")
20 | case outputMessage(Message.Output)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
21 |
22 | /// The results of a file search tool call.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:26:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
24 | /// See the [file search guide](https://platform.openai.com/docs/guides/tools-file-search) for more information.
25 | @CodedAs("file_search_call")
26 | case fileSearch(Item.FileSearchCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
27 |
28 | /// A tool call to a computer use tool.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:32:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
30 | /// See the [computer use guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information.
31 | @CodedAs("computer_call")
32 | case computerToolCall(Item.ComputerToolCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
33 |
34 | /// The output of a computer tool call.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:36:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
34 | /// The output of a computer tool call.
35 | @CodedAs("computer_call_output")
36 | case computerToolCallOutput(Item.ComputerToolCallOutput)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
37 |
38 | /// A tool call to run a web search.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:42:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
40 | /// See the [web search guide](https://platform.openai.com/docs/guides/tools-web-search) for more information.
41 | @CodedAs("web_search_call")
42 | case webSearchCall(Item.WebSearchCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
43 |
44 | /// A tool call to run a function.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:48:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
46 | /// See the [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information.
47 | @CodedAs("function_call")
48 | case functionCall(Item.FunctionCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
49 |
50 | /// The output of a function tool call.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:52:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
50 | /// The output of a function tool call.
51 | @CodedAs("function_call_output")
52 | case functionCallOutput(Item.FunctionCallOutput)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
53 |
54 | /// A description of the chain of thought used by a reasoning model while generating a response.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:59:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
57 | /// An image generation request made by the model.
58 | @CodedAs("image_generation_call")
59 | case imageGenerationCall(Item.ImageGenerationCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
60 |
61 | /// A tool call to run code.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:63:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
61 | /// A tool call to run code.
62 | @CodedAs("code_interpreter_call")
63 | case codeInterpreterCall(Item.CodeInterpreterCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
64 |
65 | /// A tool call to run a command on the local shell.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:67:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
65 | /// A tool call to run a command on the local shell.
66 | @CodedAs("local_shell_call")
67 | case localShellCall(Item.LocalShellCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
68 |
69 | /// The output of a local shell tool call.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:71:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
69 | /// The output of a local shell tool call.
70 | @CodedAs("local_shell_call_output")
71 | case localShellCallOutput(Item.LocalShellCallOutput)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
72 |
73 | /// A list of tools available on an MCP server.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:75:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
73 | /// A list of tools available on an MCP server.
74 | @CodedAs("mcp_list_tools")
75 | case mcpListTools(Item.MCPListTools)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
76 |
77 | /// A request for human approval of a tool invocation.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:79:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
77 | /// A request for human approval of a tool invocation.
78 | @CodedAs("mcp_approval_request")
79 | case mcpApprovalRequest(Item.MCPApprovalRequest)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
80 |
81 | /// A response to an MCP approval request.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:83:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
81 | /// A response to an MCP approval request.
82 | @CodedAs("mcp_approval_response")
83 | case mcpApprovalResponse(Item.MCPApprovalResponse)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
84 |
85 | /// An invocation of a tool on an MCP server.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:87:8: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
85 | /// An invocation of a tool on an MCP server.
86 | @CodedAs("mcp_call")
87 | case mcpToolCall(Item.MCPToolCall)
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
88 |
89 | /// The text content of the input.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:928:25: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
926 | }
927 |
928 | @Codable public struct MCPToolCall: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
929 | /// The unique ID of the tool call.
930 | public var id: String
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:933:39: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
931 |
932 | /// The label of the MCP server running the tool.
933 | @CodedAs("server_label") public var server: String
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
934 |
935 | /// The name of the tool that was run.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:1083:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1081 | }
1082 |
1083 | @Codable @CodingKeys(.snake_case) public struct MCPApprovalResponse: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1084 | /// The unique ID of the approval response
1085 | public var id: String?
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:1056:25: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1054 | }
1055 |
1056 | @Codable public struct MCPApprovalRequest: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1057 | /// The unique ID of the approval request.
1058 | public var id: String
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:1061:39: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1059 |
1060 | /// The label of the MCP server making the request.
1061 | @CodedAs("server_label") public var server: String
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1062 |
1063 | /// The name of the tool to run.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:965:25: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
963 | }
964 |
965 | @Codable public struct MCPListTools: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
966 | @Codable @CodingKeys(.snake_case) public struct MCPTool: Equatable, Hashable, Sendable {
967 | /// Additional annotations about the tool.
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:966:51: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
964 |
965 | @Codable public struct MCPListTools: Equatable, Hashable, Sendable {
966 | @Codable @CodingKeys(.snake_case) public struct MCPTool: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
967 | /// Additional annotations about the tool.
968 | public struct Annotations: Equatable, Hashable, Codable, Sendable {
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:1034:39: error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1032 |
1033 | /// The label of the MCP server.
1034 | @CodedAs("server_label") public var server: String
| `- error: external macro implementation type 'MacroPlugin.CodedAs' could not be found for macro 'CodedAs'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
1035 |
1036 | /// The tools available on the server.
MetaCodable.CodedAs:2:30: note: 'CodedAs' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAs<T>(_ values: T, _: T...) = #externalMacro(module: "MacroPlugin", type: "CodedAs") where T : Decodable, T : Encodable, T : Equatable
| `- note: 'CodedAs' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:966:51: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
964 |
965 | @Codable public struct MCPListTools: Equatable, Hashable, Sendable {
966 | @Codable @CodingKeys(.snake_case) public struct MCPTool: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
967 | /// Additional annotations about the tool.
968 | public struct Annotations: Equatable, Hashable, Codable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:900:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
898 |
899 | /// The output of a local shell tool call.
900 | @Codable @CodingKeys(.snake_case) public struct LocalShellCallOutput: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
901 | /// The status of the item.
902 | public enum Status: String, CaseIterable, Equatable, Hashable, Codable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:835:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
833 | }
834 |
835 | @Codable @CodingKeys(.snake_case) public struct LocalShellCall: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
836 | public enum Status: String, CaseIterable, Equatable, Hashable, Codable, Sendable {
837 | case completed, incomplete
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:841:26: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
839 | }
840 |
841 | @Codable public struct Action: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
842 | /// The command to run.
843 | public var command: [String]
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:849:38: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
847 |
848 | /// Optional timeout in milliseconds for the command.
849 | @CodedAt("timeout_ms") public var timeout: TimeInterval?
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
850 |
851 | /// Optional user to run the command as.
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:787:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
785 |
786 | /// A tool call to run code.
787 | @Codable @CodingKeys(.snake_case) public struct CodeInterpreterCall: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
788 | public enum Status: String, CaseIterable, Equatable, Hashable, Codable, Sendable {
789 | case completed, incomplete, interpreting, failed
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:794:41: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
792 |
793 | /// The outputs generated by the code interpreter, such as logs or images.
794 | @Codable @CodedAt("type") public enum Output: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
795 | /// The logs output from the code interpreter.
796 | /// - Parameter logs: The logs output from the code interpreter.
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:794:41: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
792 |
793 | /// The outputs generated by the code interpreter, such as logs or images.
794 | @Codable @CodedAt("type") public enum Output: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
795 | /// The logs output from the code interpreter.
796 | /// - Parameter logs: The logs output from the code interpreter.
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:690:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
688 |
689 | /// A description of the chain of thought used by a reasoning model while generating a response.
690 | @Codable @CodingKeys(.snake_case) public struct Reasoning: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
691 | /// Reasoning text contents.
692 | @Codable @CodedAt("type") public enum Summary: Equatable, Hashable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:692:41: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
690 | @Codable @CodingKeys(.snake_case) public struct Reasoning: Equatable, Hashable, Sendable {
691 | /// Reasoning text contents.
692 | @Codable @CodedAt("type") public enum Summary: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
693 | /// A short summary of the reasoning used by the model when generating the response.
694 | @CodedAs("summary_text")
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:692:41: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
690 | @Codable @CodingKeys(.snake_case) public struct Reasoning: Equatable, Hashable, Sendable {
691 | /// Reasoning text contents.
692 | @Codable @CodedAt("type") public enum Summary: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
693 | /// A short summary of the reasoning used by the model when generating the response.
694 | @CodedAs("summary_text")
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:391:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
389 | ///
390 | /// See the [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information.
391 | @Codable @CodingKeys(.snake_case) public struct FunctionCallOutput: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
392 | /// The unique ID of the function tool call output. Populated when this item is returned via API.
393 | public var id: String?
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:346:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
344 | ///
345 | /// See the [function calling guide](https://platform.openai.com/docs/guides/function-calling) for more information.
346 | @Codable @CodingKeys(.snake_case) public struct FunctionCall: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
347 | /// The status of the function call.
348 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:429:41: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
427 | }
428 |
429 | @Codable @CodedAt("type") public enum Action: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
430 | /// Performs a web search query.
431 | /// - Parameter query: The search query.
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:429:41: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
427 | }
428 |
429 | @Codable @CodedAt("type") public enum Action: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
430 | /// Performs a web search query.
431 | /// - Parameter query: The search query.
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:639:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
637 |
638 | /// The output of a computer use call.
639 | @Codable @CodingKeys(.snake_case) public struct ComputerToolCallOutput: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
640 | /// A computer screenshot image used with the computer use tool.
641 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:641:66: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
639 | @Codable @CodingKeys(.snake_case) public struct ComputerToolCallOutput: Equatable, Hashable, Sendable {
640 | /// A computer screenshot image used with the computer use tool.
641 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
642 | /// A computer screenshot image used with the computer use tool.
643 | /// - Parameter fileId: The identifier of an uploaded file that contains the screenshot.
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:641:66: error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
639 | @Codable @CodingKeys(.snake_case) public struct ComputerToolCallOutput: Equatable, Hashable, Sendable {
640 | /// A computer screenshot image used with the computer use tool.
641 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodedAt' could not be found for macro 'CodedAt'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
642 | /// A computer screenshot image used with the computer use tool.
643 | /// - Parameter fileId: The identifier of an uploaded file that contains the screenshot.
MetaCodable.CodedAt:2:30: note: 'CodedAt' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodedAt(_ path: StaticString...) = #externalMacro(module: "MacroPlugin", type: "CodedAt")
| `- note: 'CodedAt' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:641:66: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
639 | @Codable @CodingKeys(.snake_case) public struct ComputerToolCallOutput: Equatable, Hashable, Sendable {
640 | /// A computer screenshot image used with the computer use tool.
641 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Output: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
642 | /// A computer screenshot image used with the computer use tool.
643 | /// - Parameter fileId: The identifier of an uploaded file that contains the screenshot.
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:471:50: error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
469 | ///
470 | /// See the [computer action guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information.
471 | @Codable @CodingKeys(.snake_case) public struct ComputerToolCall: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.Codable' could not be found for macro 'Codable(commonStrategies:)'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
472 | /// The action of the computer call.
473 | ///
MetaCodable.Codable:2:278: note: 'Codable(commonStrategies:)' declared here
1 | @available(swift 5.9)
2 | @attached(extension, conformances: Decodable, Encodable, names: named(CodingKeys), named(DecodingKeys), named(init(from:)), named(encode(to:))) @attached(member, conformances: Decodable, Encodable, names: named(CodingKeys), named(init(from:)), named(encode(to:))) public macro Codable(commonStrategies: [MetaCodable.CodableCommonStrategy] = []) = #externalMacro(module: "MacroPlugin", type: "Codable")
| `- note: 'Codable(commonStrategies:)' declared here
/Users/admin/builder/spi-builder-workspace/src/Models/Item.swift:475:66: error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
473 | ///
474 | /// See the [computer action guide](https://platform.openai.com/docs/guides/tools-computer-use) for more information.
475 | @Codable @CodedAt("type") @CodingKeys(.snake_case) public enum Action: Equatable, Hashable, Sendable {
| `- error: external macro implementation type 'MacroPlugin.CodingKeys' could not be found for macro 'CodingKeys'; '/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/MacroPlugin' produced malformed response
476 | /// A click action.
477 | ///
MetaCodable.CodingKeys:2:30: note: 'CodingKeys' declared here
1 | @available(swift 5.9)
2 | @attached(peer) public macro CodingKeys(_ strategy: MetaCodable.CodingKeyNameStrategy) = #externalMacro(module: "MacroPlugin", type: "CodingKeys")
| `- note: 'CodingKeys' declared here
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Item.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Item.swift
SwiftCompile normal arm64 Compiling\ Message.swift /Users/admin/builder/spi-builder-workspace/src/Models/Message.swift (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/Message.swift (in target 'OpenAI' from project 'OpenAI')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Message.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-23 01:05:18.047 xcodebuild[1247:7404] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 Compiling\ WebhookEvent.swift /Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift (in target 'OpenAI' from project 'OpenAI')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/src/Models/WebhookEvent.swift (in target 'OpenAI' from project 'OpenAI')
Building workspace OpenAI with scheme OpenAI
(3 failures)
BUILD FAILURE 6.4 tvOS