Build Information
Failed to build WWSaveFileTool, reference main (e95ab8), with Swift 6.3 for macOS (SPM) on 1 Jul 2026 02:26:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
|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 10.15 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 10.15 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:4:15: note: 'GenerationID' declared here
2 | @available(tvOS, unavailable)
3 | @available(watchOS, unavailable)
4 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
5 | public init()
6 | public static func == (a: GenerationID, b: GenerationID) -> Bool
/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:17: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 ------------------------------------
| 15 | }
| 16 |
| 17 | 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
| 18 | FoundationModels.GenerationSchema(
| 19 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:28: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| | `- error: 'Guide(description:_:)' is only available in macOS 26.0 or newer
| 29 | let type: String
| 30 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:28: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| | `- error: 'constant' is only available in macOS 26.0 or newer
| 29 | let type: String
| 30 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:31: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| 30 | let value: String
| 31 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 32 | self.type = try content.value(forProperty: "type")
| 33 | self.value = try content.value(forProperty: "value")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:35: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
| 35 | 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
| 36 | FoundationModels.GenerationSchema(
| 37 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:44: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:67: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| | `- error: 'Guide(description:_:)' is only available in macOS 26.0 or newer
| 68 | let type: String
| 69 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:67: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| | `- error: 'constant' is only available in macOS 26.0 or newer
| 68 | let type: String
| 69 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:70: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| 69 | let value: String
| 70 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 71 | self.type = try content.value(forProperty: "type")
| 72 | self.value = try content.value(forProperty: "value")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:74: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | 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
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:83: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:105: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 ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | 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: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: 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 ------------------------------------
| 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: conformance of 'Bool' to 'Generable' 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: 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 ------------------------------------
| 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: conformance of 'String' to 'Generable' 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: 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 ------------------------------------
| 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: conformance of 'Int' to 'Generable' 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: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:41:34: error: conformance of 'Bool' to 'ConvertibleFromGeneratedContent' 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: conformance of 'Bool' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'Int' to 'ConvertibleFromGeneratedContent' 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: conformance of 'Int' to 'ConvertibleFromGeneratedContent' 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: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: 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 ------------------------------------
| 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: conformance of 'String' to 'Generable' 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: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: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:38:37: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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:5:40: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 11 | default:
| 12 | throw FoundationModels.LanguageModelSession.GenerationError.decodingFailure(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Unexpected type \"\(type)\" for \(Self.self)"))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:12:36: 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 {
| :
| 10 | self = .binaryBase64(try content.value(forProperty: "value"))
| 11 | default:
| 12 | 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
| 13 | }
| 14 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:12:106: 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 {
| :
| 10 | self = .binaryBase64(try content.value(forProperty: "value"))
| 11 | default:
| 12 | 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
| 13 | }
| 14 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:18: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 ------------------------------------
| 15 | }
| 16 |
| 17 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 18 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 19 | type: Self.self,
| 20 | anyOf: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:32:33: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| 30 | let value: String
| 31 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 32 | self.type = try content.value(forProperty: "type")
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:33:34: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| 30 | let value: String
| 31 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 32 | self.type = try content.value(forProperty: "type")
| 33 | self.value = try content.value(forProperty: "value")
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 34 | }
| 35 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:36: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
| 35 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 36 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 37 | type: Self.self,
| 38 | properties: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:39: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
| 35 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 36 | FoundationModels.GenerationSchema(
| 37 | type: Self.self,
| 38 | properties: [
| 39 | 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
| 40 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 41 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:39:51: 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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
| 35 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 36 | FoundationModels.GenerationSchema(
| 37 | type: Self.self,
| 38 | properties: [
| 39 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 40 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 41 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:39: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
| 35 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 36 | FoundationModels.GenerationSchema(
| 37 | type: Self.self,
| 38 | properties: [
| 39 | 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
| 40 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 41 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:40: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
| 35 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 36 | FoundationModels.GenerationSchema(
| 37 | type: Self.self,
| 38 | properties: [
| 39 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| 40 | 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
| 41 | ]
| 42 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:40:51: 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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 33 | self.value = try content.value(forProperty: "value")
| 34 | }
| 35 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 36 | FoundationModels.GenerationSchema(
| 37 | type: Self.self,
| 38 | properties: [
| 39 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("text")]),
| 40 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 41 | ]
| 42 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:46: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 47 | addProperty(name: "type", value: self.type)
| 48 | addProperty(name: "value", value: self.value)
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:47: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 47 | 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
| 48 | addProperty(name: "value", value: self.value)
| 49 | return GeneratedContent(
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:48: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 47 | addProperty(name: "type", value: self.type)
| 48 | 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
| 49 | return GeneratedContent(
| 50 | properties: properties,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:49: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 47 | addProperty(name: "type", value: self.type)
| 48 | addProperty(name: "value", value: self.value)
| 49 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 50 | properties: properties,
| 51 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:55: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 53 | }
| 54 | )
| 55 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 56 | properties.append((name: name, value: value))
| 57 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:55: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 53 | }
| 54 | )
| 55 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 56 | properties.append((name: name, value: value))
| 57 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:58: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 56 | properties.append((name: name, value: value))
| 57 | }
| 58 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 59 | if explicitNil || value != nil {
| 60 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:58: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 56 | properties.append((name: name, value: value))
| 57 | }
| 58 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 59 | if explicitNil || value != nil {
| 60 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:60:51: 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: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 ------------------------------------
| 25 | }
| 26 |
| 27 | private nonisolated struct DiscriminatedText: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 28 | @Guide(.constant("text"))
| 29 | let type: String
| :
| 42 | )
| 43 | }
| 44 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 58 | func addProperty(name: String, value: (some Generable)?) {
| 59 | if explicitNil || value != nil {
| 60 | 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
| 61 | }
| 62 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:71:33: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| 69 | let value: String
| 70 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 71 | self.type = try content.value(forProperty: "type")
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:72:34: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| 69 | let value: String
| 70 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 71 | self.type = try content.value(forProperty: "type")
| 72 | self.value = try content.value(forProperty: "value")
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:75: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 76 | type: Self.self,
| 77 | properties: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:78: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
| 77 | properties: [
| 78 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("binaryBase64")]),
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 79 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 80 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:78:51: 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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
| 77 | properties: [
| 78 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("binaryBase64")]),
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 79 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 80 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:78: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
| 77 | properties: [
| 78 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("binaryBase64")]),
| | |- error: 'constant' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 79 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 80 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:79: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
| 77 | properties: [
| 78 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("binaryBase64")]),
| 79 | 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
| 80 | ]
| 81 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:79:51: 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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
| 77 | properties: [
| 78 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("binaryBase64")]),
| 79 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| | |- error: conformance of 'String' to 'Generable' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 80 | ]
| 81 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:85: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 86 | addProperty(name: "type", value: self.type)
| 87 | addProperty(name: "value", value: self.value)
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:86: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 86 | 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
| 87 | addProperty(name: "value", value: self.value)
| 88 | return GeneratedContent(
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:87: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 86 | addProperty(name: "type", value: self.type)
| 87 | 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
| 88 | return GeneratedContent(
| 89 | properties: properties,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:88: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 86 | addProperty(name: "type", value: self.type)
| 87 | addProperty(name: "value", value: self.value)
| 88 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 89 | properties: properties,
| 90 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:94: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 92 | }
| 93 | )
| 94 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 95 | properties.append((name: name, value: value))
| 96 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:94: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 92 | }
| 93 | )
| 94 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 95 | properties.append((name: name, value: value))
| 96 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:97: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 95 | properties.append((name: name, value: value))
| 96 | }
| 97 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 98 | if explicitNil || value != nil {
| 99 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:97: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 95 | properties.append((name: name, value: value))
| 96 | }
| 97 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 98 | if explicitNil || value != nil {
| 99 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:99:51: 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: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 ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
| 97 | func addProperty(name: String, value: (some Generable)?) {
| 98 | if explicitNil || value != nil {
| 99 | 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
|100 | }
|101 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:108:9: 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 {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
|108 | GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|109 | properties: [
|110 | "type": "text",
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:110:25: error: conformance of 'String' to '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
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
|108 | GeneratedContent(
|109 | properties: [
|110 | "type": "text",
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|111 | "value": value
|112 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:111:26: error: conformance of 'String' to '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
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
| :
|109 | properties: [
|110 | "type": "text",
|111 | "value": value
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|112 | ]
|113 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:115:9: 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 {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
| :
|113 | )
|114 | case .binaryBase64(let value):
|115 | GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|116 | properties: [
|117 | "type": "binaryBase64",
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:117:25: error: conformance of 'String' to '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
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
| :
|115 | GeneratedContent(
|116 | properties: [
|117 | "type": "binaryBase64",
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|118 | "value": value
|119 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:118:26: error: conformance of 'String' to '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
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
| :
|116 | properties: [
|117 | "type": "binaryBase64",
|118 | "value": value
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|119 | ]
|120 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:3:34: error: conformance of 'Bool' to 'ConvertibleFromGeneratedContent' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.saved = try content.value(forProperty: "saved")
| | |- error: conformance of 'Bool' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|4 | self.path = try content.value(forProperty: "path")
|5 | self.byteCount = try content.value(forProperty: "byteCount")
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:4:33: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.saved = try content.value(forProperty: "saved")
|4 | self.path = try content.value(forProperty: "path")
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|5 | self.byteCount = try content.value(forProperty: "byteCount")
|6 | }
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:5:38: error: conformance of 'Int' to 'ConvertibleFromGeneratedContent' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.saved = try content.value(forProperty: "saved")
|4 | self.path = try content.value(forProperty: "path")
|5 | self.byteCount = try content.value(forProperty: "byteCount")
| | |- error: conformance of 'Int' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|6 | }
|7 | }
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:3:37: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
|3 | self.filename = try content.value(forProperty: "filename")
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|4 | self.payload = try content.value(forProperty: "payload")
|5 | }
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:3:40: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 4 | switch type {
| 5 | case "text":
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:6:38: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| 4 | switch type {
| 5 | case "text":
| 6 | self = .text(try content.value(forProperty: "value"))
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 7 | case "binaryBase64":
| 8 | self = .binaryBase64(try content.value(forProperty: "value"))
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:8:46: error: conformance of 'String' to 'ConvertibleFromGeneratedContent' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| 4 | switch type {
| :
| 6 | self = .text(try content.value(forProperty: "value"))
| 7 | case "binaryBase64":
| 8 | self = .binaryBase64(try content.value(forProperty: "value"))
| | |- error: conformance of 'String' to 'ConvertibleFromGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 9 | default:
|10 | throw FoundationModels.LanguageModelSession.GenerationError.decodingFailure(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Unexpected type \"\(type)\" for \(Self.self)"))
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:10:36: error: 'LanguageModelSession' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| 4 | switch type {
| :
| 8 | self = .binaryBase64(try content.value(forProperty: "value"))
| 9 | default:
|10 | 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
|11 | }
|12 | }
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
macro expansion @Generable:10:106: error: 'LanguageModelSession' 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
| `- 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 {
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| 4 | switch type {
| :
| 8 | self = .binaryBase64(try content.value(forProperty: "value"))
| 9 | default:
|10 | 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
|11 | }
|12 | }
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
BUILD FAILURE 6.3 macosSpm