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 NavigationTitle, reference main (2e72ce), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 06:05:35 UTC.

Swift 6 data race errors: 1

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/amonshiz/NavigationTitle.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/amonshiz/NavigationTitle
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2e72ce1 indicate deprecated
Cloned https://github.com/amonshiz/NavigationTitle.git
Revision (git rev-parse @):
2e72ce14d9bc9f01e9585ee382191e7d1a0f7a0c
SUCCESS checkout https://github.com/amonshiz/NavigationTitle.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": "navigationtitle",
      "name": "NavigationTitle",
      "url": "https://github.com/amonshiz/NavigationTitle.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/NavigationTitle",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/amonshiz/NavigationTitle.git
[1/162] Fetching navigationtitle
Fetched https://github.com/amonshiz/NavigationTitle.git from cache (1.06s)
Creating working copy for https://github.com/amonshiz/NavigationTitle.git
Working copy of https://github.com/amonshiz/NavigationTitle.git resolved at main (2e72ce1)
warning: '.resolve-product-dependencies': dependency 'navigationtitle' 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/amonshiz/NavigationTitle.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/6] Compiling NavigationTitle NavigationBarFinder.swift
[4/6] Compiling NavigationTitle NavigationTitle.swift
[5/6] Compiling NavigationTitle Logging.swift
/Users/admin/builder/spi-builder-workspace/Sources/NavigationTitle/Logging.swift:14:14: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | @available(watchOS, unavailable)
13 | struct NavigationTitleLogging {
14 |   static var isEnabled = false
   |              |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'isEnabled' 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
15 |
16 |   static func log(_ object: @autoclosure () -> Any) {
[6/6] Emitting module NavigationTitle
/Users/admin/builder/spi-builder-workspace/Sources/NavigationTitle/Logging.swift:14:14: warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | @available(watchOS, unavailable)
13 | struct NavigationTitleLogging {
14 |   static var isEnabled = false
   |              |- warning: static property 'isEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: convert 'isEnabled' to a 'let' constant to make 'Sendable' shared state immutable
   |              |- note: annotate 'isEnabled' 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
15 |
16 |   static func log(_ object: @autoclosure () -> Any) {
Build complete! (10.75s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NavigationTitle",
  "name" : "NavigationTitle",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "NavigationTitle",
      "targets" : [
        "NavigationTitle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NavigationTitleTests",
      "module_type" : "SwiftTarget",
      "name" : "NavigationTitleTests",
      "path" : "Tests/NavigationTitleTests",
      "sources" : [
        "NavigationTitleTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "NavigationTitle"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NavigationTitle",
      "module_type" : "SwiftTarget",
      "name" : "NavigationTitle",
      "path" : "Sources/NavigationTitle",
      "product_memberships" : [
        "NavigationTitle"
      ],
      "sources" : [
        "Logging.swift",
        "NavigationBarFinder.swift",
        "NavigationTitle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.