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

Failed to build CLI with Swift 6.0 for macOS (SPM).

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/Ponyboy47/CLI.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ponyboy47/CLI
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Ponyboy47/CLI.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/8] Compiling Strings Strings.swift
[5/8] Compiling Strings Substring.swift
[6/8] Compiling Strings Strings+Subscript.swift
[7/8] Compiling Strings Strings+Validation.swift
[8/8] Emitting module Strings
[9/15] Compiling CLI ArgumentTypes.swift
[10/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:6:23: note: 'subscript(_:)' has been explicitly marked unavailable here
 4 |     @inlinable public mutating func withContiguousMutableStorageIfAvailable<R>(_ body: (inout UnsafeMutableBufferPointer<Self.Element>) throws -> R) rethrows -> R?
 5 |     @available(*, unavailable)
 6 |     @inlinable public subscript(bounds: Range<Self.Index>) -> Slice<Self> { get set }
   |                       `- note: 'subscript(_:)' has been explicitly marked unavailable here
 7 |     @available(*, unavailable)
 8 |     public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
[11/15] Compiling CLI Option+Flag.swift
[12/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 non-isolated 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 non-isolated 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: annotate 'default' 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
 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 |     }
[13/15] Compiling CLI ArgumentErrors.swift
[14/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 non-isolated 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 non-isolated 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: annotate 'default' 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
 21 |         return ArgumentParser()
 22 |     }()
[15/15] Compiling CLI ArgumentProtocols.swift
Fetching https://github.com/Ponyboy47/Strings.git
[1/104] Fetching strings
Fetched https://github.com/Ponyboy47/Strings.git from cache (0.68s)
Computing version for https://github.com/Ponyboy47/Strings.git
Computed https://github.com/Ponyboy47/Strings.git at 2.2.1 (0.65s)
Creating working copy for https://github.com/Ponyboy47/Strings.git
Working copy of https://github.com/Ponyboy47/Strings.git resolved at 2.2.1
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.