The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of SwiftStreamManager, reference main (6df2df), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 13:15:56 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/calmdocs/SwiftStreamManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/calmdocs/SwiftStreamManager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6df2df5 fix: readme
Cloned https://github.com/calmdocs/SwiftStreamManager.git
Revision (git rev-parse @):
6df2df558b8d39f3e7b55a48e12da57ddab95f2f
SUCCESS checkout https://github.com/calmdocs/SwiftStreamManager.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/calmdocs/SwiftStreamManager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-117DEE11B69C53C9.txt
[6/26] Compiling SwiftKeyExchange Models.swift
[7/26] Compiling SwiftKeyExchange P256.swift
[8/27] Compiling SwiftKeyExchange P384.swift
[9/27] Compiling SwiftKeyExchange P521.swift
[10/27] Compiling SwiftKeyExchange ChaChaPoly.swift
[11/27] Compiling SwiftKeyExchange Curve.swift
[12/27] Compiling SwiftKeyExchange AEAD.swift
[13/27] Compiling SwiftKeyExchange AESGCM.swift
[14/27] Compiling SwiftKeyExchange SharedSecret.swift
[15/27] Compiling SwiftKeyExchange SymmetricKey.swift
[16/27] Compiling SwiftKeyExchange Timestamp.swift
[17/27] Compiling SwiftKeyExchange PEM.swift
[18/27] Compiling SwiftKeyExchange RandomData.swift
[19/27] Compiling SwiftKeyExchange URLSessionWebSocketTask.Message.swift
[20/27] Compiling SwiftProcessManager Port.swift
[21/27] Emitting module SwiftKeyExchange
[22/27] Compiling SwiftKeyExchange Curve25519.swift
[23/27] Compiling SwiftKeyExchange KeyExchangeStore.swift
[24/27] Compiling SwiftProcessManager SystemArchitecture.swift
[25/27] Emitting module SwiftProcessManager
[26/27] Compiling SwiftProcessManager ExitAppIfAlreadyOpen.swift
[27/27] Compiling SwiftProcessManager ProcessManager.swift
[28/36] Compiling SwiftWebSocketManager WebsocketError.swift
[29/36] Compiling SwiftWebSocketManager WebsocketTypeIDAndData.swift
[30/36] Compiling SwiftWebSocketManager URLSessionWebSocketTask.Message.swift
[31/36] Compiling SwiftWebSocketManager WebSocketStream.swift
[32/36] Compiling SwiftWebSocketManager Array.swift
[33/36] Compiling SwiftWebSocketManager PublishToJSON.swift
[34/36] Compiling SwiftWebSocketManager URL.swift
[35/36] Emitting module SwiftWebSocketManager
[36/36] Compiling SwiftWebSocketManager WebSocketManager.swift
[37/38] Emitting module SwiftStreamManager
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStreamManager/SwiftStreamManager.swift:19:12: warning: var 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 | ///  Function to create a new KeyExchangeStore.  Alternatively, create a similar function using a custom KeyExchangeStore().
 19 | public var KeyExchange_Curve25519_SHA256_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA256_HKDF_AESGCM_Store("") }
    |            |- warning: var 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 | public var KeyExchange_Curve25519_SHA384_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA384_HKDF_AESGCM_Store("") }
 21 | public var KeyExchange_Curve25519_SHA512_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA512_HKDF_AESGCM_Store("") }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStreamManager/SwiftStreamManager.swift:20:12: warning: var 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 | ///  Function to create a new KeyExchangeStore.  Alternatively, create a similar function using a custom KeyExchangeStore().
 19 | public var KeyExchange_Curve25519_SHA256_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA256_HKDF_AESGCM_Store("") }
 20 | public var KeyExchange_Curve25519_SHA384_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA384_HKDF_AESGCM_Store("") }
    |            |- warning: var 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 | public var KeyExchange_Curve25519_SHA512_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA512_HKDF_AESGCM_Store("") }
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStreamManager/SwiftStreamManager.swift:21:12: warning: var 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 19 | public var KeyExchange_Curve25519_SHA256_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA256_HKDF_AESGCM_Store("") }
 20 | public var KeyExchange_Curve25519_SHA384_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA384_HKDF_AESGCM_Store("") }
 21 | public var KeyExchange_Curve25519_SHA512_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA512_HKDF_AESGCM_Store("") }
    |            |- warning: var 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 22 |
 23 | public class StreamManager: ObservableObject {
[38/38] Compiling SwiftStreamManager SwiftStreamManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStreamManager/SwiftStreamManager.swift:19:12: warning: var 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 | ///  Function to create a new KeyExchangeStore.  Alternatively, create a similar function using a custom KeyExchangeStore().
 19 | public var KeyExchange_Curve25519_SHA256_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA256_HKDF_AESGCM_Store("") }
    |            |- warning: var 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'KeyExchange_Curve25519_SHA256_HKDF_AESGCM' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 20 | public var KeyExchange_Curve25519_SHA384_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA384_HKDF_AESGCM_Store("") }
 21 | public var KeyExchange_Curve25519_SHA512_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA512_HKDF_AESGCM_Store("") }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStreamManager/SwiftStreamManager.swift:20:12: warning: var 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 | ///  Function to create a new KeyExchangeStore.  Alternatively, create a similar function using a custom KeyExchangeStore().
 19 | public var KeyExchange_Curve25519_SHA256_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA256_HKDF_AESGCM_Store("") }
 20 | public var KeyExchange_Curve25519_SHA384_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA384_HKDF_AESGCM_Store("") }
    |            |- warning: var 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'KeyExchange_Curve25519_SHA384_HKDF_AESGCM' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 | public var KeyExchange_Curve25519_SHA512_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA512_HKDF_AESGCM_Store("") }
 22 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStreamManager/SwiftStreamManager.swift:21:12: warning: var 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 19 | public var KeyExchange_Curve25519_SHA256_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA256_HKDF_AESGCM_Store("") }
 20 | public var KeyExchange_Curve25519_SHA384_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA384_HKDF_AESGCM_Store("") }
 21 | public var KeyExchange_Curve25519_SHA512_HKDF_AESGCM = { return try! KeyExchange_Curve25519_SHA512_HKDF_AESGCM_Store("") }
    |            |- warning: var 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: annotate 'KeyExchange_Curve25519_SHA512_HKDF_AESGCM' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 22 |
 23 | public class StreamManager: ObservableObject {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftStreamManager/SwiftStreamManager.swift:254:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
252 |         )
253 |
254 |         Task(priority: .medium) {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
255 |
256 |             var isStarted = false
Build complete! (35.31s)
Fetching https://github.com/calmdocs/SwiftWebSocketManager
[1/64] Fetching swiftwebsocketmanager
Fetched https://github.com/calmdocs/SwiftWebSocketManager from cache (0.77s)
Fetching https://github.com/calmdocs/SwiftKeyExchange
[1/58] Fetching swiftkeyexchange
Fetched https://github.com/calmdocs/SwiftKeyExchange from cache (0.75s)
Fetching https://github.com/calmdocs/SwiftProcessManager
[1/57] Fetching swiftprocessmanager
Fetched https://github.com/calmdocs/SwiftProcessManager from cache (0.66s)
Creating working copy for https://github.com/calmdocs/SwiftWebSocketManager
Working copy of https://github.com/calmdocs/SwiftWebSocketManager resolved at main (5d27e78)
Creating working copy for https://github.com/calmdocs/SwiftProcessManager
Working copy of https://github.com/calmdocs/SwiftProcessManager resolved at main (b56b6e9)
Creating working copy for https://github.com/calmdocs/SwiftKeyExchange
Working copy of https://github.com/calmdocs/SwiftKeyExchange resolved at main (55a06c0)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftwebsocketmanager",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/calmdocs/SwiftWebSocketManager"
    },
    {
      "identity" : "swiftkeyexchange",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/calmdocs/SwiftKeyExchange"
    }
  ],
  "manifest_display_name" : "SwiftStreamManager",
  "name" : "SwiftStreamManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftStreamManager",
      "targets" : [
        "SwiftStreamManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftStreamManagerTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftStreamManagerTests",
      "path" : "Tests/SwiftStreamManagerTests",
      "product_dependencies" : [
        "SwiftWebSocketManager",
        "SwiftKeyExchange"
      ],
      "sources" : [
        "SwiftStreamManagerTests.swift"
      ],
      "target_dependencies" : [
        "SwiftStreamManager"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftStreamManager",
      "module_type" : "SwiftTarget",
      "name" : "SwiftStreamManager",
      "path" : "Sources/SwiftStreamManager",
      "product_dependencies" : [
        "SwiftWebSocketManager",
        "SwiftKeyExchange"
      ],
      "product_memberships" : [
        "SwiftStreamManager"
      ],
      "sources" : [
        "SwiftStreamManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.