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.1 for macOS (SPM) on 27 Apr 2025 12:17:18 UTC.

Swift 6 data race errors: 30

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.28s)
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.1
Building package at path:  $PWD
https://github.com/ctreffs/SwiftImGui.git
https://github.com/ctreffs/SwiftImGui.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/24] Write sources
[1/24] Write DemoMinimal-entitlement.plist
[1/24] Write sources
[1/24] Write DemoMetal-macOS-entitlement.plist
[1/24] Copying definitions.json
[2/24] Write sources
[7/24] Write AutoWrapper-entitlement.plist
[8/24] Write swift-version-2F0A5646E1D333AE.txt
[9/34] Compiling imgui_tables.cpp
[10/34] Compiling imgui_draw.cpp
[11/34] Compiling imgui_demo.cpp
[12/34] Compiling CImGui cimgui.cpp
[13/34] Compiling imgui_widgets.cpp
[14/34] Compiling imgui.cpp
[16/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 &&
[17/39] Compiling ImGui Helper.swift
[18/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 &&
[19/39] Compiling ImGui Export.swift
[20/39] Compiling ImGui ImGui+Definitions.swift
[21/49] Emitting module DemoMinimal
[22/49] Compiling DemoMinimal main.swift
[22/49] Write Objects.LinkFileList
[23/49] Linking DemoMinimal
[24/49] Applying DemoMinimal
[26/49] Compiling AutoWrapper SwiftKeywords.swift
[27/49] Compiling AutoWrapper FunctionBodyRenderer.swift
[28/49] Compiling AutoWrapper ArgT.swift
[29/49] Compiling AutoWrapper DataType.swift
[30/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: add '@MainActor' to make static property 'undeclardTypes' part of global actor 'MainActor'
   |                       `- 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
[31/49] Compiling AutoWrapper main.swift
[32/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: add '@MainActor' to make static property 'undeclardTypes' part of global actor 'MainActor'
   |                       `- 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 resource_bundle_accessor.swift
[34/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 |
[35/49] Compiling AutoWrapper Converter.swift
[35/49] Write Objects.LinkFileList
[36/49] Linking AutoWrapper
[37/49] Applying AutoWrapper
[39/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: add '@MainActor' to make var 'show_demo_window' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'show_another_window' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'clear_color' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'f' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'counter' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- 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: add '@MainActor' to make var 'g_sharedMetalContext' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'g_HostClockPeriod' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_Time' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseCursorHidden' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseCursors' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseJustPressed' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseDown' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_FocusObserver' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_KeyEventResponder' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 's_clipboard' part of global actor 'MainActor'
    |             `- 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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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? {
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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() {}
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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] {
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
[40/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) {
[41/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: add '@MainActor' to make var 'show_demo_window' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'show_another_window' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'clear_color' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'f' part of global actor 'MainActor'
    |     `- 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: add '@MainActor' to make var 'counter' part of global actor 'MainActor'
    |     `- 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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/MetalKit.framework/Headers/MTKView.h:52:56: note: property declared here
 50 |  @discussion This must be explicitly set by the application unless it was passed into the initializer. Defaults to nil
 51 |   */
 52 | @property (nonatomic, retain, nullable) id <MTLDevice> device;
    |                                                        `- note: property declared here
 53 |
 54 | /*!
[42/49] Compiling DemoMetal main.swift
[43/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: add '@MainActor' to make var 'g_sharedMetalContext' part of global actor 'MainActor'
    |     `- 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: 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 |         }
[44/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: add '@MainActor' to make var 'g_HostClockPeriod' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_Time' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseCursorHidden' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseCursors' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseJustPressed' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_MouseDown' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_FocusObserver' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 'g_KeyEventResponder' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make var 's_clipboard' part of global actor 'MainActor'
    |             `- 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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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? {
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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() {}
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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] {
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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 requirement from protocol 'NSTextInputClient'; 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 requirement from protocol 'NSTextInputClient'; 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 |     }
/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
    |                                 `- note: main actor isolation inferred from inheritance from class 'NSView'
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.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView)}
  |                      |- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:488:30: note: property declared here
 486 |
 487 | /// Returns the scale factor representing the number of backing store pixels corresponding to each linear unit in window space on this \c NSWindow. This method is provided for rare cases when the explicit scale factor is needed. Please use `-convert*ToBacking:` methods whenever possible.
 488 | @property (readonly) CGFloat backingScaleFactor API_AVAILABLE(macos(10.7));
     |                              `- note: property declared here
 489 |
 490 | - (void)performClose:(nullable id)sender;
/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)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
 84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 85 |
 86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
    |                                                             `- note: property declared here
 87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
 88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
    |                  `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
    |                  `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/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.convert:2:22: note: calls to instance method 'convert(_:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor 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
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/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 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
    |                  `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
[45/49] Compiling DemoMetal ViewController.swift
[46/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |         #include <metal_stdlib>
11 |         using namespace metal;
[46/49] Write Objects.LinkFileList
[47/49] Linking DemoMetal-macOS
[48/49] Applying DemoMetal-macOS
Build complete! (7.80s)
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.