The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of ImGui, reference 1.89.5 (c81197), with Swift 6.0 for macOS (SPM) on 11 Oct 2024 13:13:46 UTC.

Swift 6 data race errors: 30

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ctreffs/SwiftImGui.git
Reference: 1.89.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ctreffs/SwiftImGui
 * tag               1.89.5     -> FETCH_HEAD
HEAD is now at c811974 Update ImGui to 1.89.5 (#17)
Submodule path '3rdparty/cimgui': checked out '1bb9cd73470f1fcdedf6c3f2e8dc1765463f2ad0'
Submodule path '3rdparty/cimgui/imgui': checked out '1ebb91382757777382b3629ced2a573996e46453'
Submodule '3rdparty/cimgui' (https://github.com/cimgui/cimgui.git) registered for path '3rdparty/cimgui'
Cloning into '/Users/admin/builder/spi-builder-workspace/3rdparty/cimgui'...
Submodule 'imgui' (https://github.com/ocornut/imgui.git) registered for path '3rdparty/cimgui/imgui'
Cloning into '/Users/admin/builder/spi-builder-workspace/3rdparty/cimgui/imgui'...
Cloned https://github.com/ctreffs/SwiftImGui.git
Revision (git rev-parse @):
c81197496f9227001fd5531673604a6f29f880b1
SUCCESS checkout https://github.com/ctreffs/SwiftImGui.git at 1.89.5
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftimgui",
      "name": "ImGui",
      "url": "https://github.com/ctreffs/SwiftImGui.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftImGui",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ctreffs/SwiftImGui.git
[1/1875] Fetching swiftimgui
Fetched https://github.com/ctreffs/SwiftImGui.git from cache (1.49s)
Creating working copy for https://github.com/ctreffs/SwiftImGui.git
Working copy of https://github.com/ctreffs/SwiftImGui.git resolved at 1.89.5 (c811974)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ctreffs/SwiftImGui.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/24] Write DemoMetal-macOS-entitlement.plist
[1/24] Write DemoMinimal-entitlement.plist
[2/24] Copying definitions.json
[2/24] Write sources
[6/24] Write AutoWrapper-entitlement.plist
[6/24] Write sources
[8/24] Write swift-version--4A847ED0836F2485.txt
[9/34] Compiling imgui_tables.cpp
[9/34] Compiling imgui_draw.cpp
[10/34] Compiling imgui_demo.cpp
[12/34] Compiling CImGui cimgui.cpp
[13/34] Compiling imgui_widgets.cpp
[14/34] Compiling imgui.cpp
[16/39] Emitting module ImGui
/Users/admin/builder/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:10:1: warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
 8 | import CImGui
 9 |
10 | extension ImVec1: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public static func == (lhs: ImVec1, rhs: ImVec1) -> Bool {
12 |         lhs.x == rhs.x
/Users/admin/builder/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:16:1: warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
14 | }
15 |
16 | extension ImVec2: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
17 |     public static func == (lhs: ImVec2, rhs: ImVec2) -> Bool {
18 |         lhs.x == rhs.x &&
/Users/admin/builder/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:23:1: warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
21 | }
22 |
23 | extension ImVec4: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
24 |     public static func == (lhs: ImVec4, rhs: ImVec4) -> Bool {
25 |         lhs.x == rhs.x &&
[17/39] Compiling ImGui Export.swift
[18/39] Compiling ImGui ImVec+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:10:1: warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
 8 | import CImGui
 9 |
10 | extension ImVec1: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public static func == (lhs: ImVec1, rhs: ImVec1) -> Bool {
12 |         lhs.x == rhs.x
/Users/admin/builder/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:16:1: warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
14 | }
15 |
16 | extension ImVec2: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
17 |     public static func == (lhs: ImVec2, rhs: ImVec2) -> Bool {
18 |         lhs.x == rhs.x &&
/Users/admin/builder/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:23:1: warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
21 | }
22 |
23 | extension ImVec4: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
24 |     public static func == (lhs: ImVec4, rhs: ImVec4) -> Bool {
25 |         lhs.x == rhs.x &&
[19/39] Compiling ImGui ImGui+Definitions.swift
[20/39] Compiling ImGui Helper.swift
[21/49] Compiling DemoMinimal main.swift
[22/49] Emitting module DemoMinimal
[22/49] Write Objects.LinkFileList
[23/49] Linking DemoMinimal
[24/49] Applying DemoMinimal
[26/49] Compiling AutoWrapper resource_bundle_accessor.swift
[27/49] Emitting module AutoWrapper
/Users/admin/builder/spi-builder-workspace/Sources/AutoWrapper/Exceptions.swift:65:23: warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 |     /// causes "Use of undeclared type '...'" compiler error.
65 |     public static let undeclardTypes: [String: Declaration] = [
   |                       |- warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'undeclardTypes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |         "ImBitArray": Declaration(name: "ImBitArray", typealiasType: "OpaquePointer"),
67 |         "ImChunkStream": Declaration(name: "ImChunkStream", typealiasType: "OpaquePointer"),
   :
75 | }
76 |
77 | public struct Declaration {
   |               `- note: consider making struct 'Declaration' conform to the 'Sendable' protocol
78 |     public let name: String
79 |     public let typealiasType: String
[28/49] Compiling AutoWrapper ArgT.swift
[29/49] Compiling AutoWrapper Definitions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AutoWrapper/Definitions.swift:38:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
 36 |     public let argsT: [ArgsT]
 37 |     public let ret: DataType?
 38 |     public let templated = false
    |                |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    |                |- note: set the initial value via the initializer or explicitly define a CodingKeys enum without a 'templated' case to silence this warning
    |                `- note: make the property mutable instead
 39 |     public let namespace: String?
 40 |
[30/49] Compiling AutoWrapper FunctionBodyRenderer.swift
[31/49] Compiling AutoWrapper Exceptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AutoWrapper/Exceptions.swift:65:23: warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 |     /// causes "Use of undeclared type '...'" compiler error.
65 |     public static let undeclardTypes: [String: Declaration] = [
   |                       |- warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'undeclardTypes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |         "ImBitArray": Declaration(name: "ImBitArray", typealiasType: "OpaquePointer"),
67 |         "ImChunkStream": Declaration(name: "ImChunkStream", typealiasType: "OpaquePointer"),
   :
75 | }
76 |
77 | public struct Declaration {
   |               `- note: consider making struct 'Declaration' conform to the 'Sendable' protocol
78 |     public let name: String
79 |     public let typealiasType: String
[32/49] Compiling AutoWrapper DataType.swift
/Users/admin/builder/spi-builder-workspace/Sources/AutoWrapper/Exceptions.swift:65:23: warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 |     /// causes "Use of undeclared type '...'" compiler error.
65 |     public static let undeclardTypes: [String: Declaration] = [
   |                       |- warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'undeclardTypes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |         "ImBitArray": Declaration(name: "ImBitArray", typealiasType: "OpaquePointer"),
67 |         "ImChunkStream": Declaration(name: "ImChunkStream", typealiasType: "OpaquePointer"),
   :
75 | }
76 |
77 | public struct Declaration {
   |               `- note: consider making struct 'Declaration' conform to the 'Sendable' protocol
78 |     public let name: String
79 |     public let typealiasType: String
[33/49] Compiling AutoWrapper SwiftKeywords.swift
[34/49] Compiling AutoWrapper Converter.swift
[35/49] Compiling AutoWrapper main.swift
/Users/admin/builder/spi-builder-workspace/Sources/AutoWrapper/Exceptions.swift:65:23: warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
63 |
64 |     /// causes "Use of undeclared type '...'" compiler error.
65 |     public static let undeclardTypes: [String: Declaration] = [
   |                       |- warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'undeclardTypes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |         "ImBitArray": Declaration(name: "ImBitArray", typealiasType: "OpaquePointer"),
67 |         "ImChunkStream": Declaration(name: "ImChunkStream", typealiasType: "OpaquePointer"),
   :
75 | }
76 |
77 | public struct Declaration {
   |               `- note: consider making struct 'Declaration' conform to the 'Sendable' protocol
78 |     public let name: String
79 |     public let typealiasType: String
[35/49] Write Objects.LinkFileList
[36/49] Linking AutoWrapper
[37/49] Applying AutoWrapper
[39/49] Compiling DemoMetal imgui_impl_osx.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:21:13: warning: var 'g_HostClockPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 19 |
 20 | // Data
 21 | private var g_HostClockPeriod: Double = 0.0
    |             |- warning: var 'g_HostClockPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_HostClockPeriod' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_HostClockPeriod' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 22 | private var g_Time: CFAbsoluteTime = 0.0 // Original approach uses: Double
 23 | private var g_MouseCursorHidden: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:22:13: warning: var 'g_Time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 20 | // Data
 21 | private var g_HostClockPeriod: Double = 0.0
 22 | private var g_Time: CFAbsoluteTime = 0.0 // Original approach uses: Double
    |             |- warning: var 'g_Time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_Time' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_Time' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 | private var g_MouseCursorHidden: Bool = false
 24 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:23:13: warning: var 'g_MouseCursorHidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 | private var g_HostClockPeriod: Double = 0.0
 22 | private var g_Time: CFAbsoluteTime = 0.0 // Original approach uses: Double
 23 | private var g_MouseCursorHidden: Bool = false
    |             |- warning: var 'g_MouseCursorHidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseCursorHidden' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseCursorHidden' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 24 |
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:25:13: warning: var 'g_MouseCursors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 | private var g_MouseCursorHidden: Bool = false
 24 |
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
    |             |- warning: var 'g_MouseCursors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseCursors' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseCursors' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | private var g_MouseJustPressed: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:26:13: warning: var 'g_MouseJustPressed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
 26 | private var g_MouseJustPressed: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
    |             |- warning: var 'g_MouseJustPressed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseJustPressed' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseJustPressed' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 28 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:27:13: warning: var 'g_MouseDown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
 26 | private var g_MouseJustPressed: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
    |             |- warning: var 'g_MouseDown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseDown' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseDown' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | private var g_FocusObserver: ImFocusObserver?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:29:13: warning: var 'g_FocusObserver' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 28 |
 29 | private var g_FocusObserver: ImFocusObserver?
    |             |- warning: var 'g_FocusObserver' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_FocusObserver' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_FocusObserver' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 | private var g_KeyEventResponder: KeyEventResponder?
 31 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:30:13: warning: var 'g_KeyEventResponder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | private var g_FocusObserver: ImFocusObserver?
 30 | private var g_KeyEventResponder: KeyEventResponder?
    |             |- warning: var 'g_KeyEventResponder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_KeyEventResponder' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_KeyEventResponder' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 | private var s_clipboard: UnsafeMutablePointer<CChar>?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:32:13: warning: var 's_clipboard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 | private var g_KeyEventResponder: KeyEventResponder?
 31 |
 32 | private var s_clipboard: UnsafeMutablePointer<CChar>?
    |             |- warning: var 's_clipboard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 's_clipboard' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 's_clipboard' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 | // MARK: - Functions
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:424:10: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
411 | class KeyEventResponder: NSView {}
412 |
413 | extension KeyEventResponder: NSTextInputClient {
    |                              `- note: add '@preconcurrency' to the 'NSTextInputClient' conformance to defer isolation checking to run time
414 |     override func viewDidMoveToWindow() {
415 |         // Ensure self is a first responder to receive the input events.
    :
422 |     }
423 |
424 |     func insertText(_ string: Any, replacementRange _: NSRange) {
    |          |- warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'insertText(_:replacementRange:)' to make this instance method not isolated to the actor
425 |         var characters: String?
426 |
AppKit.NSTextInputClient:2:10: note: 'insertText(_:replacementRange:)' declared here
 1 | public protocol NSTextInputClient {
 2 |     func insertText(_ string: Any, replacementRange: NSRange)
   |          `- note: 'insertText(_:replacementRange:)' declared here
 3 |     @available(macOS 10.0, *)
 4 |     func doCommand(by selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:440:19: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
438 |     }
439 |
440 |     override func doCommand(by _: Selector) {}
    |                   |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |                   `- note: add 'nonisolated' to 'doCommand(by:)' to make this instance method not isolated to the actor
441 |
442 |     func attributedSubstring(forProposedRange _: NSRange, actualRange _: NSRangePointer?) -> NSAttributedString? {
AppKit.NSTextInputClient:4:10: note: 'doCommand(by:)' declared here
 2 |     func insertText(_ string: Any, replacementRange: NSRange)
 3 |     @available(macOS 10.0, *)
 4 |     func doCommand(by selector: Selector)
   |          `- note: 'doCommand(by:)' declared here
 5 |     @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
 6 |     func doCommandBySelector(_ selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:466:10: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
464 |     }
465 |
466 |     func setMarkedText(_: Any, selectedRange _: NSRange, replacementRange _: NSRange) {}
    |          |- warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'setMarkedText(_:selectedRange:replacementRange:)' to make this instance method not isolated to the actor
467 |
468 |     func unmarkText() {}
AppKit.NSTextInputClient:7:10: note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
 5 |     @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
 6 |     func doCommandBySelector(_ selector: Selector)
 7 |     func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
   |          `- note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
 8 |     func unmarkText()
 9 |     func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:468:10: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
466 |     func setMarkedText(_: Any, selectedRange _: NSRange, replacementRange _: NSRange) {}
467 |
468 |     func unmarkText() {}
    |          |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'unmarkText()' to make this instance method not isolated to the actor
469 |
470 |     func validAttributesForMarkedText() -> [NSAttributedString.Key] {
AppKit.NSTextInputClient:8:10: note: 'unmarkText()' declared here
 6 |     func doCommandBySelector(_ selector: Selector)
 7 |     func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
 8 |     func unmarkText()
   |          `- note: 'unmarkText()' declared here
 9 |     func selectedRange() -> NSRange
10 |     func markedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:462:10: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
460 |     }
461 |
462 |     func selectedRange() -> NSRange {
    |          |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'selectedRange()' to make this instance method not isolated to the actor
463 |         NSMakeRange(NSNotFound, 0)
464 |     }
AppKit.NSTextInputClient:9:10: note: 'selectedRange()' declared here
 7 |     func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
 8 |     func unmarkText()
 9 |     func selectedRange() -> NSRange
   |          `- note: 'selectedRange()' declared here
10 |     func markedRange() -> NSRange
11 |     func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:458:10: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
456 |     }
457 |
458 |     func markedRange() -> NSRange {
    |          |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'markedRange()' to make this instance method not isolated to the actor
459 |         NSMakeRange(NSNotFound, 0)
460 |     }
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
 8 |     func unmarkText()
 9 |     func selectedRange() -> NSRange
10 |     func markedRange() -> NSRange
   |          `- note: 'markedRange()' declared here
11 |     func hasMarkedText() -> Bool
12 |     @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:454:10: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
452 |     }
453 |
454 |     func hasMarkedText() -> Bool {
    |          |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'hasMarkedText()' to make this instance method not isolated to the actor
455 |         false
456 |     }
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
 9 |     func selectedRange() -> NSRange
10 |     func markedRange() -> NSRange
11 |     func hasMarkedText() -> Bool
   |          `- note: 'hasMarkedText()' declared here
12 |     @available(macOS 10.0, *)
13 |     func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:442:10: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
440 |     override func doCommand(by _: Selector) {}
441 |
442 |     func attributedSubstring(forProposedRange _: NSRange, actualRange _: NSRangePointer?) -> NSAttributedString? {
    |          |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
443 |         nil
444 |     }
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 |     func hasMarkedText() -> Bool
12 |     @available(macOS 10.0, *)
13 |     func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
   |          `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 |     @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 |     func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:470:10: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
468 |     func unmarkText() {}
469 |
470 |     func validAttributesForMarkedText() -> [NSAttributedString.Key] {
    |          |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
471 |         []
472 |     }
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 |     func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 |     @available(macOS 10.0, *)
17 |     func validAttributesForMarkedText() -> [NSAttributedString.Key]
   |          `- note: 'validAttributesForMarkedText()' declared here
18 |     func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 |     @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:450:10: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
448 |     }
449 |
450 |     func firstRect(forCharacterRange _: NSRange, actualRange _: NSRangePointer?) -> NSRect {
    |          |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
451 |         NSZeroRect
452 |     }
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 |     @available(macOS 10.0, *)
17 |     func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 |     func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
   |          `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 |     @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 |     func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:446:10: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
444 |     }
445 |
446 |     func characterIndex(for _: NSPoint) -> Int {
    |          |- warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'characterIndex(for:)' to make this instance method not isolated to the actor
447 |         0
448 |     }
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 |     @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 |     func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 |     func characterIndex(for point: NSPoint) -> Int
   |          `- note: 'characterIndex(for:)' declared here
22 |     @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 |     func characterIndexForPoint(_ point: NSPoint) -> Int
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:144:27: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 35 |
 36 | @discardableResult
 37 | func ImGui_ImplOSX_Init(_ view: NSView) -> Bool {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_Init' part of global actor 'MainActor'
 38 |     let io = ImGuiGetIO()!
 39 |
    :
142 |     // to receive keyboard events and translate them to input text.
143 |
144 |     g_KeyEventResponder = KeyEventResponder(frame: NSZeroRect)
    |                           `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
145 |     view.addSubview(g_KeyEventResponder!)
146 |
    :
409 |  https://github.com/glfw/glfw/blob/b55a517ae0c7b5127dffa79a64f5406021bf9076/src/cocoa_window.m#L722-L723
410 |  */
411 | class KeyEventResponder: NSView {}
    |                                 `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
412 |
413 | extension KeyEventResponder: NSTextInputClient {
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:145:10: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 35 |
 36 | @discardableResult
 37 | func ImGui_ImplOSX_Init(_ view: NSView) -> Bool {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_Init' part of global actor 'MainActor'
 38 |     let io = ImGuiGetIO()!
 39 |
    :
143 |
144 |     g_KeyEventResponder = KeyEventResponder(frame: NSZeroRect)
145 |     view.addSubview(g_KeyEventResponder!)
    |          `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
146 |
147 |     return true
AppKit.NSView:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
 27 |     @available(macOS 10.5, *)
 28 |     open func viewDidUnhide()
 29 |     @MainActor open func addSubview(_ view: NSView)
    |                          `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
 30 |     open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
 31 |     open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:163:34: warning: main actor-isolated property 'backingScaleFactor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func ImGui_ImplOSX_NewFrame(_ view: NSView) {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_NewFrame' part of global actor 'MainActor'
159 |     // Setup display size
160 |     let ioRef = igGetIO()!
161 |     var io: ImGuiIO = ioRef.pointee
162 |
163 |     let dpi = Float(view.window?.backingScaleFactor ?? NSScreen.main!.backingScaleFactor)
    |                                  `- warning: main actor-isolated property 'backingScaleFactor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
164 |     io.DisplaySize = ImVec2(x: Float(view.bounds.size.width), y: Float(view.bounds.size.height))
165 |     io.DisplayFramebufferScale = ImVec2(x: dpi, y: dpi)
AppKit.NSWindow:232:25: note: property declared here
 230 |     open func backingAlignedRect(_ rect: NSRect, options: AlignmentOptions = []) -> NSRect
 231 |     @available(macOS 10.7, *)
 232 |     @MainActor open var backingScaleFactor: CGFloat { get }
     |                         `- note: property declared here
 233 |     open func performClose(_ sender: Any?)
 234 |     open func performMiniaturize(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:163:26: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func ImGui_ImplOSX_NewFrame(_ view: NSView) {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_NewFrame' part of global actor 'MainActor'
159 |     // Setup display size
160 |     let ioRef = igGetIO()!
161 |     var io: ImGuiIO = ioRef.pointee
162 |
163 |     let dpi = Float(view.window?.backingScaleFactor ?? NSScreen.main!.backingScaleFactor)
    |                          `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
164 |     io.DisplaySize = ImVec2(x: Float(view.bounds.size.width), y: Float(view.bounds.size.height))
165 |     io.DisplayFramebufferScale = ImVec2(x: dpi, y: dpi)
AppKit.NSView:4:30: note: property declared here
  2 |     @MainActor public init(frame frameRect: NSRect)
  3 |     @MainActor public init?(coder: NSCoder)
  4 |     unowned(unsafe) open var window: NSWindow? { get }
    |                              `- note: property declared here
  5 |     unowned(unsafe) open var superview: NSView? { get }
  6 |     open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:164:43: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func ImGui_ImplOSX_NewFrame(_ view: NSView) {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_NewFrame' part of global actor 'MainActor'
159 |     // Setup display size
160 |     let ioRef = igGetIO()!
    :
162 |
163 |     let dpi = Float(view.window?.backingScaleFactor ?? NSScreen.main!.backingScaleFactor)
164 |     io.DisplaySize = ImVec2(x: Float(view.bounds.size.width), y: Float(view.bounds.size.height))
    |                                           `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
165 |     io.DisplayFramebufferScale = ImVec2(x: dpi, y: dpi)
166 |
AppKit.NSView:76:14: note: property declared here
 74 |     @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
 75 |     open func rotateByAngle(_ angle: CGFloat)
 76 |     open var bounds: NSRect { get set }
    |              `- note: property declared here
 77 |     open var isFlipped: Bool { get }
 78 |     @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:164:77: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
156 | }
157 |
158 | func ImGui_ImplOSX_NewFrame(_ view: NSView) {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_NewFrame' part of global actor 'MainActor'
159 |     // Setup display size
160 |     let ioRef = igGetIO()!
    :
162 |
163 |     let dpi = Float(view.window?.backingScaleFactor ?? NSScreen.main!.backingScaleFactor)
164 |     io.DisplaySize = ImVec2(x: Float(view.bounds.size.width), y: Float(view.bounds.size.height))
    |                                                                             `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
165 |     io.DisplayFramebufferScale = ImVec2(x: dpi, y: dpi)
166 |
AppKit.NSView:76:14: note: property declared here
 74 |     @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
 75 |     open func rotateByAngle(_ angle: CGFloat)
 76 |     open var bounds: NSRect { get set }
    |              `- note: property declared here
 77 |     open var isFlipped: Bool { get }
 78 |     @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:211:27: warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 |
188 | @discardableResult
189 | func ImGui_ImplOSX_HandleEvent(_ event: NSEvent, _ view: NSView) -> Bool {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_HandleEvent' part of global actor 'MainActor'
190 |     let io = ImGuiGetIO()!
191 |
    :
209 |     if event.type == .mouseMoved || event.type == .leftMouseDragged || event.type == .rightMouseDragged || event.type == .otherMouseDragged {
210 |         var mousePoint = event.locationInWindow
211 |         mousePoint = view.convert(mousePoint, from: nil)
    |                           `- warning: call to main actor-isolated instance method 'convert(_:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
212 |         mousePoint = NSPoint(x: mousePoint.x, y: view.bounds.size.height - mousePoint.y)
213 |         io.pointee.MousePos = ImVec2(x: Float(mousePoint.x), y: Float(mousePoint.y))
AppKit.NSView:89:15: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
 87 |     @available(swift, obsoleted: 3, renamed: "isOpaque")
 88 |     open var opaque: Bool { get }
 89 |     open func convert(_ point: NSPoint, from view: NSView?) -> NSPoint
    |               `- note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
 90 |     @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
 91 |     open func convertPoint(_ point: NSPoint, fromView view: NSView?) -> NSPoint
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:212:55: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
187 |
188 | @discardableResult
189 | func ImGui_ImplOSX_HandleEvent(_ event: NSEvent, _ view: NSView) -> Bool {
    |      `- note: add '@MainActor' to make global function 'ImGui_ImplOSX_HandleEvent' part of global actor 'MainActor'
190 |     let io = ImGuiGetIO()!
191 |
    :
210 |         var mousePoint = event.locationInWindow
211 |         mousePoint = view.convert(mousePoint, from: nil)
212 |         mousePoint = NSPoint(x: mousePoint.x, y: view.bounds.size.height - mousePoint.y)
    |                                                       `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
213 |         io.pointee.MousePos = ImVec2(x: Float(mousePoint.x), y: Float(mousePoint.y))
214 |     }
AppKit.NSView:76:14: note: property declared here
 74 |     @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
 75 |     open func rotateByAngle(_ angle: CGFloat)
 76 |     open var bounds: NSRect { get set }
    |              `- note: property declared here
 77 |     open var isFlipped: Bool { get }
 78 |     @available(swift, obsoleted: 3, renamed: "isFlipped")
[40/49] Compiling DemoMetal main.swift
[41/49] Compiling DemoMetal Shaders.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Shaders.swift:9:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | enum Shaders {
 9 |     static var `default`: String = """
   |                |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |         #include <metal_stdlib>
11 |         using namespace metal;
[42/49] Compiling DemoMetal ViewController.swift
[43/49] Compiling DemoMetal Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:12:5: warning: var 'show_demo_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 | import MetalKit
 11 |
 12 | var show_demo_window: Bool = true
    |     |- warning: var 'show_demo_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'show_demo_window' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'show_demo_window' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 | var show_another_window: Bool = false
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:13:5: warning: var 'show_another_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |
 12 | var show_demo_window: Bool = true
 13 | var show_another_window: Bool = false
    |     |- warning: var 'show_another_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'show_another_window' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'show_another_window' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
 15 | var f: Float = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:14:5: warning: var 'clear_color' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | var show_demo_window: Bool = true
 13 | var show_another_window: Bool = false
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
    |     |- warning: var 'clear_color' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'clear_color' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'clear_color' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | var f: Float = 0.0
 16 | var counter: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:15:5: warning: var 'f' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | var show_another_window: Bool = false
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
 15 | var f: Float = 0.0
    |     |- warning: var 'f' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'f' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'f' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 | var counter: Int = 0
 17 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:16:5: warning: var 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
 15 | var f: Float = 0.0
 16 | var counter: Int = 0
    |     |- warning: var 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'counter' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'counter' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 | @available(OSX 10.11, *)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:24:23: warning: main actor-isolated property 'device' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 22 |
 23 |     init(_ view: MTKView) {
 24 |         device = view.device!
    |                       `- warning: main actor-isolated property 'device' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 25 |         commandQueue = device.makeCommandQueue()!
 26 |
MetalKit.MTKView:6:25: note: property declared here
 4 |     public init(coder: NSCoder)
 5 |     weak open var delegate: (any MTKViewDelegate)? { get set }
 6 |     @MainActor open var device: (any MTLDevice)? { get set }
   |                         `- note: property declared here
 7 |     open var currentDrawable: (any CAMetalDrawable)? { get }
 8 |     open var framebufferOnly: Bool { get set }
[44/49] Compiling DemoMetal AppDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/AppDelegate.swift:12:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | @available(OSX 10.11, *)
11 | final class AppDelegate: NSObject, NSApplicationDelegate {
12 |     lazy var window: NSWindow = NSApplication.shared.windows[0]
   |              `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 |     let viewController: ViewController = .init()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/AppDelegate.swift:13:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 | final class AppDelegate: NSObject, NSApplicationDelegate {
12 |     lazy var window: NSWindow = NSApplication.shared.windows[0]
13 |     let viewController: ViewController = .init()
   |         `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 |     func applicationWillFinishLaunching(_: Notification) {
[45/49] Emitting module DemoMetal
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/AppDelegate.swift:12:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
10 | @available(OSX 10.11, *)
11 | final class AppDelegate: NSObject, NSApplicationDelegate {
12 |     lazy var window: NSWindow = NSApplication.shared.windows[0]
   |              `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
13 |     let viewController: ViewController = .init()
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/AppDelegate.swift:13:9: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
11 | final class AppDelegate: NSObject, NSApplicationDelegate {
12 |     lazy var window: NSWindow = NSApplication.shared.windows[0]
13 |     let viewController: ViewController = .init()
   |         `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
14 |
15 |     func applicationWillFinishLaunching(_: Notification) {
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:12:5: warning: var 'show_demo_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 | import MetalKit
 11 |
 12 | var show_demo_window: Bool = true
    |     |- warning: var 'show_demo_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'show_demo_window' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'show_demo_window' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 | var show_another_window: Bool = false
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:13:5: warning: var 'show_another_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |
 12 | var show_demo_window: Bool = true
 13 | var show_another_window: Bool = false
    |     |- warning: var 'show_another_window' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'show_another_window' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'show_another_window' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
 15 | var f: Float = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:14:5: warning: var 'clear_color' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | var show_demo_window: Bool = true
 13 | var show_another_window: Bool = false
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
    |     |- warning: var 'clear_color' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'clear_color' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'clear_color' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 | var f: Float = 0.0
 16 | var counter: Int = 0
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:15:5: warning: var 'f' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 | var show_another_window: Bool = false
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
 15 | var f: Float = 0.0
    |     |- warning: var 'f' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'f' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'f' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 | var counter: Int = 0
 17 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Renderer.swift:16:5: warning: var 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 | var clear_color: SIMD3<Float> = .init(x: 0.28, y: 0.36, z: 0.5)
 15 | var f: Float = 0.0
 16 | var counter: Int = 0
    |     |- warning: var 'counter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'counter' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'counter' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 17 |
 18 | @available(OSX 10.11, *)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Shaders.swift:9:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | enum Shaders {
 9 |     static var `default`: String = """
   |                |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |         #include <metal_stdlib>
11 |         using namespace metal;
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:15:5: warning: var 'g_sharedMetalContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 |
 14 | @available(OSX 10.11, *)
 15 | var g_sharedMetalContext: MetalContext = .init()
    |     |- warning: var 'g_sharedMetalContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'g_sharedMetalContext' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'g_sharedMetalContext' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 | @available(OSX 10.11, *)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:21:13: warning: var 'g_HostClockPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 19 |
 20 | // Data
 21 | private var g_HostClockPeriod: Double = 0.0
    |             |- warning: var 'g_HostClockPeriod' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_HostClockPeriod' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_HostClockPeriod' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 22 | private var g_Time: CFAbsoluteTime = 0.0 // Original approach uses: Double
 23 | private var g_MouseCursorHidden: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:22:13: warning: var 'g_Time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 20 | // Data
 21 | private var g_HostClockPeriod: Double = 0.0
 22 | private var g_Time: CFAbsoluteTime = 0.0 // Original approach uses: Double
    |             |- warning: var 'g_Time' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_Time' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_Time' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 23 | private var g_MouseCursorHidden: Bool = false
 24 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:23:13: warning: var 'g_MouseCursorHidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 21 | private var g_HostClockPeriod: Double = 0.0
 22 | private var g_Time: CFAbsoluteTime = 0.0 // Original approach uses: Double
 23 | private var g_MouseCursorHidden: Bool = false
    |             |- warning: var 'g_MouseCursorHidden' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseCursorHidden' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseCursorHidden' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 24 |
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:25:13: warning: var 'g_MouseCursors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 23 | private var g_MouseCursorHidden: Bool = false
 24 |
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
    |             |- warning: var 'g_MouseCursors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseCursors' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseCursors' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 26 | private var g_MouseJustPressed: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:26:13: warning: var 'g_MouseJustPressed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 24 |
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
 26 | private var g_MouseJustPressed: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
    |             |- warning: var 'g_MouseJustPressed' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseJustPressed' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseJustPressed' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 28 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:27:13: warning: var 'g_MouseDown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 | private var g_MouseCursors: [NSCursor?] = .init(repeating: nil, count: Int(ImGuiMouseCursor_COUNT.rawValue))
 26 | private var g_MouseJustPressed: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
    |             |- warning: var 'g_MouseDown' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_MouseDown' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_MouseDown' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 | private var g_FocusObserver: ImFocusObserver?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:29:13: warning: var 'g_FocusObserver' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 27 | private var g_MouseDown: [Bool] = .init(repeating: false, count: Int(ImGuiMouseButton_COUNT.rawValue))
 28 |
 29 | private var g_FocusObserver: ImFocusObserver?
    |             |- warning: var 'g_FocusObserver' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_FocusObserver' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_FocusObserver' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 | private var g_KeyEventResponder: KeyEventResponder?
 31 |
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:30:13: warning: var 'g_KeyEventResponder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 | private var g_FocusObserver: ImFocusObserver?
 30 | private var g_KeyEventResponder: KeyEventResponder?
    |             |- warning: var 'g_KeyEventResponder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'g_KeyEventResponder' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'g_KeyEventResponder' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 | private var s_clipboard: UnsafeMutablePointer<CChar>?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:32:13: warning: var 's_clipboard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 30 | private var g_KeyEventResponder: KeyEventResponder?
 31 |
 32 | private var s_clipboard: UnsafeMutablePointer<CChar>?
    |             |- warning: var 's_clipboard' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 's_clipboard' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 's_clipboard' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 | // MARK: - Functions
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:424:10: warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
411 | class KeyEventResponder: NSView {}
412 |
413 | extension KeyEventResponder: NSTextInputClient {
    |                              `- note: add '@preconcurrency' to the 'NSTextInputClient' conformance to defer isolation checking to run time
414 |     override func viewDidMoveToWindow() {
415 |         // Ensure self is a first responder to receive the input events.
    :
422 |     }
423 |
424 |     func insertText(_ string: Any, replacementRange _: NSRange) {
    |          |- warning: main actor-isolated instance method 'insertText(_:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'insertText(_:replacementRange:)' to make this instance method not isolated to the actor
425 |         var characters: String?
426 |
AppKit.NSTextInputClient:2:10: note: 'insertText(_:replacementRange:)' declared here
 1 | public protocol NSTextInputClient {
 2 |     func insertText(_ string: Any, replacementRange: NSRange)
   |          `- note: 'insertText(_:replacementRange:)' declared here
 3 |     @available(macOS 10.0, *)
 4 |     func doCommand(by selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:440:19: warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
438 |     }
439 |
440 |     override func doCommand(by _: Selector) {}
    |                   |- warning: main actor-isolated instance method 'doCommand(by:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |                   `- note: add 'nonisolated' to 'doCommand(by:)' to make this instance method not isolated to the actor
441 |
442 |     func attributedSubstring(forProposedRange _: NSRange, actualRange _: NSRangePointer?) -> NSAttributedString? {
AppKit.NSTextInputClient:4:10: note: 'doCommand(by:)' declared here
 2 |     func insertText(_ string: Any, replacementRange: NSRange)
 3 |     @available(macOS 10.0, *)
 4 |     func doCommand(by selector: Selector)
   |          `- note: 'doCommand(by:)' declared here
 5 |     @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
 6 |     func doCommandBySelector(_ selector: Selector)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:466:10: warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
464 |     }
465 |
466 |     func setMarkedText(_: Any, selectedRange _: NSRange, replacementRange _: NSRange) {}
    |          |- warning: main actor-isolated instance method 'setMarkedText(_:selectedRange:replacementRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'setMarkedText(_:selectedRange:replacementRange:)' to make this instance method not isolated to the actor
467 |
468 |     func unmarkText() {}
AppKit.NSTextInputClient:7:10: note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
 5 |     @available(swift, obsoleted: 3, renamed: "doCommand(by:)")
 6 |     func doCommandBySelector(_ selector: Selector)
 7 |     func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
   |          `- note: 'setMarkedText(_:selectedRange:replacementRange:)' declared here
 8 |     func unmarkText()
 9 |     func selectedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:468:10: warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
466 |     func setMarkedText(_: Any, selectedRange _: NSRange, replacementRange _: NSRange) {}
467 |
468 |     func unmarkText() {}
    |          |- warning: main actor-isolated instance method 'unmarkText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'unmarkText()' to make this instance method not isolated to the actor
469 |
470 |     func validAttributesForMarkedText() -> [NSAttributedString.Key] {
AppKit.NSTextInputClient:8:10: note: 'unmarkText()' declared here
 6 |     func doCommandBySelector(_ selector: Selector)
 7 |     func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
 8 |     func unmarkText()
   |          `- note: 'unmarkText()' declared here
 9 |     func selectedRange() -> NSRange
10 |     func markedRange() -> NSRange
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:462:10: warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
460 |     }
461 |
462 |     func selectedRange() -> NSRange {
    |          |- warning: main actor-isolated instance method 'selectedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'selectedRange()' to make this instance method not isolated to the actor
463 |         NSMakeRange(NSNotFound, 0)
464 |     }
AppKit.NSTextInputClient:9:10: note: 'selectedRange()' declared here
 7 |     func setMarkedText(_ string: Any, selectedRange: NSRange, replacementRange: NSRange)
 8 |     func unmarkText()
 9 |     func selectedRange() -> NSRange
   |          `- note: 'selectedRange()' declared here
10 |     func markedRange() -> NSRange
11 |     func hasMarkedText() -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:458:10: warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
456 |     }
457 |
458 |     func markedRange() -> NSRange {
    |          |- warning: main actor-isolated instance method 'markedRange()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'markedRange()' to make this instance method not isolated to the actor
459 |         NSMakeRange(NSNotFound, 0)
460 |     }
AppKit.NSTextInputClient:10:10: note: 'markedRange()' declared here
 8 |     func unmarkText()
 9 |     func selectedRange() -> NSRange
10 |     func markedRange() -> NSRange
   |          `- note: 'markedRange()' declared here
11 |     func hasMarkedText() -> Bool
12 |     @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:454:10: warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
452 |     }
453 |
454 |     func hasMarkedText() -> Bool {
    |          |- warning: main actor-isolated instance method 'hasMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'hasMarkedText()' to make this instance method not isolated to the actor
455 |         false
456 |     }
AppKit.NSTextInputClient:11:10: note: 'hasMarkedText()' declared here
 9 |     func selectedRange() -> NSRange
10 |     func markedRange() -> NSRange
11 |     func hasMarkedText() -> Bool
   |          `- note: 'hasMarkedText()' declared here
12 |     @available(macOS 10.0, *)
13 |     func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:442:10: warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
440 |     override func doCommand(by _: Selector) {}
441 |
442 |     func attributedSubstring(forProposedRange _: NSRange, actualRange _: NSRangePointer?) -> NSAttributedString? {
    |          |- warning: main actor-isolated instance method 'attributedSubstring(forProposedRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'attributedSubstring(forProposedRange:actualRange:)' to make this instance method not isolated to the actor
443 |         nil
444 |     }
AppKit.NSTextInputClient:13:10: note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
11 |     func hasMarkedText() -> Bool
12 |     @available(macOS 10.0, *)
13 |     func attributedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
   |          `- note: 'attributedSubstring(forProposedRange:actualRange:)' declared here
14 |     @available(swift, obsoleted: 3, renamed: "attributedSubstring(forProposedRange:actualRange:)")
15 |     func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:470:10: warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
468 |     func unmarkText() {}
469 |
470 |     func validAttributesForMarkedText() -> [NSAttributedString.Key] {
    |          |- warning: main actor-isolated instance method 'validAttributesForMarkedText()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'validAttributesForMarkedText()' to make this instance method not isolated to the actor
471 |         []
472 |     }
AppKit.NSTextInputClient:17:10: note: 'validAttributesForMarkedText()' declared here
15 |     func attributedSubstringForProposedRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
16 |     @available(macOS 10.0, *)
17 |     func validAttributesForMarkedText() -> [NSAttributedString.Key]
   |          `- note: 'validAttributesForMarkedText()' declared here
18 |     func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
19 |     @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:450:10: warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
448 |     }
449 |
450 |     func firstRect(forCharacterRange _: NSRange, actualRange _: NSRangePointer?) -> NSRect {
    |          |- warning: main actor-isolated instance method 'firstRect(forCharacterRange:actualRange:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'firstRect(forCharacterRange:actualRange:)' to make this instance method not isolated to the actor
451 |         NSZeroRect
452 |     }
AppKit.NSTextInputClient:18:10: note: 'firstRect(forCharacterRange:actualRange:)' declared here
16 |     @available(macOS 10.0, *)
17 |     func validAttributesForMarkedText() -> [NSAttributedString.Key]
18 |     func firstRect(forCharacterRange range: NSRange, actualRange: NSRangePointer?) -> NSRect
   |          `- note: 'firstRect(forCharacterRange:actualRange:)' declared here
19 |     @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 |     func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_osx.swift:446:10: warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
444 |     }
445 |
446 |     func characterIndex(for _: NSPoint) -> Int {
    |          |- warning: main actor-isolated instance method 'characterIndex(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'characterIndex(for:)' to make this instance method not isolated to the actor
447 |         0
448 |     }
AppKit.NSTextInputClient:21:10: note: 'characterIndex(for:)' declared here
19 |     @available(swift, obsoleted: 3, renamed: "firstRect(forCharacterRange:actualRange:)")
20 |     func firstRectForCharacterRange(_ range: NSRange, actualRange: NSRangePointer?) -> NSRect
21 |     func characterIndex(for point: NSPoint) -> Int
   |          `- note: 'characterIndex(for:)' declared here
22 |     @available(swift, obsoleted: 3, renamed: "characterIndex(for:)")
23 |     func characterIndexForPoint(_ point: NSPoint) -> Int
[46/49] Compiling DemoMetal imgui_impl_metal.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:15:5: warning: var 'g_sharedMetalContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 13 |
 14 | @available(OSX 10.11, *)
 15 | var g_sharedMetalContext: MetalContext = .init()
    |     |- warning: var 'g_sharedMetalContext' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'g_sharedMetalContext' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'g_sharedMetalContext' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 16 |
 17 | @available(OSX 10.11, *)
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:426:17: warning: capture of 'self' with non-sendable type 'MetalContext?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | /// font texture, and manages the reusable buffer cache.
152 | @available(OSX 10.11, *)
153 | class MetalContext {
    |       `- note: class 'MetalContext' does not conform to the 'Sendable' protocol
154 |     var depthStencilState: MTLDepthStencilState!
155 |     // framebuffer descriptor for current frame; transient
    :
424 |
425 |             DispatchQueue.main.async { [weak self] in
426 |                 self?.enqueueReusableBuffer(vertexBuffer)
    |                 `- warning: capture of 'self' with non-sendable type 'MetalContext?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
427 |                 self?.enqueueReusableBuffer(indexBuffer)
428 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:426:45: warning: capture of 'vertexBuffer' with non-sendable type 'MetalBuffer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 91 | // A wrapper around a MTLBuffer object that knows the last time it was reused
 92 | @available(OSX 10.11, *)
 93 | class MetalBuffer {
    |       `- note: class 'MetalBuffer' does not conform to the 'Sendable' protocol
 94 |     let buffer: MTLBuffer
 95 |     var lastReuseTime: TimeInterval
    :
424 |
425 |             DispatchQueue.main.async { [weak self] in
426 |                 self?.enqueueReusableBuffer(vertexBuffer)
    |                                             `- warning: capture of 'vertexBuffer' with non-sendable type 'MetalBuffer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
427 |                 self?.enqueueReusableBuffer(indexBuffer)
428 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:427:45: warning: capture of 'indexBuffer' with non-sendable type 'MetalBuffer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 91 | // A wrapper around a MTLBuffer object that knows the last time it was reused
 92 | @available(OSX 10.11, *)
 93 | class MetalBuffer {
    |       `- note: class 'MetalBuffer' does not conform to the 'Sendable' protocol
 94 |     let buffer: MTLBuffer
 95 |     var lastReuseTime: TimeInterval
    :
425 |             DispatchQueue.main.async { [weak self] in
426 |                 self?.enqueueReusableBuffer(vertexBuffer)
427 |                 self?.enqueueReusableBuffer(indexBuffer)
    |                                             `- warning: capture of 'indexBuffer' with non-sendable type 'MetalBuffer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
428 |             }
429 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/Shaders.swift:9:16: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 | enum Shaders {
 9 |     static var `default`: String = """
   |                |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |         #include <metal_stdlib>
11 |         using namespace metal;
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:426:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
424 |
425 |             DispatchQueue.main.async { [weak self] in
426 |                 self?.enqueueReusableBuffer(vertexBuffer)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
427 |                 self?.enqueueReusableBuffer(indexBuffer)
428 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:426:45: warning: sending 'vertexBuffer' risks causing data races; this is an error in the Swift 6 language mode
424 |
425 |             DispatchQueue.main.async { [weak self] in
426 |                 self?.enqueueReusableBuffer(vertexBuffer)
    |                                             |- warning: sending 'vertexBuffer' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: task-isolated 'vertexBuffer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
427 |                 self?.enqueueReusableBuffer(indexBuffer)
428 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Demos/Metal/imgui_impl_metal.swift:427:45: warning: sending 'indexBuffer' risks causing data races; this is an error in the Swift 6 language mode
425 |             DispatchQueue.main.async { [weak self] in
426 |                 self?.enqueueReusableBuffer(vertexBuffer)
427 |                 self?.enqueueReusableBuffer(indexBuffer)
    |                                             |- warning: sending 'indexBuffer' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: task-isolated 'indexBuffer' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
428 |             }
429 |         }
[46/49] Write Objects.LinkFileList
[47/49] Linking DemoMetal-macOS
[48/49] Applying DemoMetal-macOS
Build complete! (15.05s)
Build complete.
{
  "c_language_standard" : "c11",
  "cxx_language_standard" : "c++11",
  "dependencies" : [
  ],
  "manifest_display_name" : "ImGui",
  "name" : "ImGui",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ImGui",
      "targets" : [
        "ImGui"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "DemoMinimal",
      "targets" : [
        "DemoMinimal"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "DemoMetal-macOS",
      "targets" : [
        "DemoMetal"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "AutoWrapper",
      "targets" : [
        "AutoWrapper"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ImGuiTests",
      "module_type" : "SwiftTarget",
      "name" : "ImGuiTests",
      "path" : "Tests/ImGuiTests",
      "sources" : [
        "ImGuiTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ImGui"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ImGui",
      "module_type" : "SwiftTarget",
      "name" : "ImGui",
      "path" : "Sources/ImGui",
      "product_memberships" : [
        "ImGui",
        "DemoMinimal",
        "DemoMetal-macOS"
      ],
      "sources" : [
        "Export.swift",
        "Helper.swift",
        "ImGui+Definitions.swift",
        "ImVec+Extensions.swift"
      ],
      "target_dependencies" : [
        "CImGui"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DemoMinimal",
      "module_type" : "SwiftTarget",
      "name" : "DemoMinimal",
      "path" : "Sources/Demos/Minimal",
      "product_memberships" : [
        "DemoMinimal"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ImGui"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "DemoMetal",
      "module_type" : "SwiftTarget",
      "name" : "DemoMetal",
      "path" : "Sources/Demos/Metal",
      "product_memberships" : [
        "DemoMetal-macOS"
      ],
      "sources" : [
        "AppDelegate.swift",
        "Renderer.swift",
        "Shaders.swift",
        "ViewController.swift",
        "imgui_impl_metal.swift",
        "imgui_impl_osx.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "ImGui"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CImGui",
      "module_type" : "ClangTarget",
      "name" : "CImGui",
      "path" : "Sources/CImGui",
      "product_memberships" : [
        "ImGui",
        "DemoMinimal",
        "DemoMetal-macOS"
      ],
      "sources" : [
        "cimgui.cpp",
        "imgui/imgui.cpp",
        "imgui/imgui_demo.cpp",
        "imgui/imgui_draw.cpp",
        "imgui/imgui_tables.cpp",
        "imgui/imgui_widgets.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AutoWrapper",
      "module_type" : "SwiftTarget",
      "name" : "AutoWrapper",
      "path" : "Sources/AutoWrapper",
      "product_memberships" : [
        "AutoWrapper"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/AutoWrapper/Assets/definitions.json",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "ArgT.swift",
        "Converter.swift",
        "DataType.swift",
        "Definitions.swift",
        "Exceptions.swift",
        "FunctionBodyRenderer.swift",
        "SwiftKeywords.swift",
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.3"
}
Done.