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 WebOSClient, reference main (754990), with Swift 6.0 (beta) for macOS (SPM) on 16 Sep 2024 22:35:39 UTC.

Swift 6 data race errors: 2

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/jareksedy/WebOSClient.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jareksedy/WebOSClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 754990e Add getPowerState method to retrieve the TVs power state.
Cloned https://github.com/jareksedy/WebOSClient.git
Revision (git rev-parse @):
754990e6a8321ebaba3f3bf8ff3c90c19e9f9719
SUCCESS checkout https://github.com/jareksedy/WebOSClient.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/jareksedy/WebOSClient.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/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/30] Emitting module WebOSClient
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:8:14: warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | import Foundation
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
    |              `- warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:9:17: warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
    |                 `- warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
[4/33] Compiling WebOSClient WebOSResponseType.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:8:14: warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | import Foundation
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
    |              `- warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:9:17: warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
    |                 `- warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:119:46: warning: capture of 'completion' with non-sendable type '(Result<WebOSResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |             }
118 |             if case .success(let response) = result {
119 |                 handle(response, completion: completion)
    |                                              |- warning: capture of 'completion' with non-sendable type '(Result<WebOSResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 |                 listen(completion)
121 |             }
[5/33] Compiling WebOSClient WebOSSoundOutputType.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:8:14: warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | import Foundation
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
    |              `- warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:9:17: warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
    |                 `- warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:119:46: warning: capture of 'completion' with non-sendable type '(Result<WebOSResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |             }
118 |             if case .success(let response) = result {
119 |                 handle(response, completion: completion)
    |                                              |- warning: capture of 'completion' with non-sendable type '(Result<WebOSResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 |                 listen(completion)
121 |             }
[6/33] Compiling WebOSClient WebOSClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:8:14: warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | import Foundation
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
    |              `- warning: non-final class 'WebOSClient' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:9:17: warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
    |                 `- warning: stored property 'url' of 'Sendable'-conforming class 'WebOSClient' is mutable; this is an error in the Swift 6 language mode
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
/Users/admin/builder/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:119:46: warning: capture of 'completion' with non-sendable type '(Result<WebOSResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |             }
118 |             if case .success(let response) = result {
119 |                 handle(response, completion: completion)
    |                                              |- warning: capture of 'completion' with non-sendable type '(Result<WebOSResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 |                 listen(completion)
121 |             }
[7/33] Compiling WebOSClient WebOSRequestManifest.swift
[8/33] Compiling WebOSClient WebOSRequestPayload.swift
[9/33] Compiling WebOSClient WebOSRequestSignature.swift
[10/33] Compiling WebOSClient WebOSRequestSigned.swift
[11/33] Compiling WebOSClient WebOSResponse.swift
[12/33] Compiling WebOSClient WebOSResponseApplication.swift
[13/33] Compiling WebOSClient Encodable.swift
[14/33] Compiling WebOSClient Message.swift
[15/33] Compiling WebOSClient String.swift
[16/33] Compiling WebOSClient Logging.swift
[17/33] Compiling WebOSClient SendPing.swift
[18/33] Compiling WebOSClient WebOSRequest.swift
[19/33] Compiling WebOSClient WebOSClientProtocol.swift
[20/33] Compiling WebOSClient WebOSKeyTargetExtension.swift
[21/33] Compiling WebOSClient WebOSTargetExtension.swift
[22/33] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[23/33] Compiling WebOSClient WebOSResponseDevice.swift
[24/33] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[25/33] Compiling WebOSClient WebOSTarget.swift
[26/33] Compiling WebOSClient WebOSPairingType.swift
[27/33] Compiling WebOSClient WebOSRequestType.swift
[28/33] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[29/33] Compiling WebOSClient WebOSTargetProtocol.swift
[30/33] Compiling WebOSClient WebOSKeyTarget.swift
[31/33] Compiling WebOSClient WebOSResponsePayload.swift
[32/33] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[33/33] Compiling WebOSClient WebOSClientDelegate.swift
Build complete! (19.65s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WebOSClient",
  "name" : "WebOSClient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "WebOSClient",
      "targets" : [
        "WebOSClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WebOSClientTests",
      "module_type" : "SwiftTarget",
      "name" : "WebOSClientTests",
      "path" : "Tests/WebOSClientTests",
      "sources" : [
        "WebOSClientTests.swift"
      ],
      "target_dependencies" : [
        "WebOSClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WebOSClient",
      "module_type" : "SwiftTarget",
      "name" : "WebOSClient",
      "path" : "Sources/WebOSClient",
      "product_memberships" : [
        "WebOSClient"
      ],
      "sources" : [
        "Extensions/Encodable.swift",
        "Extensions/Message.swift",
        "Extensions/String.swift",
        "Extensions/WebOSClientExtensions/Logging.swift",
        "Extensions/WebOSClientExtensions/SendPing.swift",
        "Models/Request/WebOSRequest.swift",
        "Models/Request/WebOSRequestManifest.swift",
        "Models/Request/WebOSRequestPayload.swift",
        "Models/Request/WebOSRequestSignature.swift",
        "Models/Request/WebOSRequestSigned.swift",
        "Models/Response/WebOSResponse.swift",
        "Models/Response/WebOSResponseApplication.swift",
        "Models/Response/WebOSResponseCurrentWidget.swift",
        "Models/Response/WebOSResponseDevice.swift",
        "Models/Response/WebOSResponseForegroundAppInfo.swift",
        "Models/Response/WebOSResponsePayload.swift",
        "Models/Response/WebOSResponseVolumeStatus.swift",
        "Protocols/WebOSClientDelegate.swift",
        "Protocols/WebOSClientProtocol.swift",
        "Targets/Extensions/WebOSKeyTargetExtension.swift",
        "Targets/Extensions/WebOSTargetExtension.swift",
        "Targets/Protocols/WebOSKeyTargetProtocol.swift",
        "Targets/Protocols/WebOSTargetProtocol.swift",
        "Targets/WebOSKeyTarget.swift",
        "Targets/WebOSTarget.swift",
        "Types/WebOSPairingType.swift",
        "Types/WebOSRequestType.swift",
        "Types/WebOSResponseType.swift",
        "Types/WebOSSoundOutputType.swift",
        "WebOSClient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.