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

Swift 6 data race errors: 3

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/Finnvoor/SwiftTUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Finnvoor/SwiftTUI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Finnvoor/SwiftTUI.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/11] Compiling SwiftTUI String+ANSI.swift
[4/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 non-isolated 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 non-isolated 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 |
[5/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 non-isolated 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 non-isolated 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 |
[6/11] Compiling SwiftTUI Key.swift
[7/11] Compiling SwiftTUI Cursor.swift
[8/11] Compiling SwiftTUI CommandLine.swift
[9/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 non-isolated 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 non-isolated 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 |
[10/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 |
[11/11] Compiling SwiftTUI Window.swift
Build complete! (20.72s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.