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, reference v1.0.2 (59acad), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 01:43:34 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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/itsmeichigo/Fretboard.git
Reference: v1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/itsmeichigo/Fretboard
 * tag               v1.0.2     -> FETCH_HEAD
HEAD is now at 59acadf Update README.md
Cloned https://github.com/itsmeichigo/Fretboard.git
Revision (git rev-parse @):
59acadf6425d53e0ab98fa50478f85a169e83aab
SUCCESS checkout https://github.com/itsmeichigo/Fretboard.git at v1.0.2
========================================
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": "fretboard",
      "name": "Fretboard",
      "url": "https://github.com/itsmeichigo/Fretboard.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Fretboard",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/itsmeichigo/Fretboard.git
[1/337] Fetching fretboard
Fetched https://github.com/itsmeichigo/Fretboard.git from cache (1.14s)
Creating working copy for https://github.com/itsmeichigo/Fretboard.git
Working copy of https://github.com/itsmeichigo/Fretboard.git resolved at v1.0.2 (59acadf)
warning: '.resolve-product-dependencies': dependency 'fretboard' 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/itsmeichigo/Fretboard.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 -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/4] Write sources
[1/4] Copying guitar.json
[1/4] Copying ukulele.json
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/9] Compiling Fretboard resource_bundle_accessor.swift
[6/9] Compiling Fretboard Chord.swift
[7/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] {
[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! (12.09s)
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.