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 (09d5da), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 18:58:35 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.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.56.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 09d5daf Merge pull request #7 from hmduc1603/main
Cloned https://github.com/jareksedy/WebOSClient.git
Revision (git rev-parse @):
09d5dafc679a6ed66bbc8b0bff68a55a128c55a1
SUCCESS checkout https://github.com/jareksedy/WebOSClient.git at main
========================================
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": "webosclient",
      "name": "WebOSClient",
      "url": "https://github.com/jareksedy/WebOSClient.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WebOSClient",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/jareksedy/WebOSClient.git
[1/1168] Fetching webosclient
Fetched https://github.com/jareksedy/WebOSClient.git from cache (1.29s)
Creating working copy for https://github.com/jareksedy/WebOSClient.git
Working copy of https://github.com/jareksedy/WebOSClient.git resolved at main (09d5daf)
warning: '.resolve-product-dependencies': dependency 'webosclient' is not used by any target
Found 0 product dependencies
========================================
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.1.0.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--7754E27361AE5C74.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 WebOSTarget.swift
[8/33] Compiling WebOSClient WebOSPairingType.swift
[9/33] Compiling WebOSClient WebOSRequestType.swift
[10/33] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[11/33] Compiling WebOSClient WebOSResponseDevice.swift
[12/33] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[13/33] Compiling WebOSClient WebOSClientProtocol.swift
[14/33] Compiling WebOSClient WebOSKeyTargetExtension.swift
[15/33] Compiling WebOSClient WebOSTargetExtension.swift
[16/33] Compiling WebOSClient Encodable.swift
[17/33] Compiling WebOSClient Message.swift
[18/33] Compiling WebOSClient String.swift
[19/33] Compiling WebOSClient WebOSRequestSigned.swift
[20/33] Compiling WebOSClient WebOSResponse.swift
[21/33] Compiling WebOSClient WebOSResponseApplication.swift
[22/33] Compiling WebOSClient WebOSResponsePayload.swift
[23/33] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[24/33] Compiling WebOSClient WebOSClientDelegate.swift
[25/33] Compiling WebOSClient WebOSRequestManifest.swift
[26/33] Compiling WebOSClient WebOSRequestPayload.swift
[27/33] Compiling WebOSClient WebOSRequestSignature.swift
[28/33] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[29/33] Compiling WebOSClient WebOSTargetProtocol.swift
[30/33] Compiling WebOSClient WebOSKeyTarget.swift
[31/33] Compiling WebOSClient Logging.swift
[32/33] Compiling WebOSClient SendPing.swift
[33/33] Compiling WebOSClient WebOSRequest.swift
Build complete! (18.04s)
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.