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 Int2X, reference main (ca4881), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 17:59:31 UTC.

Swift 6 data race errors: 5

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dankogai/swift-int2x.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dankogai/swift-int2x
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ca4881a Update README.md
Cloned https://github.com/dankogai/swift-int2x.git
Revision (git rev-parse @):
ca4881a6b480e774fcfcdbac280f5901be959863
SUCCESS checkout https://github.com/dankogai/swift-int2x.git at main
========================================
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": "swift-int2x",
      "name": "Int2X",
      "url": "https://github.com/dankogai/swift-int2x.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-int2x",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dankogai/swift-int2x.git
[1/441] Fetching swift-int2x
Fetched https://github.com/dankogai/swift-int2x.git from cache (0.72s)
Creating working copy for https://github.com/dankogai/swift-int2x.git
Working copy of https://github.com/dankogai/swift-int2x.git resolved at main (ca4881a)
warning: '.resolve-product-dependencies': dependency 'swift-int2x' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/dankogai/swift-int2x.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/7] Write sources
[2/7] Write Int2XRun-entitlement.plist
[3/7] Write swift-version--7754E27361AE5C74.txt
[5/10] Compiling Int2X Int2X.swift
[6/10] Emitting module Int2X
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: warning: static property 'useAccelerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       |- warning: static property 'useAccelerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useAccelerate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useAccelerate' 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
 82 |     #else
 83 |     public static let useAccelerate = false
[7/10] Compiling Int2X UInt2X.swift
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: warning: static property 'useAccelerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       |- warning: static property 'useAccelerate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useAccelerate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useAccelerate' 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
 82 |     #else
 83 |     public static let useAccelerate = false
[8/12] Compiling Int2XRun main.swift
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:7:22: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | let ua = Int2XConfig.useAccelerate ? [false, true] : [false]
   |                      `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | for a in ua {
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:12:21: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
10 |     if 1 < ua.count {
11 |         #if os(macOS) || os(iOS)
12 |         Int2XConfig.useAccelerate = a
   |                     `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
13 |         #endif
14 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:22:21: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 |     if 1 < ua.count {
21 |         #if os(macOS) || os(iOS)
22 |         Int2XConfig.useAccelerate = a
   |                     `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |         #endif
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:32:21: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 |     if 1 < ua.count {
31 |         #if os(macOS) || os(iOS)
32 |         Int2XConfig.useAccelerate = a
   |                     `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |         #endif
34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
[9/12] Emitting module Int2XRun
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:7:22: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 5 | }
 6 |
 7 | let ua = Int2XConfig.useAccelerate ? [false, true] : [false]
   |                      `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | for a in ua {
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:12:21: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
10 |     if 1 < ua.count {
11 |         #if os(macOS) || os(iOS)
12 |         Int2XConfig.useAccelerate = a
   |                     `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
13 |         #endif
14 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:22:21: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
20 |     if 1 < ua.count {
21 |         #if os(macOS) || os(iOS)
22 |         Int2XConfig.useAccelerate = a
   |                     `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
23 |         #endif
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
/Users/admin/builder/spi-builder-workspace/Sources/Int2XRun/main.swift:32:21: warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
30 |     if 1 < ua.count {
31 |         #if os(macOS) || os(iOS)
32 |         Int2XConfig.useAccelerate = a
   |                     `- warning: reference to class property 'useAccelerate' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
33 |         #endif
34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Int2X/UInt2X.swift:81:23: note: class property declared here
 79 | public class Int2XConfig {
 80 |     #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
 81 |     public static var useAccelerate = true
    |                       `- note: class property declared here
 82 |     #else
 83 |     public static let useAccelerate = false
[9/12] Write Objects.LinkFileList
[10/12] Linking Int2XRun
[11/12] Applying Int2XRun
Build complete! (9.21s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Int2X",
  "name" : "Int2X",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Int2X",
      "targets" : [
        "Int2X"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Int2XRun",
      "targets" : [
        "Int2XRun"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Int2XTests",
      "module_type" : "SwiftTarget",
      "name" : "Int2XTests",
      "path" : "Tests/Int2XTests",
      "sources" : [
        "Int2XTests.swift",
        "UInt2XTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Int2X"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Int2XRun",
      "module_type" : "SwiftTarget",
      "name" : "Int2XRun",
      "path" : "Sources/Int2XRun",
      "product_memberships" : [
        "Int2XRun"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Int2X"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Int2X",
      "module_type" : "SwiftTarget",
      "name" : "Int2X",
      "path" : "Sources/Int2X",
      "product_memberships" : [
        "Int2X",
        "Int2XRun"
      ],
      "sources" : [
        "Int2X.swift",
        "UInt2X.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.