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 InAnyCase with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

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/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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/ThatsJustCheesy/InAnyCase.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/10] Compiling Regex Regex.swift
[5/10] Compiling Regex Options.swift
[6/10] Compiling Regex Foundation+Ranges.swift
[7/10] Emitting module Regex
[8/10] Compiling Regex String+ReplaceMatching.swift
[9/10] Compiling Regex MatchResult.swift
[10/10] Compiling Regex ThreadLocal.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: annotate 'camelSplitRegex' 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
 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: annotate 'camelSplitRegex' 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
 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! (22.62s)
Fetching https://github.com/sharplet/Regex.git
[1/1254] Fetching regex
Fetched https://github.com/sharplet/Regex.git from cache (1.41s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.0 (2.52s)
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.0
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.