Build Information
Successful build of SwiftRegex, reference 6.1.3 (60fde2
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 16:55:59 UTC.
Swift 6 data race errors: 8
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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/SwiftRegex5.git
Reference: 6.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnno1962/SwiftRegex5
* tag 6.1.3 -> FETCH_HEAD
HEAD is now at 60fde2e Missing count parameter.
Cloned https://github.com/johnno1962/SwiftRegex5.git
Revision (git rev-parse @):
60fde2e2e3b691abb35ba4b67e3f0adc82f6d1f5
SUCCESS checkout https://github.com/johnno1962/SwiftRegex5.git at 6.1.3
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/johnno1962/SwiftRegex5.git
https://github.com/johnno1962/SwiftRegex5.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRegex",
"name" : "SwiftRegex",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "SwiftRegex",
"targets" : [
"SwiftRegex"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftRegexD",
"targets" : [
"SwiftRegexD"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftRegexTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexTests",
"path" : "SwiftRegex5Tests",
"sources" : [
"SwiftRegex5Tests.swift"
],
"target_dependencies" : [
"SwiftRegex"
],
"type" : "test"
},
{
"c99name" : "SwiftRegexD",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexD",
"path" : "Sources/SwiftRegexD",
"product_memberships" : [
"SwiftRegexD"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftRegex",
"module_type" : "SwiftTarget",
"name" : "SwiftRegex",
"path" : "Sources/SwiftRegex",
"product_memberships" : [
"SwiftRegex"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
}
],
"tools_version" : "5.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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/7] Emitting module SwiftRegex
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[5/7] Compiling SwiftRegex TupleRegex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegex/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[6/7] Emitting module SwiftRegexD
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
[7/7] Compiling SwiftRegexD TupleRegex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:31:23: warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public struct RegexOptioned: RegexLiteral, Hashable {
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
| |- warning: static property 'defaultOptions' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultOptions' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var unmatchedGroup = ""
33 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:32:23: warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 |
31 | public static var defaultOptions: NSRegularExpression.Options = []
32 | public static var unmatchedGroup = ""
| |- warning: static property 'unmatchedGroup' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'unmatchedGroup' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'unmatchedGroup' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | let pattern: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:287:13: warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
285 | public typealias RegexImpl = TupleRegex
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
| |- warning: var 'regexCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'regexCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'regexCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
288 | private var cacheLock = NSLock()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexD/TupleRegex.swift:288:13: warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
286 |
287 | private var regexCache = [RegexOptioned: NSRegularExpression]()
288 | private var cacheLock = NSLock()
| |- warning: var 'cacheLock' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'cacheLock' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'cacheLock' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
289 |
290 | open class TupleRegex<T>: RegexLiteral, ExpressibleByStringLiteral {
Build complete! (4.68s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRegex",
"name" : "SwiftRegex",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
}
],
"products" : [
{
"name" : "SwiftRegex",
"targets" : [
"SwiftRegex"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftRegexD",
"targets" : [
"SwiftRegexD"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftRegexTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexTests",
"path" : "SwiftRegex5Tests",
"sources" : [
"SwiftRegex5Tests.swift"
],
"target_dependencies" : [
"SwiftRegex"
],
"type" : "test"
},
{
"c99name" : "SwiftRegexD",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexD",
"path" : "Sources/SwiftRegexD",
"product_memberships" : [
"SwiftRegexD"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftRegex",
"module_type" : "SwiftTarget",
"name" : "SwiftRegex",
"path" : "Sources/SwiftRegex",
"product_memberships" : [
"SwiftRegex"
],
"sources" : [
"TupleRegex.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.