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 InAnyCase, reference master (ec6911), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 17:54:54 UTC.

Swift 6 data race errors: 1

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ThatsJustCheesy/InAnyCase.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ThatsJustCheesy/InAnyCase
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ec6911c Cache compiled regex
Cloned https://github.com/ThatsJustCheesy/InAnyCase.git
Revision (git rev-parse @):
ec6911c8c8e5d6a97a27b254445b72590b31908d
SUCCESS checkout https://github.com/ThatsJustCheesy/InAnyCase.git at master
Fetching https://github.com/sharplet/Regex.git
[1/1254] Fetching regex
Fetched https://github.com/sharplet/Regex.git from cache (1.30s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.0 (4.73s)
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.0
========================================
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": "inanycase",
      "name": "InAnyCase",
      "url": "https://github.com/ThatsJustCheesy/InAnyCase.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/InAnyCase",
      "dependencies": [
        {
          "identity": "regex",
          "name": "Regex",
          "url": "https://github.com/sharplet/Regex.git",
          "version": "2.1.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Regex",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ThatsJustCheesy/InAnyCase.git
[1/51] Fetching inanycase
Fetched https://github.com/ThatsJustCheesy/InAnyCase.git from cache (0.59s)
Fetching https://github.com/sharplet/Regex.git from cache
Fetched https://github.com/sharplet/Regex.git from cache (0.44s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.1 (0.49s)
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.1
Creating working copy for https://github.com/ThatsJustCheesy/InAnyCase.git
Working copy of https://github.com/ThatsJustCheesy/InAnyCase.git resolved at master (ec6911c)
warning: '.resolve-product-dependencies': dependency 'inanycase' is not used by any target
Found 1 product dependencies
  - Regex
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ThatsJustCheesy/InAnyCase.git
https://github.com/ThatsJustCheesy/InAnyCase.git
{
  "dependencies" : [
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex.git"
    }
  ],
  "manifest_display_name" : "InAnyCase",
  "name" : "InAnyCase",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "InAnyCase",
      "targets" : [
        "InAnyCase"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InAnyCaseTests",
      "module_type" : "SwiftTarget",
      "name" : "InAnyCaseTests",
      "path" : "Tests/InAnyCaseTests",
      "sources" : [
        "InAnyCaseTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "InAnyCase"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InAnyCase",
      "module_type" : "SwiftTarget",
      "name" : "InAnyCase",
      "path" : "Sources/InAnyCase",
      "product_dependencies" : [
        "Regex"
      ],
      "product_memberships" : [
        "InAnyCase"
      ],
      "sources" : [
        "InAnyCase.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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/10] Compiling Regex ThreadLocal.swift
[5/10] Compiling Regex Regex.swift
[6/10] Compiling Regex Options.swift
[7/10] Compiling Regex MatchResult.swift
[8/10] Emitting module Regex
[9/10] Compiling Regex Foundation+Ranges.swift
[10/10] Compiling Regex String+ReplaceMatching.swift
[11/12] Emitting module InAnyCase
/Users/admin/builder/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:49:24: warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        `- warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Regex/Source/Regex/Regex.swift:3:15: note: struct 'Regex' does not conform to the 'Sendable' protocol
  1 | import Foundation
  2 |
  3 | public struct Regex: CustomStringConvertible, CustomDebugStringConvertible {
    |               `- note: struct 'Regex' does not conform to the 'Sendable' protocol
  4 |   // MARK: Initialisation
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  3 |
  4 | import Foundation
  5 | import Regex
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  6 |
  7 | extension String {
    :
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        |- note: add '@MainActor' to make static property 'camelSplitRegex' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
[12/12] Compiling InAnyCase InAnyCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:49:24: warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        `- warning: static property 'camelSplitRegex' is not concurrency-safe because non-'Sendable' type 'Regex' may have shared mutable state; this is an error in the Swift 6 language mode
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Regex/Source/Regex/Regex.swift:3:15: note: struct 'Regex' does not conform to the 'Sendable' protocol
  1 | import Foundation
  2 |
  3 | public struct Regex: CustomStringConvertible, CustomDebugStringConvertible {
    |               `- note: struct 'Regex' does not conform to the 'Sendable' protocol
  4 |   // MARK: Initialisation
  5 |
/Users/admin/builder/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:5:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  3 |
  4 | import Foundation
  5 | import Regex
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Regex'
  6 |
  7 | extension String {
    :
 47 |     case space
 48 |
 49 |     private static let camelSplitRegex = Regex("(?<!\\p{Lu})(?=\\p{Lu})")
    |                        |- note: add '@MainActor' to make static property 'camelSplitRegex' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 50 |
 51 |     public func split(_ string: Substring) -> [Substring] {
/Users/admin/builder/spi-builder-workspace/Sources/InAnyCase/InAnyCase.swift:25:25: warning: tuple conversion from '(offset: Int, element: Substring)' to '(index: Int, word: Substring)' mismatches labels
 23 |             .reduce([Substring(self)]) { result, style in result.flatMap { style.split($0) } }
 24 |             .enumerated()
 25 |             .map(`case`.transform(pair:))
    |                         `- warning: tuple conversion from '(offset: Int, element: Substring)' to '(index: Int, word: Substring)' mismatches labels
 26 |             .joined(separator: toJoinStyle.joinSeparator)
 27 |     }
Build complete! (5.41s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex.git"
    }
  ],
  "manifest_display_name" : "InAnyCase",
  "name" : "InAnyCase",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "ios",
      "version" : "8.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "InAnyCase",
      "targets" : [
        "InAnyCase"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InAnyCaseTests",
      "module_type" : "SwiftTarget",
      "name" : "InAnyCaseTests",
      "path" : "Tests/InAnyCaseTests",
      "sources" : [
        "InAnyCaseTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "InAnyCase"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InAnyCase",
      "module_type" : "SwiftTarget",
      "name" : "InAnyCase",
      "path" : "Sources/InAnyCase",
      "product_dependencies" : [
        "Regex"
      ],
      "product_memberships" : [
        "InAnyCase"
      ],
      "sources" : [
        "InAnyCase.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.