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

Failed to build CLI, reference 2.3.1 (30b84c), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 00:00:15 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ponyboy47/CLI.git
Reference: 2.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ponyboy47/CLI
 * tag               2.3.1      -> FETCH_HEAD
HEAD is now at 30b84cd Updated README for MultiOption
Cloned https://github.com/Ponyboy47/CLI.git
Revision (git rev-parse @):
30b84cd3b751789e8a53f1ca428731ae6ec4e011
SUCCESS checkout https://github.com/Ponyboy47/CLI.git at 2.3.1
Fetching https://github.com/Ponyboy47/Strings.git
[1/104] Fetching strings
Fetched https://github.com/Ponyboy47/Strings.git from cache (0.57s)
Computing version for https://github.com/Ponyboy47/Strings.git
Computed https://github.com/Ponyboy47/Strings.git at 2.2.1 (1.15s)
Creating working copy for https://github.com/Ponyboy47/Strings.git
Working copy of https://github.com/Ponyboy47/Strings.git resolved at 2.2.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": "cli",
      "name": "CLI",
      "url": "https://github.com/Ponyboy47/CLI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CLI",
      "dependencies": [
        {
          "identity": "strings",
          "name": "Strings",
          "url": "https://github.com/Ponyboy47/Strings.git",
          "version": "2.2.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Strings",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Ponyboy47/CLI.git
[1/161] Fetching cli
Fetched https://github.com/Ponyboy47/CLI.git from cache (0.64s)
Fetching https://github.com/Ponyboy47/Strings.git from cache
Fetched https://github.com/Ponyboy47/Strings.git from cache (0.42s)
Computing version for https://github.com/Ponyboy47/Strings.git
Computed https://github.com/Ponyboy47/Strings.git at 2.2.1 (0.47s)
Creating working copy for https://github.com/Ponyboy47/CLI.git
Working copy of https://github.com/Ponyboy47/CLI.git resolved at 2.3.1 (30b84cd)
Creating working copy for https://github.com/Ponyboy47/Strings.git
Working copy of https://github.com/Ponyboy47/Strings.git resolved at 2.2.1
warning: '.resolve-product-dependencies': dependency 'cli' is not used by any target
Found 1 product dependencies
  - Strings
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Ponyboy47/CLI.git
https://github.com/Ponyboy47/CLI.git
{
  "dependencies" : [
    {
      "identity" : "strings",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Ponyboy47/Strings.git"
    }
  ],
  "manifest_display_name" : "CLI",
  "name" : "CLI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CLI",
      "targets" : [
        "CLI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CLI",
      "module_type" : "SwiftTarget",
      "name" : "CLI",
      "path" : "Sources/CLI",
      "product_dependencies" : [
        "Strings"
      ],
      "product_memberships" : [
        "CLI"
      ],
      "sources" : [
        "ArgumentErrors.swift",
        "ArgumentParser.swift",
        "ArgumentProtocols.swift",
        "ArgumentTypes.swift",
        "MultiOption.swift",
        "Option+Flag.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/8] Compiling Strings Substring.swift
[5/8] Compiling Strings Strings+Validation.swift
[6/8] Emitting module Strings
[7/8] Compiling Strings Strings.swift
[8/8] Compiling Strings Strings+Subscript.swift
[9/15] Compiling CLI ArgumentProtocols.swift
[10/15] Compiling CLI ArgumentParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/CLI/ArgumentParser.swift:20:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     private var hasParsed = false
 19 |
 20 |     public static var `default`: ArgumentParser = {
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |         return ArgumentParser()
 22 |     }()
[11/15] Emitting module CLI
/Users/admin/builder/spi-builder-workspace/Sources/CLI/ArgumentParser.swift:20:23: warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |     private var hasParsed = false
 19 |
 20 |     public static var `default`: ArgumentParser = {
    |                       |- warning: static property 'default' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |         return ArgumentParser()
 22 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/CLI/MultiOption.swift:73:5: warning: 'public' modifier is redundant for instance method declared in a public extension
71 |
72 | public extension MultiOption where A: Equatable {
73 |     public func index(of element: A) -> Int? {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
74 |         return values.index(of: element)
75 |     }
[12/15] Compiling CLI ArgumentErrors.swift
[13/15] Compiling CLI ArgumentTypes.swift
[14/15] Compiling CLI Option+Flag.swift
[15/15] Compiling CLI MultiOption.swift
/Users/admin/builder/spi-builder-workspace/Sources/CLI/MultiOption.swift:73:5: warning: 'public' modifier is redundant for instance method declared in a public extension
71 |
72 | public extension MultiOption where A: Equatable {
73 |     public func index(of element: A) -> Int? {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
74 |         return values.index(of: element)
75 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CLI/MultiOption.swift:52:16: error: 'subscript(_:)' is unavailable
50 |
51 |     public subscript(bounds: Range<Int>) -> Slice<[A]> {
52 |         return values[bounds]
   |                `- error: 'subscript(_:)' is unavailable
53 |     }
54 |
Swift.MutableCollection.subscript:3:21: note: 'subscript(_:)' has been explicitly marked unavailable here
1 | protocol MutableCollection {
2 | @available(*, unavailable)
3 |   @inlinable public subscript(bounds: Range<Self.Index>) -> Slice<Self> { get set }}
  |                     `- note: 'subscript(_:)' has been explicitly marked unavailable here
4 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/6] Compiling Strings Substring.swift
[3/6] Compiling Strings Strings+Validation.swift
[4/6] Emitting module Strings
[5/6] Compiling Strings Strings.swift
[6/6] Compiling Strings Strings+Subscript.swift
[7/13] Compiling CLI ArgumentTypes.swift
[8/13] Compiling CLI MultiOption.swift
/Users/admin/builder/spi-builder-workspace/Sources/CLI/MultiOption.swift:73:5: warning: 'public' modifier is redundant for instance method declared in a public extension
71 |
72 | public extension MultiOption where A: Equatable {
73 |     public func index(of element: A) -> Int? {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
74 |         return values.index(of: element)
75 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CLI/MultiOption.swift:52:16: error: 'subscript(_:)' is unavailable
50 |
51 |     public subscript(bounds: Range<Int>) -> Slice<[A]> {
52 |         return values[bounds]
   |                `- error: 'subscript(_:)' is unavailable
53 |     }
54 |
Swift.MutableCollection.subscript:3:21: note: 'subscript(_:)' has been explicitly marked unavailable here
1 | protocol MutableCollection {
2 | @available(*, unavailable)
3 |   @inlinable public subscript(bounds: Range<Self.Index>) -> Slice<Self> { get set }}
  |                     `- note: 'subscript(_:)' has been explicitly marked unavailable here
4 |
[9/13] Compiling CLI ArgumentProtocols.swift
[10/13] Compiling CLI ArgumentParser.swift
[11/13] Emitting module CLI
/Users/admin/builder/spi-builder-workspace/Sources/CLI/MultiOption.swift:73:5: warning: 'public' modifier is redundant for instance method declared in a public extension
71 |
72 | public extension MultiOption where A: Equatable {
73 |     public func index(of element: A) -> Int? {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
74 |         return values.index(of: element)
75 |     }
[12/13] Compiling CLI Option+Flag.swift
[13/13] Compiling CLI ArgumentErrors.swift
BUILD FAILURE 6.1 macosSpm