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 SwiftyChords, reference main (77ea3f), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 15:58:47 UTC.

Swift 6 data race errors: 2

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/BeauNouvelle/SwiftyGuitarChords.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BeauNouvelle/SwiftyGuitarChords
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 77ea3f8 Merge pull request #31 from x-0o0/patch-1
Cloned https://github.com/BeauNouvelle/SwiftyGuitarChords.git
Revision (git rev-parse @):
77ea3f8d8a73ad6f8843e9556ba92cc3616433bb
SUCCESS checkout https://github.com/BeauNouvelle/SwiftyGuitarChords.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": "swiftyguitarchords",
      "name": "SwiftyChords",
      "url": "https://github.com/BeauNouvelle/SwiftyGuitarChords.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyGuitarChords",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/BeauNouvelle/SwiftyGuitarChords.git
[1/859] Fetching swiftyguitarchords
Fetched https://github.com/BeauNouvelle/SwiftyGuitarChords.git from cache (0.97s)
Creating working copy for https://github.com/BeauNouvelle/SwiftyGuitarChords.git
Working copy of https://github.com/BeauNouvelle/SwiftyGuitarChords.git resolved at main (77ea3f8)
warning: '.resolve-product-dependencies': dependency 'swiftyguitarchords' 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/BeauNouvelle/SwiftyGuitarChords.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/4] Write sources
[1/4] Copying GuitarChords.json
[2/4] Copying UkuleleChords.json
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/14] Compiling SwiftyChords resource_bundle_accessor.swift
[6/14] Compiling SwiftyChords Array+Chords.swift
[7/14] Compiling SwiftyChords ImageFromLayer.swift
[8/14] Compiling SwiftyChords LineConfig.swift
[9/14] Compiling SwiftyChords NSAttributedString+Glyphs.swift
[10/14] Compiling SwiftyChords String+Path.swift
[11/14] Compiling SwiftyChords Chords.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyChords/Chords.swift:348:23: warning: static property 'guitar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
346 |     }
347 |
348 |     public static var guitar = Chords.readData(for: "GuitarChords")
    |                       |- warning: static property 'guitar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'guitar' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'guitar' 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
349 |     public static var ukulele = Chords.readData(for: "UkuleleChords")
350 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyChords/Chords.swift:349:23: warning: static property 'ukulele' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
347 |
348 |     public static var guitar = Chords.readData(for: "GuitarChords")
349 |     public static var ukulele = Chords.readData(for: "UkuleleChords")
    |                       |- warning: static property 'ukulele' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'ukulele' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'ukulele' 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
350 |
351 |     private static func readData(for name: String) -> [ChordPosition] {
[12/14] Compiling SwiftyChords Aliasses.swift
[13/14] Compiling SwiftyChords ChordPosition.swift
[14/14] Emitting module SwiftyChords
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyChords/Chords.swift:348:23: warning: static property 'guitar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
346 |     }
347 |
348 |     public static var guitar = Chords.readData(for: "GuitarChords")
    |                       |- warning: static property 'guitar' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'guitar' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'guitar' 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
349 |     public static var ukulele = Chords.readData(for: "UkuleleChords")
350 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyChords/Chords.swift:349:23: warning: static property 'ukulele' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
347 |
348 |     public static var guitar = Chords.readData(for: "GuitarChords")
349 |     public static var ukulele = Chords.readData(for: "UkuleleChords")
    |                       |- warning: static property 'ukulele' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'ukulele' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'ukulele' 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
350 |
351 |     private static func readData(for name: String) -> [ChordPosition] {
Build complete! (16.17s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyChords",
  "name" : "SwiftyChords",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftyChords",
      "targets" : [
        "SwiftyChords"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyChordsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyChordsTests",
      "path" : "Tests/SwiftyChordsTests",
      "sources" : [
        "ArrayExtensionTests.swift",
        "Chord.Tests.swift"
      ],
      "target_dependencies" : [
        "SwiftyChords"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyChords",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyChords",
      "path" : "Sources/SwiftyChords",
      "product_memberships" : [
        "SwiftyChords"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftyChords/Resources/GuitarChords.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftyChords/Resources/UkuleleChords.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Aliasses.swift",
        "Array+Chords.swift",
        "ChordPosition.swift",
        "Chords.swift",
        "ImageFromLayer.swift",
        "LineConfig.swift",
        "NSAttributedString+Glyphs.swift",
        "String+Path.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.