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 SwiftTUI, reference 1.0.4 (7ab7a7), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 17:33:23 UTC.

Swift 6 data race errors: 3

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Finnvoor/SwiftTUI.git
Reference: 1.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Finnvoor/SwiftTUI
 * tag               1.0.4      -> FETCH_HEAD
HEAD is now at 7ab7a7c Add ProgressBar
Cloned https://github.com/Finnvoor/SwiftTUI.git
Revision (git rev-parse @):
7ab7a7c8f0a30b8c84201903aa8bbbac99a99e9c
SUCCESS checkout https://github.com/Finnvoor/SwiftTUI.git at 1.0.4
========================================
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": "swifttui",
      "name": "SwiftTUI",
      "url": "https://github.com/Finnvoor/SwiftTUI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftTUI",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Finnvoor/SwiftTUI.git
[1/74] Fetching swifttui
Fetched https://github.com/Finnvoor/SwiftTUI.git from cache (0.74s)
Creating working copy for https://github.com/Finnvoor/SwiftTUI.git
Working copy of https://github.com/Finnvoor/SwiftTUI.git resolved at 1.0.4 (7ab7a7c)
warning: '.resolve-product-dependencies': dependency 'swifttui' 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/Finnvoor/SwiftTUI.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/11] Compiling SwiftTUI Key.swift
[4/11] Compiling SwiftTUI Window.swift
[5/11] Compiling SwiftTUI ProgressBar.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTUI/ProgressBar.swift:37:24: warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |     // MARK: Private
36 |
37 |     private static var task: Task<Void, Never>?
   |                        |- warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'task' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'task' 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
38 | }
39 |
[6/11] Compiling SwiftTUI Termios.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTUI/Termios.swift:24:24: warning: static property 'stack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     // MARK: Private
23 |
24 |     private static var stack: [termios] = []
   |                        |- warning: static property 'stack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'stack' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'stack' 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
25 | }
26 |
[7/11] Compiling SwiftTUI String+ANSI.swift
[8/11] Compiling SwiftTUI CommandLine.swift
[9/11] Emitting module SwiftTUI
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTUI/ActivityIndicator.swift:27:24: warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     // MARK: Private
26 |
27 |     private static var task: Task<Void, Never>?
   |                        |- warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'task' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'task' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTUI/ProgressBar.swift:37:24: warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 |     // MARK: Private
36 |
37 |     private static var task: Task<Void, Never>?
   |                        |- warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'task' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'task' 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
38 | }
39 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTUI/Termios.swift:24:24: warning: static property 'stack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 |     // MARK: Private
23 |
24 |     private static var stack: [termios] = []
   |                        |- warning: static property 'stack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'stack' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'stack' 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
25 | }
26 |
[10/11] Compiling SwiftTUI ActivityIndicator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftTUI/ActivityIndicator.swift:27:24: warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
25 |     // MARK: Private
26 |
27 |     private static var task: Task<Void, Never>?
   |                        |- warning: static property 'task' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'task' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'task' with '@MainActor' if property should only be accessed from the main actor
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | }
29 |
[11/11] Compiling SwiftTUI Cursor.swift
Build complete! (12.27s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftTUI",
  "name" : "SwiftTUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftTUI",
      "targets" : [
        "SwiftTUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftTUI",
      "module_type" : "SwiftTarget",
      "name" : "SwiftTUI",
      "path" : "Sources/SwiftTUI",
      "product_memberships" : [
        "SwiftTUI"
      ],
      "sources" : [
        "ActivityIndicator.swift",
        "CommandLine.swift",
        "Cursor.swift",
        "Key.swift",
        "ProgressBar.swift",
        "String+ANSI.swift",
        "Termios.swift",
        "Window.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.