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 Toybox 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/giginet/toybox.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/giginet/toybox
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b30d04c Merge pull request #30 from giginet/macos-default-template
Cloned https://github.com/giginet/toybox.git
Revision (git rev-parse @):
b30d04ce827d27f4d47bc504fd103cfd391d7b84
SUCCESS checkout https://github.com/giginet/toybox.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/giginet/toybox.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/9] Write sources
[3/9] Write toybox-entitlement.plist
[5/9] Write swift-version-6F35C1178C84523A.txt
[7/23] Compiling SWXMLHash shim.swift
[8/23] Emitting module Commandant
[9/24] Compiling SWXMLHash SWXMLHash.swift
[10/24] Compiling SWXMLHash XMLIndexer+XMLIndexerDeserializable.swift
[11/24] Emitting module SWXMLHash
[12/24] Compiling Commandant Command.swift
[13/24] Compiling Commandant ArgumentParser.swift
[14/24] Compiling Commandant Argument.swift
[15/24] Compiling Commandant OrderedSet.swift
[16/24] Compiling Commandant Errors.swift
[17/24] Compiling Commandant ArgumentProtocol.swift
[18/24] Compiling Commandant Result+Additions.swift
[19/24] Compiling Commandant HelpCommand.swift
[20/24] Compiling Commandant Option.swift
[21/24] Compiling Commandant Switch.swift
[22/31] Compiling ToyboxKit PlaygroundBuilder.swift
[23/31] Compiling ToyboxKit Version.swift
[24/31] Compiling ToyboxKit XcodeFinder.swift
[25/31] Compiling ToyboxKit Playground.swift
[26/31] Emitting module ToyboxKit
/Users/admin/builder/spi-builder-workspace/Sources/ToyboxKit/Errors.swift:10:10: warning: associated value 'xcodeNotFoundError' of 'Sendable'-conforming enum 'ToyboxError' has non-sendable type 'XcodeSpecifier'; this is an error in the Swift 6 language mode
 8 |     case duplicatedError(String)
 9 |     case versionError
10 |     case xcodeNotFoundError(XcodeSpecifier?)
   |          `- warning: associated value 'xcodeNotFoundError' of 'Sendable'-conforming enum 'ToyboxError' has non-sendable type 'XcodeSpecifier'; this is an error in the Swift 6 language mode
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Sources/ToyboxKit/Handler.swift:9:13: note: consider making enum 'XcodeSpecifier' conform to the 'Sendable' protocol
  7 | }
  8 |
  9 | public enum XcodeSpecifier {
    |             `- note: consider making enum 'XcodeSpecifier' conform to the 'Sendable' protocol
 10 |     case version(String)
 11 |     case path(URL)
