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 Regex, reference 1.2.0 (166728), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 11:29:53 UTC.

Swift 6 data race errors: 10

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/crossroadlabs/Regex.git
Reference: 1.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/crossroadlabs/Regex
 * tag               1.2.0      -> FETCH_HEAD
HEAD is now at 1667287 Updated changelog. Prepared 1.2.0 release
Cloned https://github.com/crossroadlabs/Regex.git
Revision (git rev-parse @):
166728756082a9cac6e4aed3ebbce8e41cb3a945
SUCCESS checkout https://github.com/crossroadlabs/Regex.git at 1.2.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": "regex",
      "name": "Regex",
      "url": "https://github.com/crossroadlabs/Regex.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Regex",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/crossroadlabs/Regex.git
[1/1296] Fetching regex
Fetched https://github.com/crossroadlabs/Regex.git from cache (0.85s)
Creating working copy for https://github.com/crossroadlabs/Regex.git
Working copy of https://github.com/crossroadlabs/Regex.git resolved at 1.2.0 (1667287)
warning: '.resolve-product-dependencies': dependency 'regex' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/crossroadlabs/Regex.git
https://github.com/crossroadlabs/Regex.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Regex",
  "name" : "Regex",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Regex",
      "targets" : [
        "Regex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RegexTests",
      "module_type" : "SwiftTarget",
      "name" : "RegexTests",
      "path" : "Tests/RegexTests",
      "sources" : [
        "RegexTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Regex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Regex",
      "module_type" : "SwiftTarget",
      "name" : "Regex",
      "path" : "Sources/Regex",
      "product_memberships" : [
        "Regex"
      ],
      "sources" : [
        "GroupRangeUtils.swift",
        "Match.swift",
        "MatchSequence.swift",
        "PlatformTypes.swift",
        "Regex.swift",
        "RegexOptions.swift",
        "String+Regex.swift",
        "Utils.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/11] Compiling Regex RegexOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:42:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 40 |      * Match letters in the pattern independent of case.
 41 |      */
 42 |     public static let caseInsensitive = RegexOptions(rawValue: 1)
    |                       |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'caseInsensitive' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:47:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 45 |      * Ignore whitespace and #-prefixed comments in the pattern.
 46 |      */
 47 |     public static let allowCommentsAndWhitespace = RegexOptions(rawValue: 2)
    |                       |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allowCommentsAndWhitespace' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 48 |
 49 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:52:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 50 |      * Treat the entire pattern as a literal string.
 51 |      */
 52 |     public static let ignoreMetacharacters = RegexOptions(rawValue: 4)
    |                       |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignoreMetacharacters' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:57:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 55 |      * Allow . to match any character, including line separators.
 56 |      */
 57 |     public static let dotMatchesLineSeparators = RegexOptions(rawValue: 8)
    |                       |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'dotMatchesLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:62:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 60 |      * Allow ^ and $ to match the start and end of lines.
 61 |      */
 62 |     public static let anchorsMatchLines = RegexOptions(rawValue: 16)
    |                       |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'anchorsMatchLines' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:67:23: warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 65 |      * Treat only \n as a line separator (otherwise, all standard line separators are used).
 66 |      */
 67 |     public static let useUnixLineSeparators = RegexOptions(rawValue: 32)
    |                       |- warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnixLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:72:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 70 |      * Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
 71 |      */
 72 |     public static let useUnicodeWordBoundaries = RegexOptions(rawValue: 64)
    |                       |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnicodeWordBoundaries' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 76 |      * Options used by default in Regex
 77 |      */
 78 |     public static let `default`:RegexOptions = [caseInsensitive]
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- 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
 79 | }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:84:1: warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 82 |  * Internal implementation that can't be hidden. Skip it.
 83 |  */
 84 | extension NSRegularExpression.Options : Hashable {
    | |- warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 85 | 	/**
 86 |      * Internal implementation that can't be hidden. Skip it.
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:109:13: warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             |- warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'nsToRegexOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:119:13: warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
117 | ]
118 |
119 | private let regexToNSOptionsMap:[RegexOptions: NSRegularExpression.Options] = nsToRegexOptionsMap.reduce([:]) { (dict, kv) in
    |             |- warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'regexToNSOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |     var dict = dict
121 |     dict[kv.value] = kv.key
[4/11] Compiling Regex String+Regex.swift
[5/11] Compiling Regex Regex.swift
[6/11] Compiling Regex Utils.swift
[7/11] Compiling Regex PlatformTypes.swift
[8/11] Compiling Regex Match.swift
[9/11] Compiling Regex GroupRangeUtils.swift
[10/11] Emitting module Regex
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:42:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 40 |      * Match letters in the pattern independent of case.
 41 |      */
 42 |     public static let caseInsensitive = RegexOptions(rawValue: 1)
    |                       |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'caseInsensitive' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:47:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 45 |      * Ignore whitespace and #-prefixed comments in the pattern.
 46 |      */
 47 |     public static let allowCommentsAndWhitespace = RegexOptions(rawValue: 2)
    |                       |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'allowCommentsAndWhitespace' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 48 |
 49 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:52:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 50 |      * Treat the entire pattern as a literal string.
 51 |      */
 52 |     public static let ignoreMetacharacters = RegexOptions(rawValue: 4)
    |                       |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignoreMetacharacters' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 53 |
 54 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:57:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 55 |      * Allow . to match any character, including line separators.
 56 |      */
 57 |     public static let dotMatchesLineSeparators = RegexOptions(rawValue: 8)
    |                       |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'dotMatchesLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 58 |
 59 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:62:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 60 |      * Allow ^ and $ to match the start and end of lines.
 61 |      */
 62 |     public static let anchorsMatchLines = RegexOptions(rawValue: 16)
    |                       |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'anchorsMatchLines' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 63 |
 64 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:67:23: warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 65 |      * Treat only \n as a line separator (otherwise, all standard line separators are used).
 66 |      */
 67 |     public static let useUnixLineSeparators = RegexOptions(rawValue: 32)
    |                       |- warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnixLineSeparators' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 68 |
 69 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:72:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 70 |      * Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
 71 |      */
 72 |     public static let useUnicodeWordBoundaries = RegexOptions(rawValue: 64)
    |                       |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'useUnicodeWordBoundaries' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 76 |      * Options used by default in Regex
 77 |      */
 78 |     public static let `default`:RegexOptions = [caseInsensitive]
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- 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
 79 | }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:84:1: warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 82 |  * Internal implementation that can't be hidden. Skip it.
 83 |  */
 84 | extension NSRegularExpression.Options : Hashable {
    | |- warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 85 | 	/**
 86 |      * Internal implementation that can't be hidden. Skip it.
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:109:13: warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             |- warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'nsToRegexOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
/Users/admin/builder/spi-builder-workspace/Sources/Regex/RegexOptions.swift:119:13: warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
117 | ]
118 |
119 | private let regexToNSOptionsMap:[RegexOptions: NSRegularExpression.Options] = nsToRegexOptionsMap.reduce([:]) { (dict, kv) in
    |             |- warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: add '@MainActor' to make let 'regexToNSOptionsMap' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
120 |     var dict = dict
121 |     dict[kv.value] = kv.key
[11/11] Compiling Regex MatchSequence.swift
Build complete! (4.81s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Regex",
  "name" : "Regex",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Regex",
      "targets" : [
        "Regex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RegexTests",
      "module_type" : "SwiftTarget",
      "name" : "RegexTests",
      "path" : "Tests/RegexTests",
      "sources" : [
        "RegexTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Regex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Regex",
      "module_type" : "SwiftTarget",
      "name" : "Regex",
      "path" : "Sources/Regex",
      "product_memberships" : [
        "Regex"
      ],
      "sources" : [
        "GroupRangeUtils.swift",
        "Match.swift",
        "MatchSequence.swift",
        "PlatformTypes.swift",
        "Regex.swift",
        "RegexOptions.swift",
        "String+Regex.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.