The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GateEngine, reference main (8ac4b5), with Swift 6.2 for macOS (SPM) on 2 Mar 2026 18:29:09 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64

Build Log

 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[778/819] Compiling GateEngine SpotLight.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[779/819] Compiling GateEngine Paths.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[780/819] Compiling GateEngine Resource.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[781/819] Compiling GateEngine ResourceManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[782/819] Compiling GateEngine RawSkeletalAnimation.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[783/819] Compiling GateEngine RawSkeleton.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[784/819] Compiling GateEngine RawSkin.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[785/819] Compiling GateEngine SkeletalAnimation.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[786/819] Compiling GateEngine Skeleton.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[787/819] Compiling GateEngine Skin.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[788/819] Compiling GateEngine Sprite.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[789/819] Compiling GateEngine SpriteAnimation.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[790/819] Compiling GateEngine SpriteSheet.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[791/819] Compiling GateEngine ImageFont.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[792/819] Compiling GateEngine TTFFont.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[793/819] Compiling GateEngine Font.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[794/819] Compiling GateEngine Text.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[795/819] Compiling GateEngine RawTexture.swift
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:151:35: warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
149 |     public nonisolated static var `default`: Font { .tuffy }
150 |
151 |     public nonisolated static let tuffy: Font = Font(
    |                                   |- warning: static property 'tuffy' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'tuffy' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 |         ttfRegular: "GateEngine/Fonts/Tuffy/Tuffy.ttf",
153 |         bold: "GateEngine/Fonts/Tuffy/Tuffy_Bold.ttf",
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:157:35: warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
155 |         boldItalic: "GateEngine/Fonts/Tuffy/Tuffy_Bold_Italic.ttf"
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
    |                                   |- warning: static property 'micro' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'micro' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
159 |
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:158:35: warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
 34 | }
 35 |
 36 | public final class Font: OldResource {
    |                    `- note: class 'Font' does not conform to the 'Sendable' protocol
 37 |     @RequiresState(.ready)
 38 |     var backend: (any FontBackend)! = nil
    :
156 |     )
157 |     public nonisolated static let micro: Font = Font(pngRegular: "GateEngine/Fonts/Micro/micro.png")
158 |     public nonisolated static let babel: Font = Font(pngRegular: "GateEngine/Fonts/Babel/Babel.png")
    |                                   |- warning: static property 'babel' is not concurrency-safe because non-'Sendable' type 'Font' may have shared mutable state; this is an error in the Swift 6 language mode [#MutableGlobalVariable]
    |                                   |- note: add '@MainActor' to make static property 'babel' part of global actor 'MainActor'
    |                                   `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 |
160 |     public static func named(_ name: String) -> Font {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:57:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 55 |         #endif
 56 |         #if canImport(TrueType)
 57 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 58 |             do {
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:61:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 59 |                 let backend = try await TTFFont(regular: regular, bold: bold, italic: italic, boldItalic: boldItalic)
 60 |                 Task { @MainActor in
 61 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 62 |                     self.state = .ready
 63 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:67:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 65 |                 Task { @MainActor in
 66 |                     Log.debug("Resource \(regular) failed ->", error)
 67 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 68 |                 }
 69 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:86:9: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 84 |         self._backend.configure(withOwner: self)
 85 |         #endif
 86 |         Task {
    |         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  `- note: closure captures 'self' which is accessible to code in the current task
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:88:41: warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 86 |         Task {
 87 |             do {
 88 |                 let backend = try await ImageFont(regular: regular)
    |                                         `- warning: non-Sendable 'ImageFont'-typed result can not be returned from main actor-isolated initializer 'init(regular:)' to @concurrent context; this is an error in the Swift 6 language mode
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Backends/ImageFont.swift:8:8: note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  6 |  */
  7 |
  8 | struct ImageFont: FontBackend {
    |        `- note: consider making struct 'ImageFont' conform to the 'Sendable' protocol
  9 |     private let fontData: [Font.Style: (rawTexture: RawTexture, importer: any TextureImporter.Type)]
 10 |     internal var nativePointSizes: [Font.Style: UInt] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:90:34: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 88 |                 let backend = try await ImageFont(regular: regular)
 89 |                 Task { @MainActor in
 90 |                     self.backend = backend
    |                                  |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                                  `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 91 |                     self.state = .ready
 92 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/GateEngine/Resources/Text/Font.swift:96:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
 94 |                 Task { @MainActor in
 95 |                     Log.debug("Resource \(regular) failed ->", error)
 96 |                     self.state = .failed(error: error)
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode [#SendingRisksDataRace]
    |                     `- note: @concurrent task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later @concurrent uses
 97 |                 }
 98 |             } catch {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[796/819] Compiling GateEngine KeyboardEvent.swift
[797/819] Compiling GateEngine KeyboardKey.swift
[798/819] Compiling GateEngine KeyboardModifierMask.swift
[799/819] Compiling GateEngine Mouse.swift
[800/819] Compiling GateEngine MouseButton.swift
[801/819] Compiling GateEngine MouseScroller.swift
[802/819] Compiling GateEngine Touch.swift
[803/819] Compiling GateEngine TouchScreen.swift
[804/819] Compiling GateEngine TouchSurface.swift
[805/819] Compiling GateEngine AsynchronousFileSystem.swift
[806/819] Compiling GateEngine FileSystemTypes.swift
[807/819] Compiling GateEngine SynchronousFileSystem.swift
[808/819] Compiling GateEngine AndroidPlatform.swift
[809/819] Compiling GateEngine AppKitGLKitView.swift
[810/819] Compiling GateEngine AppKitMetalView.swift
[811/819] Compiling GateEngine AppKitViewController.swift
[812/819] Compiling GateEngine AppKitWindow.swift
[813/819] Compiling GateEngine AppKitPlatform.swift
[814/819] Compiling GateEngine AppleFileSystem.swift
[815/819] Compiling GateEngine AsynchronousAppleFileSystem.swift
[816/819] Compiling GateEngine SynchronousAppleFileSystem.swift
[817/819] Compiling GateEngine UIKitGLKitView.swift
[818/819] Compiling GateEngine UIKitMetalView.swift
[819/819] Compiling GateEngine UIKitViewController.swift
BUILD FAILURE 6.2 macosSpm