/Users/admin/builder/spi-builder-workspace/Sources/ToyboxKit/Handler.swift:29:23: warning: static property 'rootURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 27 |     private static let rootDirectoryName = ".toybox"
 28 |
 29 |     public static var rootURL: URL = {
    |                       |- warning: static property 'rootURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'rootURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'rootURL' 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
 30 |         let homeDirectoryPath = URL(fileURLWithPath: NSHomeDirectory())
 31 |         return homeDirectoryPath.appendingPathComponent(FileSystemWorkspace.rootDirectoryName, isDirectory: true)
[27/31] Compiling ToyboxKit Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/ToyboxKit/Errors.swift:10:10: warning: associated value 'xcodeNotFoundError' of 'Sendable'-conforming enum 'ToyboxError' has non-sendable type 'XcodeSpecifier'; this is an error in the Swift 6 language mode
 8 |     case duplicatedError(String)
 9 |     case versionError
10 |     case xcodeNotFoundError(XcodeSpecifier?)
   |          `- warning: associated value 'xcodeNotFoundError' of 'Sendable'-conforming enum 'ToyboxError' has non-sendable type 'XcodeSpecifier'; this is an error in the Swift 6 language mode
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Sources/ToyboxKit/Handler.swift:9:13: note: consider making enum 'XcodeSpecifier' conform to the 'Sendable' protocol
  7 | }
  8 |
  9 | public enum XcodeSpecifier {
    |             `- note: consider making enum 'XcodeSpecifier' conform to the 'Sendable' protocol
 10 |     case version(String)
 11 |     case path(URL)
[28/31] Compiling ToyboxKit Handler.swift
/Users/admin/builder/spi-builder-workspace/Sources/ToyboxKit/Handler.swift:29:23: warning: static property 'rootURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 27 |     private static let rootDirectoryName = ".toybox"
 28 |
 29 |     public static var rootURL: URL = {
    |                       |- warning: static property 'rootURL' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'rootURL' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'rootURL' 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
 30 |         let homeDirectoryPath = URL(fileURLWithPath: NSHomeDirectory())
 31 |         return homeDirectoryPath.appendingPathComponent(FileSystemWorkspace.rootDirectoryName, isDirectory: true)
[29/38] Compiling toybox Version.swift
[30/38] Compiling toybox Open.swift
[31/38] Compiling toybox main.swift
[32/38] Compiling toybox Root.swift
[33/38] Compiling toybox Create.swift
[34/38] Compiling toybox List.swift
[35/38] Emitting module toybox
[35/38] Write Objects.LinkFileList
[36/38] Linking toybox
[37/38] Applying toybox
Build complete! (55.02s)
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Carthage/Commandant.git
[1/2323] Fetching commandant
[2/5093] Fetching commandant, swxmlhash
[3516/19642] Fetching commandant, swxmlhash, quick
[19643/38282] Fetching commandant, swxmlhash, quick, nimble
Fetched https://github.com/Quick/Nimble.git from cache (2.64s)
Fetched https://github.com/Quick/Quick.git from cache (2.64s)
Fetched https://github.com/drmohundro/SWXMLHash.git from cache (2.64s)
Fetched https://github.com/Carthage/Commandant.git from cache (2.64s)
Computing version for https://github.com/Carthage/Commandant.git
Computed https://github.com/Carthage/Commandant.git at 0.17.0 (0.70s)
Computing version for https://github.com/drmohundro/SWXMLHash.git
Computed https://github.com/drmohundro/SWXMLHash.git at 4.9.0 (2.73s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.0.1 (2.28s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.0.0 (0.67s)
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.0.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.0.1
Creating working copy for https://github.com/Carthage/Commandant.git
Working copy of https://github.com/Carthage/Commandant.git resolved at 0.17.0
Creating working copy for https://github.com/drmohundro/SWXMLHash.git
Working copy of https://github.com/drmohundro/SWXMLHash.git resolved at 4.9.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swxmlhash",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.9.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/drmohundro/SWXMLHash.git"
    },
    {
      "identity" : "commandant",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.17.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Carthage/Commandant.git"
    }
  ],
  "manifest_display_name" : "Toybox",
  "name" : "Toybox",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    }
  ],
  "products" : [
    {
      "name" : "toybox",
      "targets" : [
        "toybox"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "ToyboxKit",
      "targets" : [
        "ToyboxKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "toybox",
      "module_type" : "SwiftTarget",
      "name" : "toybox",
      "path" : "Sources/toybox",
      "product_dependencies" : [
        "Commandant"
      ],
      "product_memberships" : [
        "toybox"
      ],
      "sources" : [
        "Commands/Create.swift",
        "Commands/List.swift",
        "Commands/Open.swift",
        "Commands/Root.swift",
        "Commands/Version.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "ToyboxKit"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "ToyboxKitTests",
      "module_type" : "SwiftTarget",
      "name" : "ToyboxKitTests",
      "path" : "Tests/ToyboxKitTests",
      "sources" : [
        "HandlerTests.swift",
        "PlaygroundTests.swift",
        "XcodeFinderTests.swift"
      ],
      "target_dependencies" : [
        "toybox"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ToyboxKit",
      "module_type" : "SwiftTarget",
      "name" : "ToyboxKit",
      "path" : "Sources/ToyboxKit",
      "product_dependencies" : [
        "Commandant",
        "SWXMLHash"
      ],
      "product_memberships" : [
        "toybox",
        "ToyboxKit"
      ],
      "sources" : [
        "Errors.swift",
        "Handler.swift",
        "Playground.swift",
        "PlaygroundBuilder.swift",
        "Version.swift",
        "XcodeFinder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.