Build Information
Failed to build WWSaveFileTool, reference main (e95ab8), with Swift 6.4 for watchOS using Xcode 27.0 on 25 Sep 2026 18:28:28 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme WWSaveFileTool -destination generic/platform=watchOSBuild Log
SwiftCompile normal arm64 (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ Service.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Service.swift
SwiftCompile normal arm64_32 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ WWSaveFileTool (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in watchOS 27.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 watchOS 27.0 or newer
25 | public struct Output {
26 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:50:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
:
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
51 | public struct Arguments {
52 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:27:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
28 | public let saved: Bool
29 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:30:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
28 | public let saved: Bool
29 |
30 | @Guide(description: "The path of the saved file.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
31 | public let path: String
32 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:33:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
31 | public let path: String
32 |
33 | @Guide(description: "The number of bytes in the saved file.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
34 | public let byteCount: Int
35 |
macro expansion @Generable:1:66: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:12:42: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:35:20: error: 'GenerationID' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
| | `- error: 'GenerationID' is only available in watchOS 27.0 or newer
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:36:28: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:37:29: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:38:31: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
|40 | self.id = content.id ?? GenerationID()
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:39:57: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:34:27: warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:53:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
49 | /// 工具執行時需要的輸入參數
50 | @Generable
51 | public struct Arguments {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
54 | public let filename: String
55 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:56:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
49 | /// 工具執行時需要的輸入參數
50 | @Generable
51 | public struct Arguments {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
54 | public let filename: String
55 |
56 | @Guide(description: "The content to be written to the file.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
57 | public let payload: FilePayload
58 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:69:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
:
67 | }
68 |
69 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
macro expansion @Generable:1:66: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:33:20: error: 'GenerationID' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
| | `- error: 'GenerationID' is only available in watchOS 27.0 or newer
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:34:33: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:36:57: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
|38 | self.filename = try content.value(forProperty: "filename")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:32:27: warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
+-------------------------------------------------------------------
68 |
69 | @Generable
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:50:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| 29 | let type: String
| 30 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:28:13: error: 'constant' is only available in watchOS 27.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 watchOS 27.0 or newer
| 29 | let type: String
| 30 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:31:50: error: 'GeneratedContent' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:67:6: error: 'Guide(description:_:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| | `- error: 'Guide(description:_:)' is only available in watchOS 27.0 or newer
| 68 | let type: String
| 69 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:67:13: error: 'constant' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| | `- error: 'constant' is only available in watchOS 27.0 or newer
| 68 | let type: String
| 69 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:70:50: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| 69 | let value: String
| 70 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 71 | self.type = try content.value(forProperty: "type")
| 72 | self.value = try content.value(forProperty: "value")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:74:63: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:83:39: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:105:42: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
+-------------------------------------------------------------------
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:69:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
67 | }
68 |
69 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 3 | let type: String = try content.value(forProperty: "type")
| 4 | switch type {
+-------------------------------------------------------------------
75 |
76 | // MARK: - 函式呼叫函實做
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Constant.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift -target arm64_32-apple-watchos26.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationModelsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationModelsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool-dependencies-2.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=5 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWSaveFileTool -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWSaveFileTool.build/Debug-watchos/WWSaveFileTool-t.build/Objects-normal/arm64_32/WWSaveFileTool.abi.json
SwiftCompile normal arm64_32 (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Error.swift
SwiftCompile normal arm64_32 Compiling\ Constant.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Constant.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Constant.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Constant.swift
SwiftCompile normal arm64 Compiling\ Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Error.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Error.swift
SwiftCompile normal arm64_32 Compiling\ WWSaveFileTool.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in watchOS 27.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 watchOS 27.0 or newer
25 | public struct Output {
26 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:50:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
:
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
51 | public struct Arguments {
52 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:27:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
28 | public let saved: Bool
29 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:30:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
28 | public let saved: Bool
29 |
30 | @Guide(description: "The path of the saved file.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
31 | public let path: String
32 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:33:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
23 |
24 | @Generable
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
31 | public let path: String
32 |
33 | @Guide(description: "The number of bytes in the saved file.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
34 | public let byteCount: Int
35 |
macro expansion @Generable:1:66: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:12:42: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:35:20: error: 'GenerationID' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
| | `- error: 'GenerationID' is only available in watchOS 27.0 or newer
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:36:28: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:37:29: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:38:31: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
|40 | self.id = content.id ?? GenerationID()
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:39:57: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:34:27: warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:24:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
25 | public struct Output {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:53:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
49 | /// 工具執行時需要的輸入參數
50 | @Generable
51 | public struct Arguments {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
54 | public let filename: String
55 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:56:10: error: 'Guide(description:)' is only available in watchOS 27.0 or newer
49 | /// 工具執行時需要的輸入參數
50 | @Generable
51 | public struct Arguments {
| |- note: add '@available' attribute to enclosing struct
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
54 | public let filename: String
55 |
56 | @Guide(description: "The content to be written to the file.")
| `- error: 'Guide(description:)' is only available in watchOS 27.0 or newer
57 | public let payload: FilePayload
58 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:69:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
20 |
21 | // MARK: - 結構規格
22 | extension WWSaveFileTool {
| `- note: add '@available' attribute to enclosing extension
23 |
24 | @Generable
:
67 | }
68 |
69 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.0 or newer
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
macro expansion @Generable:1:66: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:33:20: error: 'GenerationID' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
| | `- error: 'GenerationID' is only available in watchOS 27.0 or newer
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:34:33: error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
| | `- error: 'PartiallyGenerated' is only available in watchOS 27.0 or newer
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:36:57: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
|38 | self.filename = try content.value(forProperty: "filename")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:32:27: warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- warning: protocol 'Identifiable' requires 'GenerationID' to be available in watchOS 26.0 and newer; this will be an error in a future Swift language mode
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
+-------------------------------------------------------------------
68 |
69 | @Generable
FoundationModels.GenerationID:3:15: note: 'GenerationID' declared here
1 | @available(iOS 26.0, macOS 26.0, watchOS 27.0, *)
2 | @available(tvOS, unavailable)
3 | public struct GenerationID : Sendable, Hashable {
| `- note: 'GenerationID' declared here
4 | public static func == (a: GenerationID, b: GenerationID) -> Bool
5 | public func hash(into hasher: inout Hasher)
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:50:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| 29 | let type: String
| 30 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:28:13: error: 'constant' is only available in watchOS 27.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 watchOS 27.0 or newer
| 29 | let type: String
| 30 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:31:50: error: 'GeneratedContent' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 45 | let explicitNil = false
| 46 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:67:6: error: 'Guide(description:_:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| | `- error: 'Guide(description:_:)' is only available in watchOS 27.0 or newer
| 68 | let type: String
| 69 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:67:13: error: 'constant' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | |- note: add '@available' attribute to enclosing struct
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| | `- error: 'constant' is only available in watchOS 27.0 or newer
| 68 | let type: String
| 69 | let value: String
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:70:50: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| 69 | let value: String
| 70 | nonisolated init(_ content: FoundationModels.GeneratedContent) throws {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing initializer
| 71 | self.type = try content.value(forProperty: "type")
| 72 | self.value = try content.value(forProperty: "value")
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:74:63: error: 'GenerationSchema' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 72 | self.value = try content.value(forProperty: "value")
| 73 | }
| 74 | nonisolated static var generationSchema: FoundationModels.GenerationSchema {
| | | `- error: 'GenerationSchema' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing static property
| 75 | FoundationModels.GenerationSchema(
| 76 | type: Self.self,
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:83:39: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 64 | }
| 65 |
| 66 | private nonisolated struct DiscriminatedBinaryBase64: nonisolated FoundationModels.Generable {
| | `- note: add '@available' attribute to enclosing struct
| 67 | @Guide(.constant("binaryBase64"))
| 68 | let type: String
| :
| 81 | )
| 82 | }
| 83 | nonisolated var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
| 84 | let explicitNil = false
| 85 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:105:42: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
| `- note: add '@available' attribute to enclosing enum
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
|103 | }
|104 |
|105 | nonisolated public var generatedContent: GeneratedContent {
| | | `- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add '@available' attribute to enclosing property
|106 | switch self {
|107 | case .text(let value):
+-------------------------------------------------------------------
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:69:6: error: 'Generable(description:)' is only available in watchOS 27.0 or newer
67 | }
68 |
69 | @Generable
| `- error: 'Generable(description:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 3 | type: Self.self,
| 4 | properties: [
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:2:22: error: 'init(type:description:properties:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| | |- error: 'init(type:description:properties:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:5:47: error: 'init(name:description:type:guides:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| | |- error: 'init(name:description:type:guides:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
| 8 | ]
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:6:47: error: 'init(name:description:type:guides:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| | |- error: 'init(name:description:type:guides:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 8 | ]
| 9 | )
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:7:47: error: 'init(name:description:type:guides:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| :
| 5 | FoundationModels.GenerationSchema.Property(name: "saved", description: "Whether the file was saved successfully.", type: Bool.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "path", description: "The path of the saved file.", type: String.self),
| 7 | FoundationModels.GenerationSchema.Property(name: "byteCount", description: "The number of bytes in the saved file.", type: Int.self)
| | |- error: 'init(name:description:type:guides:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 8 | ]
| 9 | )
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:14:49: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|15 | addProperty(name: "saved", value: self.saved)
|16 | addProperty(name: "path", value: self.path)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:15:5: error: conformance of 'Bool' to 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|15 | addProperty(name: "saved", value: self.saved)
| | |- error: conformance of 'Bool' to 'Generable' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:16:5: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|15 | addProperty(name: "saved", value: self.saved)
|16 | addProperty(name: "path", value: self.path)
| | |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|17 | addProperty(name: "byteCount", value: self.byteCount)
|18 | return GeneratedContent(
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:17:5: error: conformance of 'Int' to 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|15 | addProperty(name: "saved", value: self.saved)
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
| | |- error: conformance of 'Int' to 'Generable' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|18 | return GeneratedContent(
|19 | properties: properties,
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:18:12: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
|18 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|19 | properties: properties,
|20 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:18:12: error: 'init(properties:id:uniquingKeysWith:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|16 | addProperty(name: "path", value: self.path)
|17 | addProperty(name: "byteCount", value: self.byteCount)
|18 | return GeneratedContent(
| | |- error: 'init(properties:id:uniquingKeysWith:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|19 | properties: properties,
|20 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:24:48: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|22 | }
|23 | )
|24 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|25 | properties.append((name: name, value: value))
|26 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:24:48: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|22 | }
|23 | )
|24 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|25 | properties.append((name: name, value: value))
|26 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:27:49: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|25 | properties.append((name: name, value: value))
|26 | }
|27 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|28 | if explicitNil || value != nil {
|29 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:27:49: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|25 | properties.append((name: name, value: value))
|26 | }
|27 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|28 | if explicitNil || value != nil {
|29 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:29:47: error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
| `- note: add '@available' attribute to enclosing struct
26 |
27 | @Guide(description: "Whether the file was saved successfully.")
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|10 | }
|11 |
|12 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|13 | let explicitNil = false
|14 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|27 | func addProperty(name: String, value: (some Generable)?) {
|28 | if explicitNil || value != nil {
|29 | properties.append((name: name, value: value))
| | |- error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|30 | }
|31 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:40:33: error: 'GenerationID' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
| | |- error: 'GenerationID' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:40:33: error: 'init()' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
| | |- error: 'init()' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:41:34: error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
| | |- error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|42 | self.path = try content.value(forProperty: "path")
|43 | self.byteCount = try content.value(forProperty: "byteCount")
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:42:33: error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
| | |- error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|43 | self.byteCount = try content.value(forProperty: "byteCount")
|44 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:43:38: error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:47:5: note: expanded code originates here
22 | extension WWSaveFileTool {
23 |
24 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| |- note: in expansion of macro 'Generable' on struct 'Output' here
| `- note: in expansion of macro 'Generable' on struct 'Output' here
25 | public struct Output {
26 |
:
45 | self.byteCount = byteCount
46 | }
47 | }
+--- macro expansion @Generable ------------------------------------
|32 | }
|33 |
|34 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|35 | public var id: GenerationID
|36 | public var saved: Bool.PartiallyGenerated?
|37 | public var path: String.PartiallyGenerated?
|38 | public var byteCount: Int.PartiallyGenerated?
|39 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|40 | self.id = content.id ?? GenerationID()
|41 | self.saved = try content.value(forProperty: "saved")
|42 | self.path = try content.value(forProperty: "path")
|43 | self.byteCount = try content.value(forProperty: "byteCount")
| | |- error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|44 | }
|45 | }
+-------------------------------------------------------------------
48 |
49 | /// 工具執行時需要的輸入參數
macro expansion @Generable:2:22: error: 'GenerationSchema' is only available in watchOS 27.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 watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 3 | type: Self.self,
| 4 | properties: [
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:2:22: error: 'init(type:description:properties:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| | |- error: 'init(type:description:properties:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 6 | FoundationModels.GenerationSchema.Property(name: "payload", description: "The content to be written to the file.", type: FilePayload.self)
| 7 | ]
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:5:47: error: 'init(name:description:type:guides:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "filename", description: "The name of the file to be saved.", type: String.self),
| | |- error: 'init(name:description:type:guides:)' is only available in watchOS 27.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 watchOS 27.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 watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 7 | ]
| 8 | )
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:6:47: error: 'init(name:description:type:guides:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public static var generationSchema: FoundationModels.GenerationSchema {
| | `- note: add '@available' attribute to enclosing static property
| 2 | FoundationModels.GenerationSchema(
| 3 | type: Self.self,
| 4 | properties: [
| 5 | FoundationModels.GenerationSchema.Property(name: "filename", description: "The name of the file to be saved.", type: String.self),
| 6 | FoundationModels.GenerationSchema.Property(name: "payload", description: "The content to be written to the file.", type: FilePayload.self)
| | |- error: 'init(name:description:type:guides:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 7 | ]
| 8 | )
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:13:49: error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| | |- error: 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|14 | addProperty(name: "filename", value: self.filename)
|15 | addProperty(name: "payload", value: self.payload)
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:14:5: error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "filename", value: self.filename)
| | |- error: conformance of 'String' to 'Generable' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|15 | addProperty(name: "payload", value: self.payload)
|16 | return GeneratedContent(
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:16:12: error: 'GeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "filename", value: self.filename)
|15 | addProperty(name: "payload", value: self.payload)
|16 | return GeneratedContent(
| | |- error: 'GeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|17 | properties: properties,
|18 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:16:12: error: 'init(properties:id:uniquingKeysWith:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
|14 | addProperty(name: "filename", value: self.filename)
|15 | addProperty(name: "payload", value: self.payload)
|16 | return GeneratedContent(
| | |- error: 'init(properties:id:uniquingKeysWith:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|17 | properties: properties,
|18 | uniquingKeysWith: { _, second in
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:22:48: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|20 | }
|21 | )
|22 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|23 | properties.append((name: name, value: value))
|24 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:22:48: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|20 | }
|21 | )
|22 | func addProperty(name: String, value: some Generable) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|23 | properties.append((name: name, value: value))
|24 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:25:49: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|23 | properties.append((name: name, value: value))
|24 | }
|25 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|26 | if explicitNil || value != nil {
|27 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:25:49: error: 'Generable' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|23 | properties.append((name: name, value: value))
|24 | }
|25 | func addProperty(name: String, value: (some Generable)?) {
| | `- error: 'Generable' is only available in watchOS 27.0 or newer
|26 | if explicitNil || value != nil {
|27 | properties.append((name: name, value: value))
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:27:47: error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
| `- note: add '@available' attribute to enclosing struct
52 |
53 | @Guide(description: "The name of the file to be saved.")
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
| 9 | }
|10 |
|11 | nonisolated public var generatedContent: GeneratedContent {
| | `- note: add '@available' attribute to enclosing property
|12 | let explicitNil = false
|13 | var properties = [(name: String, value: any ConvertibleToGeneratedContent)]()
| :
|25 | func addProperty(name: String, value: (some Generable)?) {
|26 | if explicitNil || value != nil {
|27 | properties.append((name: name, value: value))
| | |- error: conformance of 'Optional<Wrapped>' to 'ConvertibleToGeneratedContent' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|28 | }
|29 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:37:33: error: 'GenerationID' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
| | |- error: 'GenerationID' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|38 | self.filename = try content.value(forProperty: "filename")
|39 | self.payload = try content.value(forProperty: "payload")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:37:33: error: 'init()' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
| | |- error: 'init()' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|38 | self.filename = try content.value(forProperty: "filename")
|39 | self.payload = try content.value(forProperty: "payload")
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:38:37: error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
|38 | self.filename = try content.value(forProperty: "filename")
| | |- error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|39 | self.payload = try content.value(forProperty: "payload")
|40 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile WWSaveFileTool.swift
macro expansion @Generable:39:36: error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:67:5: note: expanded code originates here
48 |
49 | /// 工具執行時需要的輸入參數
50 | @Generable
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| |- note: in expansion of macro 'Generable' on struct 'Arguments' here
| `- note: in expansion of macro 'Generable' on struct 'Arguments' here
51 | public struct Arguments {
52 |
:
65 | self.payload = payload
66 | }
67 | }
+--- macro expansion @Generable ------------------------------------
|30 | }
|31 |
|32 | nonisolated public struct PartiallyGenerated: Identifiable, nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing struct
|33 | public var id: GenerationID
|34 | public var filename: String.PartiallyGenerated?
|35 | public var payload: FilePayload.PartiallyGenerated?
|36 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
|37 | self.id = content.id ?? GenerationID()
|38 | self.filename = try content.value(forProperty: "filename")
|39 | self.payload = try content.value(forProperty: "payload")
| | |- error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
|40 | }
|41 | }
+-------------------------------------------------------------------
68 |
69 | @Generable
macro expansion @Generable:5:40: error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| | |- error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 6 | switch type {
| 7 | case "text":
+-------------------------------------------------------------------
74 | }
75 |
macro expansion @Generable:8:38: error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/WWSaveFileTool.swift:73:5: note: expanded code originates here
67 | }
68 |
69 | @Generable
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| |- note: in expansion of macro 'Generable' on enum 'FilePayload' here
| `- note: in expansion of macro 'Generable' on enum 'FilePayload' here
70 | public enum FilePayload {
71 | case text(String) // 以純文字形式提供的檔案內容
72 | case binaryBase64(String) // 以 base64 字串表示的二進位檔案內容
73 | }
+--- macro expansion @Generable ------------------------------------
| 1 | nonisolated public enum PartiallyGenerated: nonisolated FoundationModels.ConvertibleFromGeneratedContent {
| | `- note: add '@available' attribute to enclosing enum
| 2 | case text(String.PartiallyGenerated?)
| 3 | case binaryBase64(String.PartiallyGenerated?)
| 4 | nonisolated public init(_ content: FoundationModels.GeneratedContent) throws {
| | `- note: add '@available' attribute to enclosing initializer
| 5 | let type: String = try content.value(forProperty: "type")
| 6 | switch type {
| 7 | case "text":
| 8 | self = .text(try content.value(forProperty: "value"))
| | |- error: 'value(_:forProperty:)' is only available in watchOS 27.0 or newer
| | `- note: add 'if #available' version check
| 9 | case "binaryBase64":
| 10 | self = .binaryBase64(try content.value(forProperty: "value"))
+-------------------------------------------------------------------
74 | }
75 |
SwiftCompile normal arm64_32 Compiling\ Service.swift /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWSaveFileTool/Utility/Service.swift (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile Service.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-25 14:28:27.455 xcodebuild[755:4538] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWSaveFileTool (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64 (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ WWSaveFileTool (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
SwiftCompile normal arm64_32 (in target 'WWSaveFileTool' from project 'WWSaveFileTool')
Building workspace WWSaveFileTool with scheme WWSaveFileTool
(5 failures)
BUILD FAILURE 6.4 watchOS