Build Information
Failed to build WWSaveFileTool, reference 0.1.1 (e95ab8), with Swift 6.2 for macOS (SPM) on 1 Jul 2026 02:25:02 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:11:42: error: 'GeneratedContent' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
|12 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|13 | addProperty(name: "filename", value: self.filename)
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:32:20: error: 'GenerationID' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|29 | }
|30 |
|31 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|32 | public var id: GenerationID
| | `- error: 'GenerationID' is only available in macOS 26.0 or newer
|33 | public var filename: String.PartiallyGenerated?
|34 | public var payload: FilePayload.PartiallyGenerated?
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:33:33: error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|29 | }
|30 |
|31 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|32 | public var id: GenerationID
|33 | public var filename: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in macOS 26.0 or newer
|34 | public var payload: FilePayload.PartiallyGenerated?
|35 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:35: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 ------------------------------------
|29 | }
|30 |
|31 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|32 | public var id: GenerationID
|33 | public var filename: String.PartiallyGenerated?
|34 | public var payload: FilePayload.PartiallyGenerated?
|35 | 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
|36 | self.id = content.id ?? GenerationID()
|37 | self.filename = try content.value(forProperty: "filename")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:31: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 ------------------------------------
|29 | }
|30 |
|31 | 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
|32 | public var id: GenerationID
|33 | 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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | addProperty(name: "type", value: self.type)
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:66: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| | `- error: 'Guide(description:_:)' is only available in macOS 26.0 or newer
| 67 | let type: String
| 68 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:66: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| | `- error: 'constant' is only available in macOS 26.0 or newer
| 67 | let type: String
| 68 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:69: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| 68 | let value: String
| 69 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 70 | self.type = try content.value(forProperty: "type")
| 71 | self.value = try content.value(forProperty: "value")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:73: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
| 73 | 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
| 74 | FoundationModels.GenerationSchema(
| 75 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:82: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | addProperty(name: "type", value: self.type)
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:103: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 ------------------------------------
|101 | }
|102 |
|103 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add '@available' attribute to enclosing property
|104 | switch self {
|105 | 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:13: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 | 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: "saved", value: self.saved)
|15 | addProperty(name: "path", value: self.path)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:14: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | 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
|15 | addProperty(name: "path", value: self.path)
|16 | addProperty(name: "byteCount", value: self.byteCount)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:15: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "saved", value: self.saved)
|15 | 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
|16 | addProperty(name: "byteCount", value: self.byteCount)
|17 | return GeneratedContent(
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:16: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "saved", value: self.saved)
|15 | addProperty(name: "path", value: self.path)
|16 | 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
|17 | return GeneratedContent(
|18 | properties: properties,
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:17: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "saved", value: self.saved)
|15 | addProperty(name: "path", value: self.path)
|16 | addProperty(name: "byteCount", value: self.byteCount)
|17 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|18 | properties: properties,
|19 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:23: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "saved", value: self.saved)
| :
|21 | }
|22 | )
|23 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|24 | properties.append((name, value))
|25 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:23: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "saved", value: self.saved)
| :
|21 | }
|22 | )
|23 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|24 | properties.append((name, value))
|25 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:26: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "saved", value: self.saved)
| :
|24 | properties.append((name, value))
|25 | }
|26 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|27 | if let value {
|28 | properties.append((name, value))
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:26: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "saved", value: self.saved)
| :
|24 | properties.append((name, value))
|25 | }
|26 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|27 | if let value {
|28 | properties.append((name, value))
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:39: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 ------------------------------------
|31 | }
|32 |
|33 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|34 | public var id: GenerationID
|35 | public var saved: Bool.PartiallyGenerated?
|36 | public var path: String.PartiallyGenerated?
|37 | public var byteCount: Int.PartiallyGenerated?
|38 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|39 | self.id = content.id ?? GenerationID()
| | |- error: 'GenerationID' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|40 | self.saved = try content.value(forProperty: "saved")
|41 | self.path = try content.value(forProperty: "path")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:40: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 ------------------------------------
|31 | }
|32 |
|33 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|34 | public var id: GenerationID
|35 | public var saved: Bool.PartiallyGenerated?
|36 | public var path: String.PartiallyGenerated?
|37 | public var byteCount: Int.PartiallyGenerated?
|38 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|39 | self.id = content.id ?? GenerationID()
|40 | 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
|41 | self.path = try content.value(forProperty: "path")
|42 | self.byteCount = try content.value(forProperty: "byteCount")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:41: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 ------------------------------------
|31 | }
|32 |
|33 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|34 | public var id: GenerationID
|35 | public var saved: Bool.PartiallyGenerated?
|36 | public var path: String.PartiallyGenerated?
|37 | public var byteCount: Int.PartiallyGenerated?
|38 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|39 | self.id = content.id ?? GenerationID()
|40 | self.saved = try content.value(forProperty: "saved")
|41 | 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
|42 | self.byteCount = try content.value(forProperty: "byteCount")
|43 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:42: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 ------------------------------------
|31 | }
|32 |
|33 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|34 | public var id: GenerationID
|35 | public var saved: Bool.PartiallyGenerated?
|36 | public var path: String.PartiallyGenerated?
|37 | public var byteCount: Int.PartiallyGenerated?
|38 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|39 | self.id = content.id ?? GenerationID()
|40 | self.saved = try content.value(forProperty: "saved")
|41 | self.path = try content.value(forProperty: "path")
|42 | 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
|43 | }
|44 | }
+-------------------------------------------------------------------
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:12: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|13 | addProperty(name: "filename", value: self.filename)
|14 | addProperty(name: "payload", value: self.payload)
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:13: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|13 | 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
|14 | addProperty(name: "payload", value: self.payload)
|15 | return GeneratedContent(
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:15: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|13 | addProperty(name: "filename", value: self.filename)
|14 | addProperty(name: "payload", value: self.payload)
|15 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|16 | properties: properties,
|17 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:21: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|13 | addProperty(name: "filename", value: self.filename)
| :
|19 | }
|20 | )
|21 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|22 | properties.append((name, value))
|23 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:21: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|13 | addProperty(name: "filename", value: self.filename)
| :
|19 | }
|20 | )
|21 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|22 | properties.append((name, value))
|23 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:24: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|13 | addProperty(name: "filename", value: self.filename)
| :
|22 | properties.append((name, value))
|23 | }
|24 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|25 | if let value {
|26 | properties.append((name, value))
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:24: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|13 | addProperty(name: "filename", value: self.filename)
| :
|22 | properties.append((name, value))
|23 | }
|24 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
|25 | if let value {
|26 | properties.append((name, value))
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:36: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 ------------------------------------
|29 | }
|30 |
|31 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|32 | public var id: GenerationID
|33 | public var filename: String.PartiallyGenerated?
|34 | public var payload: FilePayload.PartiallyGenerated?
|35 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|36 | self.id = content.id ?? GenerationID()
| | |- error: 'GenerationID' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|37 | self.filename = try content.value(forProperty: "filename")
|38 | self.payload = try content.value(forProperty: "payload")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:37: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 ------------------------------------
|29 | }
|30 |
|31 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|32 | public var id: GenerationID
|33 | public var filename: String.PartiallyGenerated?
|34 | public var payload: FilePayload.PartiallyGenerated?
|35 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|36 | self.id = content.id ?? GenerationID()
|37 | 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
|38 | self.payload = try content.value(forProperty: "payload")
|39 | }
+-------------------------------------------------------------------
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:45: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 46 | addProperty(name: "type", value: self.type)
| 47 | addProperty(name: "value", value: self.value)
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:46: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | 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
| 47 | addProperty(name: "value", value: self.value)
| 48 | return GeneratedContent(
+-------------------------------------------------------------------
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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | addProperty(name: "type", value: self.type)
| 47 | 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
| 48 | return GeneratedContent(
| 49 | properties: properties,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:48: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | addProperty(name: "type", value: self.type)
| 47 | addProperty(name: "value", value: self.value)
| 48 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 49 | properties: properties,
| 50 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:54: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | addProperty(name: "type", value: self.type)
| :
| 52 | }
| 53 | )
| 54 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 55 | properties.append((name, value))
| 56 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:54: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | addProperty(name: "type", value: self.type)
| :
| 52 | }
| 53 | )
| 54 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 55 | properties.append((name, value))
| 56 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:57: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | addProperty(name: "type", value: self.type)
| :
| 55 | properties.append((name, value))
| 56 | }
| 57 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 58 | if let value {
| 59 | properties.append((name, value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:57: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 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 46 | addProperty(name: "type", value: self.type)
| :
| 55 | properties.append((name, value))
| 56 | }
| 57 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 58 | if let value {
| 59 | properties.append((name, value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:70: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| 68 | let value: String
| 69 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 70 | 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
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:71: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| 68 | let value: String
| 69 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 70 | self.type = try content.value(forProperty: "type")
| 71 | 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
| 72 | }
| 73 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:74: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
| 73 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 74 | FoundationModels.GenerationSchema(
| | |- error: 'GenerationSchema' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 75 | type: Self.self,
| 76 | properties: [
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:77: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
| 73 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 74 | FoundationModels.GenerationSchema(
| 75 | type: Self.self,
| 76 | properties: [
| 77 | 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
| 78 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 79 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:77: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
| 73 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 74 | FoundationModels.GenerationSchema(
| 75 | type: Self.self,
| 76 | properties: [
| 77 | 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
| 78 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 79 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:77: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
| 73 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 74 | FoundationModels.GenerationSchema(
| 75 | type: Self.self,
| 76 | properties: [
| 77 | 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
| 78 | FoundationModels.GenerationSchema.Property(name: "value", type: String.self)
| 79 | ]
+-------------------------------------------------------------------
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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
| 73 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 74 | FoundationModels.GenerationSchema(
| 75 | type: Self.self,
| 76 | properties: [
| 77 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("binaryBase64")]),
| 78 | 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
| 79 | ]
| 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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 71 | self.value = try content.value(forProperty: "value")
| 72 | }
| 73 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 74 | FoundationModels.GenerationSchema(
| 75 | type: Self.self,
| 76 | properties: [
| 77 | FoundationModels.GenerationSchema.Property(name: "type", type: String.self, guides: [.constant("binaryBase64")]),
| 78 | 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
| 79 | ]
| 80 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:83: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 84 | addProperty(name: "type", value: self.type)
| 85 | addProperty(name: "value", value: self.value)
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:84: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | 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
| 85 | addProperty(name: "value", value: self.value)
| 86 | return GeneratedContent(
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:85: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | addProperty(name: "type", value: self.type)
| 85 | 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
| 86 | return GeneratedContent(
| 87 | properties: properties,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:86: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | addProperty(name: "type", value: self.type)
| 85 | addProperty(name: "value", value: self.value)
| 86 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
| 87 | properties: properties,
| 88 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:92: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | addProperty(name: "type", value: self.type)
| :
| 90 | }
| 91 | )
| 92 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 93 | properties.append((name, value))
| 94 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:92: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | addProperty(name: "type", value: self.type)
| :
| 90 | }
| 91 | )
| 92 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 93 | properties.append((name, value))
| 94 | }
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:95: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | addProperty(name: "type", value: self.type)
| :
| 93 | properties.append((name, value))
| 94 | }
| 95 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 96 | if let value {
| 97 | properties.append((name, value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:95: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 ------------------------------------
| 63 | }
| 64 |
| 65 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 66 | @Guide(.constant("binaryBase64"))
| 67 | let type: String
| :
| 80 | )
| 81 | }
| 82 | nonisolated var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
| 83 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| 84 | addProperty(name: "type", value: self.type)
| :
| 93 | properties.append((name, value))
| 94 | }
| 95 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in macOS 26.0 or newer
| 96 | if let value {
| 97 | properties.append((name, value))
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:106: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 ------------------------------------
|101 | }
|102 |
|103 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|104 | switch self {
|105 | case .text(let value):
|106 | GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|107 | properties: [
|108 | "type": "text",
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:108: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 ------------------------------------
|101 | }
|102 |
|103 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|104 | switch self {
|105 | case .text(let value):
|106 | GeneratedContent(
|107 | properties: [
|108 | "type": "text",
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|109 | "value": value
|110 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:109: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 ------------------------------------
|101 | }
|102 |
|103 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|104 | switch self {
|105 | case .text(let value):
| :
|107 | properties: [
|108 | "type": "text",
|109 | "value": value
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|110 | ]
|111 | )
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:113: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 ------------------------------------
|101 | }
|102 |
|103 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|104 | switch self {
|105 | case .text(let value):
| :
|111 | )
|112 | case .binaryBase64(let value):
|113 | GeneratedContent(
| | |- error: 'GeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|114 | properties: [
|115 | "type": "binaryBase64",
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:115: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 ------------------------------------
|101 | }
|102 |
|103 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|104 | switch self {
|105 | case .text(let value):
| :
|113 | GeneratedContent(
|114 | properties: [
|115 | "type": "binaryBase64",
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|116 | "value": value
|117 | ]
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:116: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 ------------------------------------
|101 | }
|102 |
|103 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|104 | switch self {
|105 | case .text(let value):
| :
|114 | properties: [
|115 | "type": "binaryBase64",
|116 | "value": value
| | |- error: conformance of 'String' to 'ConvertibleToGeneratedContent' is only available in macOS 26.0 or newer
| | `- note: add 'if #available' version check
|117 | ]
|118 | )
+-------------------------------------------------------------------
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: - 函式呼叫函實做
[9/9] Compiling WWSaveFileTool Service.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in macOS 26.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
| `- error: 'Generable(description:)' is only available in macOS 26.0 or newer
25 | public struct Output {
26 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift:42:27: error: 'documentsDirectory' is only available in macOS 13.0 or newer
28 |
29 | // MARK: - 公開工具
30 | extension WWSaveFileTool.Service {
| `- note: add '@available' attribute to enclosing extension
31 |
32 | /// 將指定內容儲存到 App 的 Documents 目錄
:
37 | /// - Returns: 存檔完成後的結果資訊
38 | /// - Throws: 當副檔名不支援或檔案寫入失敗時拋出錯誤
39 | func save(with filename: String, type: WWSaveFileTool.FileType) throws -> WWSaveFileTool.Output {
| `- note: add '@available' attribute to enclosing instance method
40 |
41 | let sanitizedFilename = sanitize(filename)
42 | let fileURL = URL.documentsDirectory.appendingPathComponent(sanitizedFilename, isDirectory: false)
| |- error: 'documentsDirectory' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
43 | let data: Data
44 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift:53:49: error: 'path(percentEncoded:)' is only available in macOS 13.0 or newer
28 |
29 | // MARK: - 公開工具
30 | extension WWSaveFileTool.Service {
| `- note: add '@available' attribute to enclosing extension
31 |
32 | /// 將指定內容儲存到 App 的 Documents 目錄
:
37 | /// - Returns: 存檔完成後的結果資訊
38 | /// - Throws: 當副檔名不支援或檔案寫入失敗時拋出錯誤
39 | func save(with filename: String, type: WWSaveFileTool.FileType) throws -> WWSaveFileTool.Output {
| `- note: add '@available' attribute to enclosing instance method
40 |
41 | let sanitizedFilename = sanitize(filename)
:
51 |
52 | try data.write(to: fileURL, options: .atomic)
53 | return .init(saved: true, path: fileURL.path(), byteCount: data.count)
| |- error: 'path(percentEncoded:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift:120:25: error: 'now' is only available in macOS 12 or newer
56 |
57 | // MARK: - 小工具
58 | private extension WWSaveFileTool.Service {
| `- note: add '@available' attribute to enclosing extension
59 |
60 | /// 清理檔名中的非法字元,避免產生無效檔案路徑
:
113 | /// - allowedExtensions: 允許的副檔名清單
114 | /// - Returns: 格式為 `yyyy-MM-dd_HH-mm-ss-SSS.<extension>` 的檔名
115 | func timestampFilename(extension: String) -> String {
| `- note: add '@available' attribute to enclosing instance method
116 |
117 | let formatter = DateFormatter()
118 | formatter.dateFormat = "yyyy-MM-dd_HH-mm-ss"
119 |
120 | let date = Date.now
| |- error: 'now' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
121 | let base = formatter.string(from: date)
122 | let ms = Int((date.timeIntervalSince1970.truncatingRemainder(dividingBy: 1) * 1000))
BUILD FAILURE 6.2 macosSpm