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 MetaverseVulkanFramework, reference main (13c706), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 11:04:22 UTC.

Swift 6 data race errors: 1

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wabiverse/MetaverseVulkanFramework.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wabiverse/MetaverseVulkanFramework
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 13c7061 Fix VkBundle resources path.
Cloned https://github.com/wabiverse/MetaverseVulkanFramework.git
Revision (git rev-parse @):
13c7061599c61a4959c558d8ec1836e5b32b640b
SUCCESS checkout https://github.com/wabiverse/MetaverseVulkanFramework.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/wabiverse/MetaverseVulkanFramework.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[1/4] Copying libMoltenVK.a
[2/4] Copying vulkan
[3/4] Write swift-version-117DEE11B69C53C9.txt
[5/7] Emitting module VkBundle
/Users/admin/builder/spi-builder-workspace/Sources/VkBundle/VkBundler.swift:28:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | public class VkBundler
27 | {
28 |   public static var shared = VkBundler()
   |                     |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 |   private init()
[6/7] Compiling VkBundle VkBundler.swift
/Users/admin/builder/spi-builder-workspace/Sources/VkBundle/VkBundler.swift:28:21: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | public class VkBundler
27 | {
28 |   public static var shared = VkBundler()
   |                     |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 |   private init()
[7/7] Compiling VkBundle resource_bundle_accessor.swift
Build complete! (75.90s)
Build complete.
{
  "c_language_standard" : "gnu17",
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "MetaverseVulkanFramework",
  "name" : "MetaverseVulkanFramework",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MoltenVK",
      "targets" : [
        "VkBundle",
        "MoltenVK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "VkBundleTests",
      "module_type" : "SwiftTarget",
      "name" : "VkBundleTests",
      "path" : "Tests/VkBundleTests",
      "sources" : [
        "VkBundleTests.swift"
      ],
      "target_dependencies" : [
        "VkBundle"
      ],
      "type" : "test"
    },
    {
      "c99name" : "VkBundle",
      "module_type" : "SwiftTarget",
      "name" : "VkBundle",
      "path" : "Sources/VkBundle",
      "product_memberships" : [
        "MoltenVK"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/VkBundle/Resources/vulkan",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "VkBundler.swift"
      ],
      "target_dependencies" : [
        "MoltenVK"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MoltenVK",
      "module_type" : "BinaryTarget",
      "name" : "MoltenVK",
      "path" : "Frameworks/1.2.6-rc2/apple/MoltenVK.xcframework",
      "product_memberships" : [
        "MoltenVK"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "5.9"
}
Done.