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 main (7f5581), with Swift 6.0 for macOS (SPM) on 31 Dec 2024 08:26:48 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.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 7f5581e Ask for text, activity indicator title
Cloned https://github.com/Finnvoor/SwiftTUI.git
Revision (git rev-parse @):
7f5581eb7ef8e658f8a2889942a440c578ba72a8
SUCCESS checkout https://github.com/Finnvoor/SwiftTUI.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": "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/80] Fetching swifttui
Fetched https://github.com/Finnvoor/SwiftTUI.git from cache (0.69s)
Creating working copy for https://github.com/Finnvoor/SwiftTUI.git
Working copy of https://github.com/Finnvoor/SwiftTUI.git resolved at main (7f5581e)
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
https://github.com/Finnvoor/SwiftTUI.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/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 |
[4/11] Compiling SwiftTUI Window.swift
[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 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 |
[6/11] Compiling SwiftTUI String+ANSI.swift
[7/11] Compiling SwiftTUI Cursor.swift
[8/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 |
[9/11] Compiling SwiftTUI CommandLine.swift
[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 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 |
[11/11] Compiling SwiftTUI Key.swift
Build complete! (11.80s)
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.