Build Information
Successful build of ArtAdk, reference main (fa50d4), with Swift 6.1 for macOS (SPM) on 29 Apr 2026 15:13:34 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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aiotrixdev/art-swift-adk.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aiotrixdev/art-swift-adk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at fa50d49 Merge pull request #4 from aiotrixdev/release/release-1
Cloned https://github.com/aiotrixdev/art-swift-adk.git
Revision (git rev-parse @):
fa50d49a12c6def2d81396e685a567126e2f2f82
SUCCESS checkout https://github.com/aiotrixdev/art-swift-adk.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/aiotrixdev/art-swift-adk.git
https://github.com/aiotrixdev/art-swift-adk.git
{
"dependencies" : [
{
"identity" : "tweetnacl-swiftwrap",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/bitmark-inc/tweetnacl-swiftwrap"
}
],
"manifest_display_name" : "ArtAdk",
"name" : "ArtAdk",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "ArtAdk",
"targets" : [
"ArtAdk"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "ArtAdk",
"module_type" : "SwiftTarget",
"name" : "ArtAdk",
"path" : "Sources/ArtAdk",
"product_dependencies" : [
"TweetNacl"
],
"product_memberships" : [
"ArtAdk"
],
"sources" : [
"Auth/Auth.swift",
"CRDT/CRDT.swift",
"CRDT/CRDTTypes.swift",
"CRDT/CRDTUtils.swift",
"Config/Constant.swift",
"Crypto/CryptoBox.swift",
"Types/AuthTypes.swift",
"Types/ChannelTypes.swift",
"Types/CryptoTypes.swift",
"Types/SocketTypes.swift",
"WebSocket/Adk.swift",
"WebSocket/BaseSubscription.swift",
"WebSocket/EventEmitter.swift",
"WebSocket/HelperFunctions.swift",
"WebSocket/Interception.swift",
"WebSocket/LiveObjSubscription.swift",
"WebSocket/LongPollClient.swift",
"WebSocket/Socket.swift",
"WebSocket/Subscription.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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/4] Write sources
[2/4] Compiling CTweetNacl ctweetnacl.c
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/7] Compiling TweetNacl Constant.swift
[6/7] Emitting module TweetNacl
[7/7] Compiling TweetNacl TweetNacl.swift
[8/26] Compiling ArtAdk CryptoTypes.swift
[9/26] Compiling ArtAdk SocketTypes.swift
[10/27] Compiling ArtAdk CRDTTypes.swift
[11/27] Compiling ArtAdk CRDTUtils.swift
[12/27] Compiling ArtAdk Constant.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:4:23: warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public final class Constant {
4 | public static var ROOT: String = "/"
| |- warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ROOT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ROOT' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:5:23: warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public final class Constant {
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
| |- warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_FILE_NAME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_FILE_NAME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:6:23: warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
| |- warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BASE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'BASE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:7:23: warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
| |- warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'WS_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'WS_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:8:23: warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
| |- warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SSE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'SSE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:9:23: warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
| |- warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LPOLL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'LPOLL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:10:23: warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
| |- warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_JSON_PATH' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_JSON_PATH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
[13/27] Compiling ArtAdk CryptoBox.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:4:23: warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public final class Constant {
4 | public static var ROOT: String = "/"
| |- warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ROOT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ROOT' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:5:23: warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public final class Constant {
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
| |- warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_FILE_NAME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_FILE_NAME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:6:23: warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
| |- warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BASE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'BASE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:7:23: warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
| |- warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'WS_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'WS_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:8:23: warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
| |- warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SSE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'SSE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:9:23: warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
| |- warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LPOLL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'LPOLL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:10:23: warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
| |- warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_JSON_PATH' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_JSON_PATH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
[14/27] Compiling ArtAdk Subscription.swift
[15/27] Emitting module ArtAdk
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:6:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | // MARK: - Singleton
6 | private static var _instance: Auth?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | private static let lock = NSLock()
8 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:4:23: warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | public final class Constant {
4 | public static var ROOT: String = "/"
| |- warning: static property 'ROOT' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ROOT' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ROOT' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:5:23: warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | public final class Constant {
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
| |- warning: static property 'CONFIG_FILE_NAME' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_FILE_NAME' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_FILE_NAME' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:6:23: warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public static var ROOT: String = "/"
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
| |- warning: static property 'BASE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'BASE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'BASE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:7:23: warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
5 | public static var CONFIG_FILE_NAME: String = "adk-services.json"
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
| |- warning: static property 'WS_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'WS_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'WS_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:8:23: warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public static var BASE_URL: String = ""
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
| |- warning: static property 'SSE_URL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'SSE_URL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'SSE_URL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:9:23: warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
7 | public static var WS_URL: String = "/v1/connect"
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
| |- warning: static property 'LPOLL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LPOLL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'LPOLL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
11 | }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Config/Constant.swift:10:23: warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | public static var SSE_URL: String = "/v1/connect/sse"
9 | public static var LPOLL: String = "/v1/longpoll"
10 | public static var CONFIG_JSON_PATH: String = "/adk-services.json"
| |- warning: static property 'CONFIG_JSON_PATH' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'CONFIG_JSON_PATH' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'CONFIG_JSON_PATH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | }
12 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:19:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | // MARK: Singleton
19 | private static var _instance: Socket?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:21:17: warning: stored property 'websocket' of 'Sendable'-conforming class 'Socket' is mutable; this is an error in the Swift 6 language mode
19 | private static var _instance: Socket?
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
| `- warning: stored property 'websocket' of 'Sendable'-conforming class 'Socket' is mutable; this is an error in the Swift 6 language mode
22 | private var credentials: AuthenticationConfig = AuthenticationConfig()
23 | private var subscriptions: [String: BaseSubscription] = [:]
[16/27] Compiling ArtAdk Auth.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:6:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | // MARK: - Singleton
6 | private static var _instance: Auth?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | private static let lock = NSLock()
8 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/CRDT/CRDT.swift:292:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
290 | if trailingTimer != nil { return }
291 |
292 | trailingTimer = Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
293 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
294 |
295 | try? await Task.sleep(nanoseconds: UInt64(minFlushMs * 1_000_000))
[17/27] Compiling ArtAdk CRDT.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/Auth/Auth.swift:6:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | // MARK: - Singleton
6 | private static var _instance: Auth?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | private static let lock = NSLock()
8 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/CRDT/CRDT.swift:292:34: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
290 | if trailingTimer != nil { return }
291 |
292 | trailingTimer = Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
293 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
294 |
295 | try? await Task.sleep(nanoseconds: UInt64(minFlushMs * 1_000_000))
[18/27] Compiling ArtAdk Interception.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Interception.swift:32:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 |
31 | public func reconnect() {
32 | Task { try? await validateInterception() }
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/LiveObjSubscription.swift:63:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let serializedOps = serializeOps(ops)
62 |
63 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | try await self?.pushArray(event: "merge", data: serializedOps)
| | `- note: closure captures non-Sendable 'serializedOps'
| `- note: closure captures non-Sendable 'self'
66 | } catch {
67 | return }
[19/27] Compiling ArtAdk LiveObjSubscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Interception.swift:32:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 |
31 | public func reconnect() {
32 | Task { try? await validateInterception() }
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/LiveObjSubscription.swift:63:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
61 | let serializedOps = serializeOps(ops)
62 |
63 | Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
64 | do {
65 | try await self?.pushArray(event: "merge", data: serializedOps)
| | `- note: closure captures non-Sendable 'serializedOps'
| `- note: closure captures non-Sendable 'self'
66 | } catch {
67 | return }
[20/27] Compiling ArtAdk EventEmitter.swift
[21/27] Compiling ArtAdk HelperFunctions.swift
[22/27] Compiling ArtAdk Adk.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:162:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
160 | private func handleReconnection() {
161 | reconnectTask?.cancel()
162 | reconnectTask = Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
163 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
164 | if self.reconnectAttempts < self.maxReconnectAttempts {
165 | self.reconnectAttempts += 1
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:83:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | isPaused = true
82 | reconnectAttempts = maxReconnectAttempts
83 | Task { await socket.closeWebSocket()
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
84 | state = .paused
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/BaseSubscription.swift:248:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
246 | channelConfig.channelName != "art_secure" else { return }
247 |
248 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
249 | if isListening {
| `- note: closure captures 'self' which is accessible to code in the current task
250 | await validateSubscription(process: "presence")
251 | }
[23/27] Compiling ArtAdk BaseSubscription.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:162:30: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
160 | private func handleReconnection() {
161 | reconnectTask?.cancel()
162 | reconnectTask = Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
163 | guard let self else { return }
| `- note: closure captures 'self' which is accessible to code in the current task
164 | if self.reconnectAttempts < self.maxReconnectAttempts {
165 | self.reconnectAttempts += 1
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Adk.swift:83:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
81 | isPaused = true
82 | reconnectAttempts = maxReconnectAttempts
83 | Task { await socket.closeWebSocket()
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
84 | state = .paused
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/BaseSubscription.swift:248:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
246 | channelConfig.channelName != "art_secure" else { return }
247 |
248 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
249 | if isListening {
| `- note: closure captures 'self' which is accessible to code in the current task
250 | await validateSubscription(process: "presence")
251 | }
[24/27] Compiling ArtAdk AuthTypes.swift
[25/27] Compiling ArtAdk ChannelTypes.swift
[26/27] Compiling ArtAdk LongPollClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:19:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | // MARK: Singleton
19 | private static var _instance: Socket?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:21:17: warning: stored property 'websocket' of 'Sendable'-conforming class 'Socket' is mutable; this is an error in the Swift 6 language mode
19 | private static var _instance: Socket?
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
| `- warning: stored property 'websocket' of 'Sendable'-conforming class 'Socket' is mutable; this is an error in the Swift 6 language mode
22 | private var credentials: AuthenticationConfig = AuthenticationConfig()
23 | private var subscriptions: [String: BaseSubscription] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/LongPollClient.swift:22:25: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
20 | if let cid = connectionId { self.connectionId = cid }
21 | isRunning = true
22 | pollTask = Task { [weak self] in await self?.pollLoop() }
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:119:9: warning: will never be executed
117 |
118 | // 2. SSE
119 | do {
| `- warning: will never be executed
120 | try await connectSSE()
121 | pullSource = "sse"; pushSource = "http"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:487:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
485 | let interception = withSocketLock { interceptors[iName] }
486 | if let interception = interception {
487 | Task { await interception.handleMessage(channel: channel, data: payload) }
| | | `- note: closure captures non-Sendable 'payload'
| | `- note: closure captures non-Sendable 'interception'
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
488 | } else {
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:500:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
498 |
499 | if let sub = sub {
500 | Task { await sub.handleMessage(event: event, payload: payload) }
| | | `- note: closure captures non-Sendable 'payload'
| | `- note: closure captures non-Sendable 'sub'
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
501 | } else {
502 | withSocketLock { pendingIncomingMessages[subKey, default: []].append((event: event, payload: payload)) }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:320:70: warning: sending value of non-Sendable type 'Any' risks causing data races; this is an error in the Swift 6 language mode
318 | let callbackKey = "secure-\(refId)"
319 | self.withSocketLock {
320 | self.secureCallbacks[callbackKey] = { result in cont.resume(returning: result) }
| |- warning: sending value of non-Sendable type 'Any' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'Any' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
321 | }
322 | _ = self.sendMessage(msgStr)
[27/27] Compiling ArtAdk Socket.swift
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:19:24: warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | // MARK: Singleton
19 | private static var _instance: Socket?
| |- warning: static property '_instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_instance' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:21:17: warning: stored property 'websocket' of 'Sendable'-conforming class 'Socket' is mutable; this is an error in the Swift 6 language mode
19 | private static var _instance: Socket?
20 | // MARK: - State
21 | private var websocket: URLSessionWebSocketTask?
| `- warning: stored property 'websocket' of 'Sendable'-conforming class 'Socket' is mutable; this is an error in the Swift 6 language mode
22 | private var credentials: AuthenticationConfig = AuthenticationConfig()
23 | private var subscriptions: [String: BaseSubscription] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/LongPollClient.swift:22:25: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
20 | if let cid = connectionId { self.connectionId = cid }
21 | isRunning = true
22 | pollTask = Task { [weak self] in await self?.pollLoop() }
| | `- note: closure captures 'self' which is accessible to code in the current task
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:119:9: warning: will never be executed
117 |
118 | // 2. SSE
119 | do {
| `- warning: will never be executed
120 | try await connectSSE()
121 | pullSource = "sse"; pushSource = "http"
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:487:22: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
485 | let interception = withSocketLock { interceptors[iName] }
486 | if let interception = interception {
487 | Task { await interception.handleMessage(channel: channel, data: payload) }
| | | `- note: closure captures non-Sendable 'payload'
| | `- note: closure captures non-Sendable 'interception'
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
488 | } else {
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:500:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
498 |
499 | if let sub = sub {
500 | Task { await sub.handleMessage(event: event, payload: payload) }
| | | `- note: closure captures non-Sendable 'payload'
| | `- note: closure captures non-Sendable 'sub'
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
501 | } else {
502 | withSocketLock { pendingIncomingMessages[subKey, default: []].append((event: event, payload: payload)) }
/Users/admin/builder/spi-builder-workspace/Sources/ArtAdk/WebSocket/Socket.swift:320:70: warning: sending value of non-Sendable type 'Any' risks causing data races; this is an error in the Swift 6 language mode
318 | let callbackKey = "secure-\(refId)"
319 | self.withSocketLock {
320 | self.secureCallbacks[callbackKey] = { result in cont.resume(returning: result) }
| |- warning: sending value of non-Sendable type 'Any' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type 'Any' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
321 | }
322 | _ = self.sendMessage(msgStr)
Build complete! (11.27s)
Fetching https://github.com/bitmark-inc/tweetnacl-swiftwrap
[1/421] Fetching tweetnacl-swiftwrap
Fetched https://github.com/bitmark-inc/tweetnacl-swiftwrap from cache (1.08s)
Computing version for https://github.com/bitmark-inc/tweetnacl-swiftwrap
Computed https://github.com/bitmark-inc/tweetnacl-swiftwrap at 1.1.0 (4.15s)
Creating working copy for https://github.com/bitmark-inc/tweetnacl-swiftwrap
Working copy of https://github.com/bitmark-inc/tweetnacl-swiftwrap resolved at 1.1.0
Build complete.
{
"dependencies" : [
{
"identity" : "tweetnacl-swiftwrap",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/bitmark-inc/tweetnacl-swiftwrap"
}
],
"manifest_display_name" : "ArtAdk",
"name" : "ArtAdk",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "ArtAdk",
"targets" : [
"ArtAdk"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "ArtAdk",
"module_type" : "SwiftTarget",
"name" : "ArtAdk",
"path" : "Sources/ArtAdk",
"product_dependencies" : [
"TweetNacl"
],
"product_memberships" : [
"ArtAdk"
],
"sources" : [
"Auth/Auth.swift",
"CRDT/CRDT.swift",
"CRDT/CRDTTypes.swift",
"CRDT/CRDTUtils.swift",
"Config/Constant.swift",
"Crypto/CryptoBox.swift",
"Types/AuthTypes.swift",
"Types/ChannelTypes.swift",
"Types/CryptoTypes.swift",
"Types/SocketTypes.swift",
"WebSocket/Adk.swift",
"WebSocket/BaseSubscription.swift",
"WebSocket/EventEmitter.swift",
"WebSocket/HelperFunctions.swift",
"WebSocket/Interception.swift",
"WebSocket/LiveObjSubscription.swift",
"WebSocket/LongPollClient.swift",
"WebSocket/Socket.swift",
"WebSocket/Subscription.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.