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 ECMASwift, reference main (746f56), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 12:50:27 UTC.

Swift 6 data race errors: 0

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/theolampert/ECMASwift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/theolampert/ECMASwift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 746f56f Test more methods
Cloned https://github.com/theolampert/ECMASwift.git
Revision (git rev-parse @):
746f56f1ea60600f13daaf6b27e8871ab4618857
SUCCESS checkout https://github.com/theolampert/ECMASwift.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": "ecmaswift",
      "name": "ECMASwift",
      "url": "https://github.com/theolampert/ECMASwift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ECMASwift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/theolampert/ECMASwift.git
[1/670] Fetching ecmaswift
Fetched https://github.com/theolampert/ECMASwift.git from cache (0.73s)
Creating working copy for https://github.com/theolampert/ECMASwift.git
Working copy of https://github.com/theolampert/ECMASwift.git resolved at main (746f56f)
warning: '.resolve-product-dependencies': dependency 'ecmaswift' 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/theolampert/ECMASwift.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ECMASwift",
  "name" : "ECMASwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "ECMASwift",
      "targets" : [
        "ECMASwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ECMASwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "ECMASwiftTests",
      "path" : "Tests/ECMASwiftTests",
      "sources" : [
        "BlobTests.swift",
        "CryptoTests.swift",
        "FetchTests.swift",
        "HeadersTests.swift",
        "RequestTests.swift",
        "SubtleCryptoTests.swift",
        "TextEncoderTests.swift",
        "TimerTests.swift",
        "URLSearchParamsTests.swift",
        "URLTests.swift"
      ],
      "target_dependencies" : [
        "ECMASwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ECMASwift",
      "module_type" : "SwiftTarget",
      "name" : "ECMASwift",
      "path" : "Sources/ECMASwift",
      "product_memberships" : [
        "ECMASwift"
      ],
      "sources" : [
        "API/Blob/Blob.swift",
        "API/Console/Console.swift",
        "API/Crypto/Crypto.swift",
        "API/Crypto/SublteCrypto.swift",
        "API/Fetch/AbortController.swift",
        "API/Fetch/Fetch.swift",
        "API/Fetch/HTTPClient.swift",
        "API/FormData/FormData.swift",
        "API/Headers/Headers.swift",
        "API/Request/Request.swift",
        "API/Request/RequestBody.swift",
        "API/TextEncoder/TextEncoder.swift",
        "API/Timers/Timers.swift",
        "API/URL/URL.swift",
        "API/URLSearchParams/URLSearchParams.swift",
        "Helpers/JSContext+callFunction.swift",
        "Helpers/JSValue+callFunction.swift",
        "Helpers/JSValue+isNil.swift",
        "Helpers/JSValue+toType.swift",
        "JSRuntime.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/21] Compiling ECMASwift JSValue+callFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSValue+callFunction.swift:14:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
12 |         try await withCheckedThrowingContinuation { continuation in
13 |             let onFulfilled: @convention(block) (JSValue) -> Void = {
14 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
15 |             }
16 |             let onRejected: @convention(block) (JSValue) -> Void = { error in
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSValue+callFunction.swift:40:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
38 |
39 |            let onFulfilled: @convention(block) (JSValue) -> Void = {
40 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
41 |            }
42 |
[4/21] Compiling ECMASwift JSValue+isNil.swift
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSValue+callFunction.swift:14:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
12 |         try await withCheckedThrowingContinuation { continuation in
13 |             let onFulfilled: @convention(block) (JSValue) -> Void = {
14 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
15 |             }
16 |             let onRejected: @convention(block) (JSValue) -> Void = { error in
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSValue+callFunction.swift:40:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
38 |
39 |            let onFulfilled: @convention(block) (JSValue) -> Void = {
40 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
41 |            }
42 |
[5/23] Compiling ECMASwift JSValue+toType.swift
[6/23] Compiling ECMASwift JSRuntime.swift
[7/23] Compiling ECMASwift URLSearchParams.swift
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSContext+callFunction.swift:30:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
28 |         try await withCheckedThrowingContinuation { continuation in
29 |             let onFulfilled: @convention(block) (JSValue) -> Void = {
30 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
31 |             }
32 |             let onRejected: @convention(block) (JSValue) -> Void = { error in
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSContext+callFunction.swift:57:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
55 |
56 |            let onFulfilled: @convention(block) (JSValue) -> Void = {
57 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
58 |            }
59 |
[8/23] Compiling ECMASwift JSContext+callFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSContext+callFunction.swift:30:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
28 |         try await withCheckedThrowingContinuation { continuation in
29 |             let onFulfilled: @convention(block) (JSValue) -> Void = {
30 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
31 |             }
32 |             let onRejected: @convention(block) (JSValue) -> Void = { error in
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/Helpers/JSContext+callFunction.swift:57:30: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
55 |
56 |            let onFulfilled: @convention(block) (JSValue) -> Void = {
57 |                 continuation.resume(returning: $0)
   |                              |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
   |                              `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
58 |            }
59 |
[9/23] Compiling ECMASwift Timers.swift
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/API/Timers/Timers.swift:20:31: warning: capture of 'callback' with non-sendable type 'JSValue?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |         let uuid = UUID().uuidString
19 |         let timer = Timer(timeInterval: timeInterval, repeats: repeats) { [weak self, weak callback] _ in
20 |             if let callback = callback, callback.isObject {
   |                               `- warning: capture of 'callback' with non-sendable type 'JSValue?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 callback.call(withArguments: [])
22 |             }
JavaScriptCore.JSValue:2:12: note: class 'JSValue' does not conform to the 'Sendable' protocol
  1 | @available(macOS 10.9, *)
  2 | open class JSValue : NSObject {
    |            `- note: class 'JSValue' does not conform to the 'Sendable' protocol
  3 |     open var context: JSContext! { get }
  4 |     public /*not inherited*/ init!(object value: Any!, in context: JSContext!)
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/API/Timers/Timers.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JavaScriptCore'
 1 | import JavaScriptCore
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JavaScriptCore'
 2 | import os.lock
 3 |
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/API/Timers/Timers.swift:25:38: warning: capture of 'self' with non-sendable type 'TimerAPI?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 | /// - [clearTimeout()](https://developer.mozilla.org/en-US/docs/Web/API/clearTimeout)
10 | /// - [clearInterval()](https://developer.mozilla.org/en-US/docs/Web/API/clearInterval)
11 | final class TimerAPI {
   |             `- note: class 'TimerAPI' does not conform to the 'Sendable' protocol
12 |     var timers = [String: Timer]()
13 |
   :
23 |
24 |             if !repeats {
25 |                 os_unfair_lock_lock(&self!.lock)
   |                                      `- warning: capture of 'self' with non-sendable type 'TimerAPI?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |                 self?.timers[uuid] = nil
27 |                 os_unfair_lock_unlock(&self!.lock)
[10/23] Compiling ECMASwift URL.swift
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/API/Timers/Timers.swift:20:31: warning: capture of 'callback' with non-sendable type 'JSValue?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |         let uuid = UUID().uuidString
19 |         let timer = Timer(timeInterval: timeInterval, repeats: repeats) { [weak self, weak callback] _ in
20 |             if let callback = callback, callback.isObject {
   |                               `- warning: capture of 'callback' with non-sendable type 'JSValue?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 callback.call(withArguments: [])
22 |             }
JavaScriptCore.JSValue:2:12: note: class 'JSValue' does not conform to the 'Sendable' protocol
  1 | @available(macOS 10.9, *)
  2 | open class JSValue : NSObject {
    |            `- note: class 'JSValue' does not conform to the 'Sendable' protocol
  3 |     open var context: JSContext! { get }
  4 |     public /*not inherited*/ init!(object value: Any!, in context: JSContext!)
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/API/Timers/Timers.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JavaScriptCore'
 1 | import JavaScriptCore
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'JavaScriptCore'
 2 | import os.lock
 3 |
/Users/admin/builder/spi-builder-workspace/Sources/ECMASwift/API/Timers/Timers.swift:25:38: warning: capture of 'self' with non-sendable type 'TimerAPI?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 | /// - [clearTimeout()](https://developer.mozilla.org/en-US/docs/Web/API/clearTimeout)
10 | /// - [clearInterval()](https://developer.mozilla.org/en-US/docs/Web/API/clearInterval)
11 | final class TimerAPI {
   |             `- note: class 'TimerAPI' does not conform to the 'Sendable' protocol
12 |     var timers = [String: Timer]()
13 |
   :
23 |
24 |             if !repeats {
25 |                 os_unfair_lock_lock(&self!.lock)
   |                                      `- warning: capture of 'self' with non-sendable type 'TimerAPI?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |                 self?.timers[uuid] = nil
27 |                 os_unfair_lock_unlock(&self!.lock)
[11/23] Compiling ECMASwift RequestBody.swift
[12/23] Compiling ECMASwift TextEncoder.swift
[13/23] Compiling ECMASwift HTTPClient.swift
[14/23] Compiling ECMASwift FormData.swift
[15/23] Compiling ECMASwift AbortController.swift
[16/23] Compiling ECMASwift Fetch.swift
[17/23] Compiling ECMASwift Blob.swift
[18/23] Compiling ECMASwift Console.swift
[19/23] Compiling ECMASwift Crypto.swift
[20/23] Compiling ECMASwift SublteCrypto.swift
[21/23] Emitting module ECMASwift
[22/23] Compiling ECMASwift Headers.swift
[23/23] Compiling ECMASwift Request.swift
Build complete! (10.56s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ECMASwift",
  "name" : "ECMASwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "ECMASwift",
      "targets" : [
        "ECMASwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ECMASwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "ECMASwiftTests",
      "path" : "Tests/ECMASwiftTests",
      "sources" : [
        "BlobTests.swift",
        "CryptoTests.swift",
        "FetchTests.swift",
        "HeadersTests.swift",
        "RequestTests.swift",
        "SubtleCryptoTests.swift",
        "TextEncoderTests.swift",
        "TimerTests.swift",
        "URLSearchParamsTests.swift",
        "URLTests.swift"
      ],
      "target_dependencies" : [
        "ECMASwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ECMASwift",
      "module_type" : "SwiftTarget",
      "name" : "ECMASwift",
      "path" : "Sources/ECMASwift",
      "product_memberships" : [
        "ECMASwift"
      ],
      "sources" : [
        "API/Blob/Blob.swift",
        "API/Console/Console.swift",
        "API/Crypto/Crypto.swift",
        "API/Crypto/SublteCrypto.swift",
        "API/Fetch/AbortController.swift",
        "API/Fetch/Fetch.swift",
        "API/Fetch/HTTPClient.swift",
        "API/FormData/FormData.swift",
        "API/Headers/Headers.swift",
        "API/Request/Request.swift",
        "API/Request/RequestBody.swift",
        "API/TextEncoder/TextEncoder.swift",
        "API/Timers/Timers.swift",
        "API/URL/URL.swift",
        "API/URLSearchParams/URLSearchParams.swift",
        "Helpers/JSContext+callFunction.swift",
        "Helpers/JSValue+callFunction.swift",
        "Helpers/JSValue+isNil.swift",
        "Helpers/JSValue+toType.swift",
        "JSRuntime.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.