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 v1.0.2 (ec6911), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 08:49:32 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ThatsJustCheesy/InAnyCase.git
Reference: v1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ThatsJustCheesy/InAnyCase
 * tag               v1.0.2     -> FETCH_HEAD
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 v1.0.2
Fetching https://github.com/sharplet/Regex.git
[1/1254] Fetching regex
Fetched https://github.com/sharplet/Regex.git from cache (1.37s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.0 (2.27s)
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.66s)
Fetching https://github.com/sharplet/Regex.git from cache
Fetched https://github.com/sharplet/Regex.git from cache (0.47s)
Computing version for https://github.com/sharplet/Regex.git
Computed https://github.com/sharplet/Regex.git at 2.1.1 (0.02s)
Creating working copy for https://github.com/ThatsJustCheesy/InAnyCase.git
Working copy of https://github.com/ThatsJustCheesy/InAnyCase.git resolved at v1.0.2 (ec6911c)
Creating working copy for https://github.com/sharplet/Regex.git
Working copy of https://github.com/sharplet/Regex.git resolved at 2.1.1
warning: '.resolve-product-dependencies': dependency 'inanycase' is not used by any target
Found 1 product dependencies
  - Regex
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ThatsJustCheesy/InAnyCase.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.txt
[4/10] Emitting module Regex
[5/10] Compiling Regex Foundation+Ranges.swift
[6/10] Compiling Regex ThreadLocal.swift
[7/10] Compiling Regex Regex.swift
[8/10] Compiling Regex MatchResult.swift
[9/10] Compiling Regex String+ReplaceMatching.swift
[10/10] Compiling Regex Options.swift
[11/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 |     }
[12/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] {
Build complete! (9.75s)
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.