Build Information
Failed to build WWSaveFileTool, reference main (e95ab8), with Swift 6.4 for macOS (Xcode) using Xcode 27.0 on 25 Sep 2026 18:28:22 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 WWSaveFileTool -destination platform=macOS,arch=arm64Build Log
| 70 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 71 | @Guide(.constant("binaryBase64"))
| 72 | let type: String
| :
| 76 | self.value = try content.value(forProperty: "value")
| 77 | }
| 78 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 79 | FoundationModels.GenerationSchema(
| 80 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:87:39: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 68 | }
| 69 |
| 70 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 71 | @Guide(.constant("binaryBase64"))
| 72 | let type: String
| :
| 85 | )
| 86 | }
| 87 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 88 | let explicitNil = false
| 89 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:109:42: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|107 | }
|108 |
|109 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
|110 | switch self {
|111 | case .text(let value):
+-------------------------------------------------------------------
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:69:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
67 | }
68 |
69 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
70 | public enum FilePayload {
| |- note: add '@available' attribute to enclosing enum
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
macro expansion @Generable:2:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:74:2: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
74 | }
+--- macro expansion @Generable ------------------------------------
|1 | extension WWSaveFileTool.Output: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
|2 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.saved = try content.value(forProperty: "saved")
|4 | self.path = try content.value(forProperty: "path")
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:2:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:74:2: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
74 | }
+--- macro expansion @Generable ------------------------------------
|1 | extension WWSaveFileTool.Arguments: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
|2 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.filename = try content.value(forProperty: "filename")
|4 | self.payload = try content.value(forProperty: "payload")
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:2:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:74:2: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
74 | }
+--- macro expansion @Generable ------------------------------------
| 1 | extension WWSaveFileTool.FilePayload: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
| 2 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| 4 | switch type {
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Constant.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -swift-module-cross-import FoundationModels /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/FoundationModels.framework/Modules/FoundationModels.swiftcrossimport/AppKit.swiftoverlay -swift-module-cross-import FoundationModels /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/FoundationModels.framework/Modules/FoundationModels.swiftcrossimport/SwiftUI.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationModelsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationModelsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.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/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/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_AVAILABLE -D Xcode -serialize-debugging-options -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/macosx27.0-26A425-e829b21a6f8c9b70876ba0858053c0446a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWSaveFileTool -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.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 -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/Objects-normal/arm64/WWSaveFileTool.abi.json
SwiftCompile normal arm64 (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Error.swift
SwiftCompile normal arm64 Compiling\ Service.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
25 | public struct Output {
26 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift:42:27: error: 'documentsDirectory' is only available in macOS 13.0 or newer
28 |
29 | // MARK: - 公開工具
30 | extension WWSaveFileTool.Service {
| `- note: add '@available' attribute to enclosing extension
31 |
32 | /// 將指定內容儲存到 App 的 Documents 目錄
:
37 | /// - Returns: 存檔完成後的結果資訊
38 | /// - Throws: 當副檔名不支援或檔案寫入失敗時拋出錯誤
39 | func save(with filename: String, type: WWSaveFileTool.FileType) throws -> WWSaveFileTool.Output {
| `- note: add '@available' attribute to enclosing instance method
40 |
41 | let sanitizedFilename = sanitize(filename)
42 | let fileURL = URL.documentsDirectory.appendingPathComponent(sanitizedFilename, isDirectory: false)
| |- error: 'documentsDirectory' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
43 | let data: Data
44 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Service.swift
SwiftCompile normal arm64 Compiling\ WWSaveFileTool.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
25 | public struct Output {
26 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:50:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
:
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
51 | public struct Arguments {
52 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:27:10: error: 'Guide(description:)' is only available in macOS 26.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
| `- error: 'Guide(description:)' is only available in macOS 26.0 or newer
28 | public let saved: Bool
29 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:30:10: error: 'Guide(description:)' is only available in macOS 26.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
28 | public let saved: Bool
29 |
30 | @Guide(description: "The path of the saved file.")
| `- error: 'Guide(description:)' is only available in macOS 26.0 or newer
31 | public let path: String
32 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:33:10: error: 'Guide(description:)' is only available in macOS 26.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
31 | public let path: String
32 |
33 | @Guide(description: "The number of bytes in the saved file.")
| `- error: 'Guide(description:)' is only available in macOS 26.0 or newer
34 | public let byteCount: Int
35 |
macro expansion @Generable:1:66: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:12:42: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:35:20: error: 'GenerationID' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
| | `- error: 'GenerationID' is only available in macOS 26.0 or newer
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:36:28: error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:37:29: error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:38:31: error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
|40 | self.id = content.id ?? GenerationID()
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:39:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:34:27: warning: protocol 'Identifiable' requires 'GenerationID' to be available in macOS 12.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in macOS 12.0 and newer; this will be an error in a future Swift language mode
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:53:10: error: 'Guide(description:)' is only available in macOS 26.0 or newer
49 | /// 工具執行時需要的輸入參數
50 | @Generable
51 | public struct Arguments {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
| `- error: 'Guide(description:)' is only available in macOS 26.0 or newer
54 | public let filename: String
55 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:56:10: error: 'Guide(description:)' is only available in macOS 26.0 or newer
49 | /// 工具執行時需要的輸入參數
50 | @Generable
51 | public struct Arguments {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
54 | public let filename: String
55 |
56 | @Guide(description: "The content to be written to the file.")
| `- error: 'Guide(description:)' is only available in macOS 26.0 or newer
57 | public let payload: FilePayload
58 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:69:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
:
67 | }
68 |
69 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
macro expansion @Generable:1:66: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:11:42: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:33:20: error: 'GenerationID' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
| | `- error: 'GenerationID' is only available in macOS 26.0 or newer
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:34:33: error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:36:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
|38 | self.filename = try content.value(forProperty: "filename")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:32:27: warning: protocol 'Identifiable' requires 'GenerationID' to be available in macOS 12.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in macOS 12.0 and newer; this will be an error in a future Swift language mode
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
+-------------------------------------------------------------------
68 |
69 | @Generable
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:50:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
51 | public struct Arguments {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
macro expansion @Generable:2:22: error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| | `- error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:3:30: error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| | `- error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| 5 | let type: String = try content.value(forProperty: "type")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:4:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| 6 | switch type {
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:21:66: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 19 | }
| 20 |
| 21 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 22 | FoundationModels.GenerationSchema(
| 23 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:32:6: error: 'Guide(description:_:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| | `- error: 'Guide(description:_:)' is only available in macOS 26.0 or newer
| 33 | let type: String
| 34 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:32:13: error: 'constant' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| | `- error: 'constant' is only available in macOS 26.0 or newer
| 33 | let type: String
| 34 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:35:50: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| 34 | let value: String
| 35 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 36 | self.type = try content.value(forProperty: "type")
| 37 | self.value = try content.value(forProperty: "value")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:39:63: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| 41 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:48:39: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:71:6: error: 'Guide(description:_:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 68 | }
| 69 |
| 70 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 71 | @Guide(.constant("binaryBase64"))
| | `- error: 'Guide(description:_:)' is only available in macOS 26.0 or newer
| 72 | let type: String
| 73 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:71:13: error: 'constant' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 68 | }
| 69 |
| 70 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 71 | @Guide(.constant("binaryBase64"))
| | `- error: 'constant' is only available in macOS 26.0 or newer
| 72 | let type: String
| 73 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:74:50: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 68 | }
| 69 |
| 70 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 71 | @Guide(.constant("binaryBase64"))
| 72 | let type: String
| 73 | let value: String
| 74 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 75 | self.type = try content.value(forProperty: "type")
| 76 | self.value = try content.value(forProperty: "value")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:78:63: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 68 | }
| 69 |
| 70 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 71 | @Guide(.constant("binaryBase64"))
| 72 | let type: String
| :
| 76 | self.value = try content.value(forProperty: "value")
| 77 | }
| 78 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 79 | FoundationModels.GenerationSchema(
| 80 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:87:39: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 68 | }
| 69 |
| 70 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 71 | @Guide(.constant("binaryBase64"))
| 72 | let type: String
| :
| 85 | )
| 86 | }
| 87 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 88 | let explicitNil = false
| 89 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:109:42: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|107 | }
|108 |
|109 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
|110 | switch self {
|111 | case .text(let value):
+-------------------------------------------------------------------
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:69:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
67 | }
68 |
69 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
70 | public enum FilePayload {
| |- note: add '@available' attribute to enclosing enum
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
macro expansion @Generable:2:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:74:2: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
74 | }
+--- macro expansion @Generable ------------------------------------
|1 | extension WWSaveFileTool.Output: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
|2 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.saved = try content.value(forProperty: "saved")
|4 | self.path = try content.value(forProperty: "path")
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:2:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:74:2: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
74 | }
+--- macro expansion @Generable ------------------------------------
|1 | extension WWSaveFileTool.Arguments: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
|2 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.filename = try content.value(forProperty: "filename")
|4 | self.payload = try content.value(forProperty: "payload")
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:2:57: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:74:2: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
74 | }
+--- macro expansion @Generable ------------------------------------
| 1 | extension WWSaveFileTool.FilePayload: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing extension
| 2 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| 4 | switch type {
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:2:22: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 3 | type: Self.self,
| 4 | properties: [
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:2:22: error: 'init(type:description:properties:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| | |- error: 'init(type:description:properties:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 3 | type: Self.self,
| 4 | properties: [
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:5:30: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:5:47: error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| | |- error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:6:30: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
| 8 | ]
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:6:47: error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| | |- error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
| 8 | ]
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:7:30: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| :
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 8 | ]
| 9 | )
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:7:47: error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| :
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
| | |- error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 8 | ]
| 9 | )
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:14:49: error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|15 | addProperty(name: "saved", value: self.saved)
|16 | addProperty(name: "path", value: self.path)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:15:5: error: conformance of 'Bool' to 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|15 | addProperty(name: "saved", value: self.saved)
| | |- error: conformance of 'Bool' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:16:5: error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|15 | addProperty(name: "saved", value: self.saved)
|16 | addProperty(name: "path", value: self.path)
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|17 | addProperty(name: "byteCount", value: self.byteCount)
|18 | return GeneratedContent(
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:17:5: error: conformance of 'Int' to 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|15 | addProperty(name: "saved", value: self.saved)
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
| | |- error: conformance of 'Int' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|18 | return GeneratedContent(
|19 | properties: properties,
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:18:12: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
|18 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|19 | properties: properties,
|20 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:18:12: error: 'init(properties:id:uniquingKeysWith:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
|18 | return GeneratedContent(
| | |- error: 'init(properties:id:uniquingKeysWith:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|19 | properties: properties,
|20 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:24:48: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|22 | }
|23 | )
|24 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|25 | properties.append((name: name, value: value))
|26 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:24:48: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|22 | }
|23 | )
|24 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|25 | properties.append((name: name, value: value))
|26 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:27:49: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|25 | properties.append((name: name, value: value))
|26 | }
|27 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|28 | if explicitNil || value != nil {
|29 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:27:49: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|25 | properties.append((name: name, value: value))
|26 | }
|27 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|28 | if explicitNil || value != nil {
|29 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:29:47: error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|27 | func addProperty(name: String, value: (some Generable)?) {
|28 | if explicitNil || value != nil {
|29 | properties.append((name: name, value: value))
| | |- error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|30 | }
|31 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:40:33: error: 'GenerationID' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
| | |- error: 'GenerationID' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:40:33: error: 'init()' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
| | |- error: 'init()' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:41:34: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|42 | self.path = try content.value(forProperty: "path")
|43 | self.byteCount = try content.value(forProperty: "byteCount")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:42:33: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|43 | self.byteCount = try content.value(forProperty: "byteCount")
|44 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:43:38: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
|43 | self.byteCount = try content.value(forProperty: "byteCount")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|44 | }
|45 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:2:22: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 3 | type: Self.self,
| 4 | properties: [
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:2:22: error: 'init(type:description:properties:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| | |- error: 'init(type:description:properties:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 3 | type: Self.self,
| 4 | properties: [
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:5:30: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "filename", description: "The name of the file to be saved.", type: String.self),
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 6 | FoundationModels.GenerationSchema.Property(name: "payload", description: "The content to be written to the file.", type: FilePayload.self)
| 7 | ]
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:5:47: error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "filename", description: "The name of the file to be saved.", type: String.self),
| | |- error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 6 | FoundationModels.GenerationSchema.Property(name: "payload", description: "The content to be written to the file.", type: FilePayload.self)
| 7 | ]
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:6:30: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "filename", description: "The name of the file to be saved.", type: String.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "payload", description: "The content to be written to the file.", type: FilePayload.self)
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 7 | ]
| 8 | )
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:6:47: error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "filename", description: "The name of the file to be saved.", type: String.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "payload", description: "The content to be written to the file.", type: FilePayload.self)
| | |- error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 7 | ]
| 8 | )
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:13:49: error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|14 | addProperty(name: "filename", value: self.filename)
|15 | addProperty(name: "payload", value: self.payload)
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:14:5: error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "filename", value: self.filename)
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|15 | addProperty(name: "payload", value: self.payload)
|16 | return GeneratedContent(
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:16:12: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "filename", value: self.filename)
|15 | addProperty(name: "payload", value: self.payload)
|16 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|17 | properties: properties,
|18 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:16:12: error: 'init(properties:id:uniquingKeysWith:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "filename", value: self.filename)
|15 | addProperty(name: "payload", value: self.payload)
|16 | return GeneratedContent(
| | |- error: 'init(properties:id:uniquingKeysWith:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|17 | properties: properties,
|18 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:22:48: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|20 | }
|21 | )
|22 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|23 | properties.append((name: name, value: value))
|24 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:22:48: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|20 | }
|21 | )
|22 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|23 | properties.append((name: name, value: value))
|24 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:25:49: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|23 | properties.append((name: name, value: value))
|24 | }
|25 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|26 | if explicitNil || value != nil {
|27 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:25:49: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|23 | properties.append((name: name, value: value))
|24 | }
|25 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|26 | if explicitNil || value != nil {
|27 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:27:47: error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|25 | func addProperty(name: String, value: (some Generable)?) {
|26 | if explicitNil || value != nil {
|27 | properties.append((name: name, value: value))
| | |- error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|28 | }
|29 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:37:33: error: 'GenerationID' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
| | |- error: 'GenerationID' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|38 | self.filename = try content.value(forProperty: "filename")
|39 | self.payload = try content.value(forProperty: "payload")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:37:33: error: 'init()' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
| | |- error: 'init()' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|38 | self.filename = try content.value(forProperty: "filename")
|39 | self.payload = try content.value(forProperty: "payload")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:38:37: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
|38 | self.filename = try content.value(forProperty: "filename")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|39 | self.payload = try content.value(forProperty: "payload")
|40 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:39:36: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
|38 | self.filename = try content.value(forProperty: "filename")
|39 | self.payload = try content.value(forProperty: "payload")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|40 | }
|41 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:5:40: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 6 | switch type {
| 7 | case "text":
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:8:38: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| 6 | switch type {
| 7 | case "text":
| 8 | self = .text(try content.value(forProperty: "value"))
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 9 | case "binaryBase64":
| 10 | self = .binaryBase64(try content.value(forProperty: "value"))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:10:46: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| 6 | switch type {
| :
| 8 | self = .text(try content.value(forProperty: "value"))
| 9 | case "binaryBase64":
| 10 | self = .binaryBase64(try content.value(forProperty: "value"))
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 11 | default:
| 12 | if #available(iOS 27.0, macOS 27.0, visionOS 27.0, *) {
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:15:40: error: 'LanguageModelSession' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| 6 | switch type {
| :
| 13 | throw FoundationModels.GeneratedContent.ParsingError(rawContent: content.jsonString, debugDescription: "Unexpected type \"\(type)\" for \(Self.self)")
| 14 | } else {
| 15 | throw FoundationModels.LanguageModelSession.GenerationError.decodingFailure(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Unexpected type \"\(type)\" for \(Self.self)"))
| | |- error: 'LanguageModelSession' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 16 | }
| 17 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:15:110: error: 'LanguageModelSession' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| 6 | switch type {
| :
| 13 | throw FoundationModels.GeneratedContent.ParsingError(rawContent: content.jsonString, debugDescription: "Unexpected type \"\(type)\" for \(Self.self)")
| 14 | } else {
| 15 | throw FoundationModels.LanguageModelSession.GenerationError.decodingFailure(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Unexpected type \"\(type)\" for \(Self.self)"))
| | |- error: 'LanguageModelSession' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 16 | }
| 17 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:15:147: error: 'init(debugDescription:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| 6 | switch type {
| :
| 13 | throw FoundationModels.GeneratedContent.ParsingError(rawContent: content.jsonString, debugDescription: "Unexpected type \"\(type)\" for \(Self.self)")
| 14 | } else {
| 15 | throw FoundationModels.LanguageModelSession.GenerationError.decodingFailure(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Unexpected type \"\(type)\" for \(Self.self)"))
| | |- error: 'init(debugDescription:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 16 | }
| 17 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:22:22: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 19 | }
| 20 |
| 21 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 22 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 23 | type: Self.self,
| 24 | anyOf: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:22:22: error: 'init(type:description:anyOf:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 19 | }
| 20 |
| 21 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 22 | FoundationModels.GenerationSchema(
| | |- error: 'init(type:description:anyOf:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 23 | type: Self.self,
| 24 | anyOf: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:36:33: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| 34 | let value: String
| 35 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 36 | self.type = try content.value(forProperty: "type")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:37:34: error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| 34 | let value: String
| 35 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 36 | self.type = try content.value(forProperty: "type")
| 37 | self.value = try content.value(forProperty: "value")
| | |- error: 'value(_:forProperty:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:40:26: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 41 | type: Self.self,
| 42 | properties: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:40:26: error: 'init(type:description:properties:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| | |- error: 'init(type:description:properties:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 41 | type: Self.self,
| 42 | properties: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:43:34: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| 41 | type: Self.self,
| 42 | properties: [
| 43 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 44 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 45 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:43:51: error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| 41 | type: Self.self,
| 42 | properties: [
| 43 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| | |- error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 44 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 45 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:43:103: error: 'constant' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| 41 | type: Self.self,
| 42 | properties: [
| 43 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| | |- error: 'constant' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 44 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 45 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:44:34: error: 'GenerationSchema' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| 41 | type: Self.self,
| 42 | properties: [
| 43 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| 44 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 45 | ]
| 46 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:44:51: error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 37 | self.value = try content.value(forProperty: "value")
| 38 | }
| 39 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 40 | FoundationModels.GenerationSchema(
| 41 | type: Self.self,
| 42 | properties: [
| 43 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| 44 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| | |- error: 'init(name:description:type:guides:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 45 | ]
| 46 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:50:53: error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 51 | addProperty(name: "type", value: self.type)
| 52 | addProperty(name: "value", value: self.value)
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:51:9: error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 51 | addProperty(name: "type", value: self.type)
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 52 | addProperty(name: "value", value: self.value)
| 53 | return GeneratedContent(
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:52:9: error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 51 | addProperty(name: "type", value: self.type)
| 52 | addProperty(name: "value", value: self.value)
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 53 | return GeneratedContent(
| 54 | properties: properties,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:53:16: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 51 | addProperty(name: "type", value: self.type)
| 52 | addProperty(name: "value", value: self.value)
| 53 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 54 | properties: properties,
| 55 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:53:16: error: 'init(properties:id:uniquingKeysWith:)' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 51 | addProperty(name: "type", value: self.type)
| 52 | addProperty(name: "value", value: self.value)
| 53 | return GeneratedContent(
| | |- error: 'init(properties:id:uniquingKeysWith:)' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 54 | properties: properties,
| 55 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:59:52: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 57 | }
| 58 | )
| 59 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 60 | properties.append((name: name, value: value))
| 61 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:59:52: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 57 | }
| 58 | )
| 59 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 60 | properties.append((name: name, value: value))
| 61 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:62:53: error: 'Generable' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 29 | }
| 30 |
| 31 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 32 | @Guide(.constant("text"))
| 33 | let type: String
| :
| 46 | )
| 47 | }
| 48 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 49 | let explicitNil = false
| 50 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 60 | properties.append((name: name, value: value))
| 61 | }
| 62 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 63 | if explicitNil || value != nil {
| 64 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
74 | }
75 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile WWSaveFileTool.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug/WWSaveFileTool-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile resource_bundle_accessor.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-25 14:28:21.873 xcodebuild[725:4471] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:7f4d83a1ecded5169b3052a6ffe8a55ab61f5817, name:My Mac }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:7f4d83a1ecded5169b3052a6ffe8a55ab61f5817, name:My Mac }
{ platform:macOS, arch:arm64, variant:DriverKit, id:7f4d83a1ecded5169b3052a6ffe8a55ab61f5817, name:My Mac }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:7f4d83a1ecded5169b3052a6ffe8a55ab61f5817, name:My Mac }
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWSaveFileTool (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64 (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
Building workspace WWSaveFileTool with scheme WWSaveFileTool
(3 failures)
BUILD FAILURE 6.4 macosXcodebuild