Build Information
Successful build of UUSwiftCore, reference main (78a4b1
), with Swift 6.1 for macOS (SPM) on 9 May 2025 11:33:50 UTC.
Swift 6 data race errors: 6
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.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SilverPineSoftware/UUSwiftCore.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SilverPineSoftware/UUSwiftCore
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 78a4b10 Cleanup imports
Cloned https://github.com/SilverPineSoftware/UUSwiftCore.git
Revision (git rev-parse @):
78a4b10bce18bf58995403e3dbc6d94375cd97ce
SUCCESS checkout https://github.com/SilverPineSoftware/UUSwiftCore.git at main
Fetching https://github.com/SilverPineSoftware/UUSwiftTestCore.git
[1/52] Fetching uuswifttestcore
Fetched https://github.com/SilverPineSoftware/UUSwiftTestCore.git from cache (0.61s)
Computing version for https://github.com/SilverPineSoftware/UUSwiftTestCore.git
Computed https://github.com/SilverPineSoftware/UUSwiftTestCore.git at 0.0.4 (1.17s)
Creating working copy for https://github.com/SilverPineSoftware/UUSwiftTestCore.git
Working copy of https://github.com/SilverPineSoftware/UUSwiftTestCore.git resolved at 0.0.4
========================================
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": "uuswiftcore",
"name": "UUSwiftCore",
"url": "https://github.com/SilverPineSoftware/UUSwiftCore.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UUSwiftCore",
"dependencies": [
]
}
]
}
Fetching https://github.com/SilverPineSoftware/UUSwiftCore.git
[1/359] Fetching uuswiftcore
Fetched https://github.com/SilverPineSoftware/UUSwiftCore.git from cache (0.67s)
Creating working copy for https://github.com/SilverPineSoftware/UUSwiftCore.git
Working copy of https://github.com/SilverPineSoftware/UUSwiftCore.git resolved at main (78a4b10)
warning: '.resolve-product-dependencies': dependency 'uuswiftcore' 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/SilverPineSoftware/UUSwiftCore.git
https://github.com/SilverPineSoftware/UUSwiftCore.git
{
"dependencies" : [
{
"identity" : "uuswifttestcore",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SilverPineSoftware/UUSwiftTestCore.git"
}
],
"manifest_display_name" : "UUSwiftCore",
"name" : "UUSwiftCore",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "UUSwiftCore",
"targets" : [
"UUSwiftCore"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "UUSwiftCoreTests",
"module_type" : "SwiftTarget",
"name" : "UUSwiftCoreTests",
"path" : "Tests",
"product_dependencies" : [
"UUSwiftTestCore"
],
"sources" : [
"Logging/UULoggerTests.swift",
"UUDataTests.swift",
"UUJsonTests.swift",
"UUStringTests.swift",
"UUTimeMeasurementTests.swift",
"UUTimerTests.swift"
],
"target_dependencies" : [
"UUSwiftCore"
],
"type" : "test"
},
{
"c99name" : "UUSwiftCore",
"module_type" : "SwiftTarget",
"name" : "UUSwiftCore",
"path" : "UUSwiftCore",
"product_memberships" : [
"UUSwiftCore"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/UUSwiftCore/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Logging/UUConsoleLogWriter.swift",
"Logging/UUConsoleLogger.swift",
"Logging/UULog.swift",
"Logging/UULogLevel.swift",
"Logging/UULogWriter.swift",
"Logging/UULogger.swift",
"UUCollection.swift",
"UUColor.swift",
"UUComparable.swift",
"UUData.swift",
"UUDataCache.swift",
"UUDate.swift",
"UUDictionary.swift",
"UUJson.swift",
"UUKeychain.swift",
"UULocalization.swift",
"UUObject.swift",
"UUObjectFactory.swift",
"UURandom.swift",
"UUString.swift",
"UUSwiftCore.swift",
"UUThread.swift",
"UUTimeMeasurement.swift",
"UUTimer.swift",
"UUURL.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
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
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/28] Emitting module UUSwiftCore
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/Logging/UULog.swift:41:24: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | {
40 | /// The logger instance used to handle log messages.
41 | private static var logger: UULogger? = nil
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// Initializes the current logger `UULog` with an optional logger.
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:60:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
40 | //
41 | // Meta Data is persisted with CoreData
42 | public class UUDataCache : NSObject, UUDataCacheProtocol
| `- note: class 'UUDataCache' does not conform to the 'Sendable' protocol
43 | {
44 | ////////////////////////////////////////////////////////////////////////////
:
58 | // Class Data Memebers
59 | ////////////////////////////////////////////////////////////////////////////
60 | public static let shared = UUDataCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | ////////////////////////////////////////////////////////////////////////////
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:325:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 |
322 | private class UUDataCacheDb
| `- note: class 'UUDataCacheDb' does not conform to the 'Sendable' protocol
323 | {
324 | private static let cacheKeyName = "UUDataCacheDb"
325 | static let shared = UUDataCacheDb()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 |
327 | let mutex = NSRecursiveLock()
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDate.swift:68:24: warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | extension DateFormatter
67 | {
68 | private static var uuSharedFormatterCache : Dictionary<String, DateFormatter> = Dictionary()
| |- warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'uuSharedFormatterCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'uuSharedFormatterCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | private static let lockingQueue: DispatchQueue = DispatchQueue(label: "UUDateFormatter_LockingQueue")
70 |
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUTimer.swift:110:24: warning: static property 'pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | private let activeTimersLock = NSRecursiveLock()
109 |
110 | private static var pools: [String:UUTimerPool] = [:]
| |- warning: static property 'pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pools' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'pools' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | private static let poolsLock = NSRecursiveLock()
112 |
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUTimer.swift:113:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUTimerPool' may have shared mutable state; this is an error in the Swift 6 language mode
103 | find all active timers in the pool.
104 | */
105 | public class UUTimerPool
| `- note: class 'UUTimerPool' does not conform to the 'Sendable' protocol
106 | {
107 | private var activeTimers: [String:UUTimer] = [:]
:
111 | private static let poolsLock = NSRecursiveLock()
112 |
113 | public static let shared = UUTimerPool.getPool("UUTimerPool.shared", queue: DispatchQueue.main)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUTimerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
115 | public let identifier: String
[5/30] Compiling UUSwiftCore UUURL.swift
[6/30] Compiling UUSwiftCore resource_bundle_accessor.swift
[7/30] Compiling UUSwiftCore UUSwiftCore.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUThread.swift:240:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
238 | DispatchQueue.global(qos: .background).async
239 | {
240 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUThread.swift:248:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
246 | DispatchQueue.main.async
247 | {
248 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
249 | }
250 | }
[8/30] Compiling UUSwiftCore UUThread.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUThread.swift:240:9: warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
238 | DispatchQueue.global(qos: .background).async
239 | {
240 | block()
| |- warning: capture of 'block' with non-sendable type '() -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
241 | }
242 | }
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUThread.swift:248:9: warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
246 | DispatchQueue.main.async
247 | {
248 | block()
| |- warning: sending 'block' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'block' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
249 | }
250 | }
[9/30] Compiling UUSwiftCore UULocalization.swift
[10/30] Compiling UUSwiftCore UUObject.swift
[11/30] Compiling UUSwiftCore UUObjectFactory.swift
[12/30] Compiling UUSwiftCore UUCollection.swift
[13/30] Compiling UUSwiftCore UUColor.swift
[14/30] Compiling UUSwiftCore UUComparable.swift
[15/30] Compiling UUSwiftCore UUConsoleLogWriter.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/Logging/UULog.swift:41:24: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | {
40 | /// The logger instance used to handle log messages.
41 | private static var logger: UULogger? = nil
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// Initializes the current logger `UULog` with an optional logger.
[16/30] Compiling UUSwiftCore UUConsoleLogger.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/Logging/UULog.swift:41:24: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | {
40 | /// The logger instance used to handle log messages.
41 | private static var logger: UULogger? = nil
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// Initializes the current logger `UULog` with an optional logger.
[17/30] Compiling UUSwiftCore UULog.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/Logging/UULog.swift:41:24: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | {
40 | /// The logger instance used to handle log messages.
41 | private static var logger: UULogger? = nil
| |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /// Initializes the current logger `UULog` with an optional logger.
[18/30] Compiling UUSwiftCore UUTimeMeasurement.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUTimer.swift:110:24: warning: static property 'pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | private let activeTimersLock = NSRecursiveLock()
109 |
110 | private static var pools: [String:UUTimerPool] = [:]
| |- warning: static property 'pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pools' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'pools' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | private static let poolsLock = NSRecursiveLock()
112 |
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUTimer.swift:113:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUTimerPool' may have shared mutable state; this is an error in the Swift 6 language mode
103 | find all active timers in the pool.
104 | */
105 | public class UUTimerPool
| `- note: class 'UUTimerPool' does not conform to the 'Sendable' protocol
106 | {
107 | private var activeTimers: [String:UUTimer] = [:]
:
111 | private static let poolsLock = NSRecursiveLock()
112 |
113 | public static let shared = UUTimerPool.getPool("UUTimerPool.shared", queue: DispatchQueue.main)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUTimerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
115 | public let identifier: String
[19/30] Compiling UUSwiftCore UUTimer.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUTimer.swift:110:24: warning: static property 'pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
108 | private let activeTimersLock = NSRecursiveLock()
109 |
110 | private static var pools: [String:UUTimerPool] = [:]
| |- warning: static property 'pools' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pools' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'pools' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
111 | private static let poolsLock = NSRecursiveLock()
112 |
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUTimer.swift:113:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUTimerPool' may have shared mutable state; this is an error in the Swift 6 language mode
103 | find all active timers in the pool.
104 | */
105 | public class UUTimerPool
| `- note: class 'UUTimerPool' does not conform to the 'Sendable' protocol
106 | {
107 | private var activeTimers: [String:UUTimer] = [:]
:
111 | private static let poolsLock = NSRecursiveLock()
112 |
113 | public static let shared = UUTimerPool.getPool("UUTimerPool.shared", queue: DispatchQueue.main)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUTimerPool' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
114 |
115 | public let identifier: String
[20/30] Compiling UUSwiftCore UUDictionary.swift
[21/30] Compiling UUSwiftCore UUJson.swift
[22/30] Compiling UUSwiftCore UUKeychain.swift
[23/30] Compiling UUSwiftCore UULogLevel.swift
[24/30] Compiling UUSwiftCore UULogWriter.swift
[25/30] Compiling UUSwiftCore UULogger.swift
[26/30] Compiling UUSwiftCore UUData.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:60:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
40 | //
41 | // Meta Data is persisted with CoreData
42 | public class UUDataCache : NSObject, UUDataCacheProtocol
| `- note: class 'UUDataCache' does not conform to the 'Sendable' protocol
43 | {
44 | ////////////////////////////////////////////////////////////////////////////
:
58 | // Class Data Memebers
59 | ////////////////////////////////////////////////////////////////////////////
60 | public static let shared = UUDataCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | ////////////////////////////////////////////////////////////////////////////
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:325:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 |
322 | private class UUDataCacheDb
| `- note: class 'UUDataCacheDb' does not conform to the 'Sendable' protocol
323 | {
324 | private static let cacheKeyName = "UUDataCacheDb"
325 | static let shared = UUDataCacheDb()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 |
327 | let mutex = NSRecursiveLock()
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDate.swift:68:24: warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | extension DateFormatter
67 | {
68 | private static var uuSharedFormatterCache : Dictionary<String, DateFormatter> = Dictionary()
| |- warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'uuSharedFormatterCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'uuSharedFormatterCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | private static let lockingQueue: DispatchQueue = DispatchQueue(label: "UUDateFormatter_LockingQueue")
70 |
[27/30] Compiling UUSwiftCore UUDataCache.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:60:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
40 | //
41 | // Meta Data is persisted with CoreData
42 | public class UUDataCache : NSObject, UUDataCacheProtocol
| `- note: class 'UUDataCache' does not conform to the 'Sendable' protocol
43 | {
44 | ////////////////////////////////////////////////////////////////////////////
:
58 | // Class Data Memebers
59 | ////////////////////////////////////////////////////////////////////////////
60 | public static let shared = UUDataCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | ////////////////////////////////////////////////////////////////////////////
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:325:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 |
322 | private class UUDataCacheDb
| `- note: class 'UUDataCacheDb' does not conform to the 'Sendable' protocol
323 | {
324 | private static let cacheKeyName = "UUDataCacheDb"
325 | static let shared = UUDataCacheDb()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 |
327 | let mutex = NSRecursiveLock()
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDate.swift:68:24: warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | extension DateFormatter
67 | {
68 | private static var uuSharedFormatterCache : Dictionary<String, DateFormatter> = Dictionary()
| |- warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'uuSharedFormatterCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'uuSharedFormatterCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | private static let lockingQueue: DispatchQueue = DispatchQueue(label: "UUDateFormatter_LockingQueue")
70 |
[28/30] Compiling UUSwiftCore UUDate.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:60:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
40 | //
41 | // Meta Data is persisted with CoreData
42 | public class UUDataCache : NSObject, UUDataCacheProtocol
| `- note: class 'UUDataCache' does not conform to the 'Sendable' protocol
43 | {
44 | ////////////////////////////////////////////////////////////////////////////
:
58 | // Class Data Memebers
59 | ////////////////////////////////////////////////////////////////////////////
60 | public static let shared = UUDataCache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | ////////////////////////////////////////////////////////////////////////////
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDataCache.swift:325:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
320 |
321 |
322 | private class UUDataCacheDb
| `- note: class 'UUDataCacheDb' does not conform to the 'Sendable' protocol
323 | {
324 | private static let cacheKeyName = "UUDataCacheDb"
325 | static let shared = UUDataCacheDb()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUDataCacheDb' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
326 |
327 | let mutex = NSRecursiveLock()
/Users/admin/builder/spi-builder-workspace/UUSwiftCore/UUDate.swift:68:24: warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | extension DateFormatter
67 | {
68 | private static var uuSharedFormatterCache : Dictionary<String, DateFormatter> = Dictionary()
| |- warning: static property 'uuSharedFormatterCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'uuSharedFormatterCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'uuSharedFormatterCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 | private static let lockingQueue: DispatchQueue = DispatchQueue(label: "UUDateFormatter_LockingQueue")
70 |
[29/30] Compiling UUSwiftCore UURandom.swift
[30/30] Compiling UUSwiftCore UUString.swift
Build complete! (8.61s)
Build complete.
{
"dependencies" : [
{
"identity" : "uuswifttestcore",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SilverPineSoftware/UUSwiftTestCore.git"
}
],
"manifest_display_name" : "UUSwiftCore",
"name" : "UUSwiftCore",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "UUSwiftCore",
"targets" : [
"UUSwiftCore"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "UUSwiftCoreTests",
"module_type" : "SwiftTarget",
"name" : "UUSwiftCoreTests",
"path" : "Tests",
"product_dependencies" : [
"UUSwiftTestCore"
],
"sources" : [
"Logging/UULoggerTests.swift",
"UUDataTests.swift",
"UUJsonTests.swift",
"UUStringTests.swift",
"UUTimeMeasurementTests.swift",
"UUTimerTests.swift"
],
"target_dependencies" : [
"UUSwiftCore"
],
"type" : "test"
},
{
"c99name" : "UUSwiftCore",
"module_type" : "SwiftTarget",
"name" : "UUSwiftCore",
"path" : "UUSwiftCore",
"product_memberships" : [
"UUSwiftCore"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/UUSwiftCore/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Logging/UUConsoleLogWriter.swift",
"Logging/UUConsoleLogger.swift",
"Logging/UULog.swift",
"Logging/UULogLevel.swift",
"Logging/UULogWriter.swift",
"Logging/UULogger.swift",
"UUCollection.swift",
"UUColor.swift",
"UUComparable.swift",
"UUData.swift",
"UUDataCache.swift",
"UUDate.swift",
"UUDictionary.swift",
"UUJson.swift",
"UUKeychain.swift",
"UULocalization.swift",
"UUObject.swift",
"UUObjectFactory.swift",
"UURandom.swift",
"UUString.swift",
"UUSwiftCore.swift",
"UUThread.swift",
"UUTimeMeasurement.swift",
"UUTimer.swift",
"UUURL.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.