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 0.8.1 (7b249b), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 15:59:12 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: 0.8.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BeauNouvelle/SwiftyGuitarChords
 * tag               0.8.1      -> FETCH_HEAD
HEAD is now at 7b249ba Merge pull request #30 from x-0o0/jaesung/feature/keyword-based-search
Cloned https://github.com/BeauNouvelle/SwiftyGuitarChords.git
Revision (git rev-parse @):
7b249ba6bb2d78eed93016566ce6c70fb89d8b88
SUCCESS checkout https://github.com/BeauNouvelle/SwiftyGuitarChords.git at 0.8.1
========================================
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 (1.05s)
Creating working copy for https://github.com/BeauNouvelle/SwiftyGuitarChords.git
Working copy of https://github.com/BeauNouvelle/SwiftyGuitarChords.git resolved at 0.8.1 (7b249ba)
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 String+Path.swift
[6/14] Compiling SwiftyChords NSAttributedString+Glyphs.swift
[7/14] Compiling SwiftyChords resource_bundle_accessor.swift
[8/14] Compiling SwiftyChords LineConfig.swift
[9/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] {
[10/14] Compiling SwiftyChords ImageFromLayer.swift
[11/14] Compiling SwiftyChords Aliasses.swift
[12/14] Compiling SwiftyChords Array+Chords.swift
[13/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] {
[14/14] Compiling SwiftyChords ChordPosition.swift
Build complete! (18.55s)
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.