This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 MetalUI with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xLet/MetalUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xLet/MetalUI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c2e31b7 Update README.md
Cloned https://github.com/0xLet/MetalUI.git
Revision (git rev-parse @):
c2e31b7828f9632a0393d4b6f2713067034a64be
SUCCESS checkout https://github.com/0xLet/MetalUI.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/0xLet/MetalUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/7] Compiling MetalUI MetalRendering.swift
[4/7] Compiling MetalUI MetalRenderingVertex.swift
[5/7] Compiling MetalUI MetalView.swift
[6/7] Emitting module MetalUI
[7/7] Compiling MetalUI MetalPresenting.swift
/Users/admin/builder/spi-builder-workspace/Sources/MetalUI/MTKView/MetalPresenting.swift:23:14: warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
14 | public extension MetalPresenting {
15 |
16 |     func configure(device: MTLDevice? = MTLCreateSystemDefaultDevice()) {
   |          `- note: add '@MainActor' to make instance method 'configure(device:)' part of global actor 'MainActor'
17 |         // Make sure we are on a device that can run metal!
18 |         guard let defaultDevice = device else {
   :
21 |
22 |         self.renderer = renderer(forDevice: defaultDevice)
23 |         self.delegate = renderer
   |              `- warning: main actor-isolated property 'delegate' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
24 |         self.configureMTKView()
25 |     }
MetalKit.MTKView:5:30: note: mutation of this property is only permitted within the actor
 3 |     public init(frame frameRect: CGRect, device: (any MTLDevice)?)
 4 |     public init(coder: NSCoder)
 5 |     @MainActor weak open var delegate: (any MTKViewDelegate)? { get set }
   |                              `- note: mutation of this property is only permitted within the actor
 6 |     open var device: (any MTLDevice)? { get set }
 7 |     open var currentDrawable: (any CAMetalDrawable)? { get }
Build complete! (33.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MetalUI",
  "name" : "MetalUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "MetalUI",
      "targets" : [
        "MetalUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MetalUITests",
      "module_type" : "SwiftTarget",
      "name" : "MetalUITests",
      "path" : "Tests/MetalUITests",
      "sources" : [
        "MetalUITests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "MetalUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MetalUI",
      "module_type" : "SwiftTarget",
      "name" : "MetalUI",
      "path" : "Sources/MetalUI",
      "product_memberships" : [
        "MetalUI"
      ],
      "sources" : [
        "Data/MetalRenderingVertex.swift",
        "MTKView/MetalPresenting.swift",
        "MTKViewDelegate/MetalRendering.swift",
        "SwiftUI/MetalView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.