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

Swift 6 data race errors: 2

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/itsmeichigo/Fretboard.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/itsmeichigo/Fretboard
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0803c34 Fix issue mapping chords for C# and F#
Cloned https://github.com/itsmeichigo/Fretboard.git
Revision (git rev-parse @):
0803c3432702c3ffbd925fd3d0a56024d9bffe22
SUCCESS checkout https://github.com/itsmeichigo/Fretboard.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/itsmeichigo/Fretboard.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/4] Write sources
[1/4] Copying guitar.json
[2/4] Copying ukulele.json
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/9] Compiling Fretboard resource_bundle_accessor.swift
[6/9] Compiling Fretboard Instrument.swift
/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Models/Instrument.swift:18:23: warning: static property 'guitar' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Instrument: Decodable, Hashable {
   |               `- note: consider making struct 'Instrument' conform to the 'Sendable' protocol
11 |     public let name: String
12 |     public let keys: [String]
   :
16 |
17 | extension Instrument {
18 |     public static let guitar = instrument(from: "guitar")
   |                       |- warning: static property 'guitar' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
19 |     public static let ukulele = instrument(from: "ukulele")
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Models/Instrument.swift:19:23: warning: static property 'ukulele' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Instrument: Decodable, Hashable {
   |               `- note: consider making struct 'Instrument' conform to the 'Sendable' protocol
11 |     public let name: String
12 |     public let keys: [String]
   :
17 | extension Instrument {
18 |     public static let guitar = instrument(from: "guitar")
19 |     public static let ukulele = instrument(from: "ukulele")
   |                       |- warning: static property 'ukulele' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
20 |
21 |     public func findChordPositions(key: String, suffix: String) -> [Chord.Position] {
[7/9] Compiling Fretboard Chord.swift
[8/9] Emitting module Fretboard
/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Models/Instrument.swift:18:23: warning: static property 'guitar' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Instrument: Decodable, Hashable {
   |               `- note: consider making struct 'Instrument' conform to the 'Sendable' protocol
11 |     public let name: String
12 |     public let keys: [String]
   :
16 |
17 | extension Instrument {
18 |     public static let guitar = instrument(from: "guitar")
   |                       |- warning: static property 'guitar' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
19 |     public static let ukulele = instrument(from: "ukulele")
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Models/Instrument.swift:19:23: warning: static property 'ukulele' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Instrument: Decodable, Hashable {
   |               `- note: consider making struct 'Instrument' conform to the 'Sendable' protocol
11 |     public let name: String
12 |     public let keys: [String]
   :
17 | extension Instrument {
18 |     public static let guitar = instrument(from: "guitar")
19 |     public static let ukulele = instrument(from: "ukulele")
   |                       |- warning: static property 'ukulele' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
20 |
21 |     public func findChordPositions(key: String, suffix: String) -> [Chord.Position] {
[9/9] Compiling Fretboard FretboardView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Models/Instrument.swift:18:23: warning: static property 'guitar' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Instrument: Decodable, Hashable {
   |               `- note: consider making struct 'Instrument' conform to the 'Sendable' protocol
11 |     public let name: String
12 |     public let keys: [String]
   :
16 |
17 | extension Instrument {
18 |     public static let guitar = instrument(from: "guitar")
   |                       |- warning: static property 'guitar' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
19 |     public static let ukulele = instrument(from: "ukulele")
20 |
/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Models/Instrument.swift:19:23: warning: static property 'ukulele' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public struct Instrument: Decodable, Hashable {
   |               `- note: consider making struct 'Instrument' conform to the 'Sendable' protocol
11 |     public let name: String
12 |     public let keys: [String]
   :
17 | extension Instrument {
18 |     public static let guitar = instrument(from: "guitar")
19 |     public static let ukulele = instrument(from: "ukulele")
   |                       |- warning: static property 'ukulele' is not concurrency-safe because non-'Sendable' type 'Instrument' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- 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
20 |
21 |     public func findChordPositions(key: String, suffix: String) -> [Chord.Position] {
Build complete! (30.23s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Fretboard",
  "name" : "Fretboard",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Fretboard",
      "targets" : [
        "Fretboard"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FretboardTests",
      "module_type" : "SwiftTarget",
      "name" : "FretboardTests",
      "path" : "Tests/FretboardTests",
      "sources" : [
        "FretboardTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Fretboard"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Fretboard",
      "module_type" : "SwiftTarget",
      "name" : "Fretboard",
      "path" : "Sources/Fretboard",
      "product_memberships" : [
        "Fretboard"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Resources/guitar.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Fretboard/Resources/ukulele.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "FretboardView.swift",
        "Models/Chord.swift",
        "Models/Instrument.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.