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 SKWebAPI, reference master (fb2d6a), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 12:09:04 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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pvzig/SKWebAPI.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pvzig/SKWebAPI
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at fb2d6af Update Cartfile
Cloned https://github.com/pvzig/SKWebAPI.git
Revision (git rev-parse @):
fb2d6af497a378b2556573c245cc5280a7e1754a
SUCCESS checkout https://github.com/pvzig/SKWebAPI.git at master
Fetching https://github.com/pvzig/SKCore
[1/288] Fetching skcore
Fetched https://github.com/pvzig/SKCore from cache (0.79s)
Computing version for https://github.com/pvzig/SKCore
Computed https://github.com/pvzig/SKCore at 4.1.3 (0.55s)
Creating working copy for https://github.com/pvzig/SKCore
Working copy of https://github.com/pvzig/SKCore resolved at 4.1.3
========================================
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": "skwebapi",
      "name": "SKWebAPI",
      "url": "https://github.com/pvzig/SKWebAPI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SKWebAPI",
      "dependencies": [
        {
          "identity": "skcore",
          "name": "SKCore",
          "url": "https://github.com/pvzig/SKCore",
          "version": "4.1.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SKCore",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/pvzig/SKWebAPI.git
[3/294] Fetching skwebapi
Fetched https://github.com/pvzig/SKWebAPI.git from cache (0.79s)
Fetching https://github.com/pvzig/SKCore from cache
Fetched https://github.com/pvzig/SKCore from cache (0.47s)
Computing version for https://github.com/pvzig/SKCore
Computed https://github.com/pvzig/SKCore at 4.1.3 (0.02s)
Creating working copy for https://github.com/pvzig/SKWebAPI.git
Working copy of https://github.com/pvzig/SKWebAPI.git resolved at master (fb2d6af)
Creating working copy for https://github.com/pvzig/SKCore
Working copy of https://github.com/pvzig/SKCore resolved at 4.1.3
warning: '.resolve-product-dependencies': dependency 'skwebapi' is not used by any target
Found 1 product dependencies
  - SKCore
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/pvzig/SKWebAPI.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 -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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/29] Emitting module SKCore
[5/31] Compiling SKCore TeamIcon.swift
[6/31] Compiling SKCore Topic.swift
[7/31] Compiling SKCore Reaction.swift
[8/31] Compiling SKCore Reply.swift
[9/31] Compiling SKCore Scope.swift
[10/31] Compiling SKCore Action.swift
[11/31] Compiling SKCore Attachment.swift
[12/31] Compiling SKCore AttachmentField.swift
[13/31] Compiling SKCore User.swift
[14/31] Compiling SKCore UserGroup.swift
[15/31] Compiling SKCore Message.swift
[16/31] Compiling SKCore OAuthConfig.swift
[17/31] Compiling SKCore RTMOptions.swift
[18/31] Compiling SKCore SlackError.swift
[19/31] Compiling SKCore Team.swift
[20/31] Compiling SKCore CustomProfile.swift
[21/31] Compiling SKCore CustomProfileField.swift
[22/31] Compiling SKCore DoNotDisturbStatus.swift
[23/31] Compiling SKCore File.swift
[24/31] Compiling SKCore History.swift
[25/31] Compiling SKCore Item.swift
[26/31] Compiling SKCore Bot.swift
[27/31] Compiling SKCore Channel.swift
[28/31] Compiling SKCore Comment.swift
[29/31] Compiling SKCore Edited.swift
[30/31] Compiling SKCore Event.swift
[31/31] Compiling SKCore Extensions.swift
[32/35] Compiling SKWebAPI WebAPI.swift
[33/35] Compiling SKWebAPI NetworkInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:51:17: warning: capture of 'successClosure' with non-sendable type '([String : Any]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 49 |         session.dataTask(with: request) {(data, response, publicError) in
 50 |             do {
 51 |                 successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
    |                 |- warning: capture of 'successClosure' with non-sendable type '([String : Any]) -> 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'
 52 |             } catch let error {
 53 |                 errorClosure(error as? SlackError ?? SlackError.unknownError)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:53:17: warning: capture of 'errorClosure' with non-sendable type '(SlackError) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 51 |                 successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
 52 |             } catch let error {
 53 |                 errorClosure(error as? SlackError ?? SlackError.unknownError)
    |                 |- warning: capture of 'errorClosure' with non-sendable type '(SlackError) -> 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'
 54 |             }
 55 |         }.resume()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:69:13: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
 67 |         let semaphore = DispatchSemaphore(value: 0)
 68 |         session.dataTask(with: request) { (reqData, reqResponse, reqError) in
 69 |             data = reqData
    |             `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
 70 |             response = reqResponse
 71 |             error = reqError
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:70:13: warning: mutation of captured var 'response' in concurrently-executing code; this is an error in the Swift 6 language mode
 68 |         session.dataTask(with: request) { (reqData, reqResponse, reqError) in
 69 |             data = reqData
 70 |             response = reqResponse
    |             `- warning: mutation of captured var 'response' in concurrently-executing code; this is an error in the Swift 6 language mode
 71 |             error = reqError
 72 |             if data == nil, let error = error { print(error) }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:71:13: warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
 69 |             data = reqData
 70 |             response = reqResponse
 71 |             error = reqError
    |             `- warning: mutation of captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
 72 |             if data == nil, let error = error { print(error) }
 73 |             semaphore.signal()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:72:16: warning: reference to captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
 70 |             response = reqResponse
 71 |             error = reqError
 72 |             if data == nil, let error = error { print(error) }
    |                `- warning: reference to captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
 73 |             semaphore.signal()
 74 |         }.resume()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:72:41: warning: reference to captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
 70 |             response = reqResponse
 71 |             error = reqError
 72 |             if data == nil, let error = error { print(error) }
    |                                         `- warning: reference to captured var 'error' in concurrently-executing code; this is an error in the Swift 6 language mode
 73 |             semaphore.signal()
 74 |         }.resume()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:97:17: warning: capture of 'success' with non-sendable type '(Bool) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |         session.dataTask(with: request) {(_, _, publicError) in
 96 |             if publicError == nil {
 97 |                 success(true)
    |                 |- warning: capture of 'success' with non-sendable type '(Bool) -> 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'
 98 |             } else {
 99 |                 errorClosure(SlackError.clientNetworkError)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:99:17: warning: capture of 'errorClosure' with non-sendable type '(SlackError) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |                 success(true)
 98 |             } else {
 99 |                 errorClosure(SlackError.clientNetworkError)
    |                 |- warning: capture of 'errorClosure' with non-sendable type '(SlackError) -> 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'
100 |             }
101 |         }.resume()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:126:17: warning: capture of 'successClosure' with non-sendable type '([String : Any]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 |         session.dataTask(with: request) {(data, response, publicError) in
125 |             do {
126 |                 successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
    |                 |- warning: capture of 'successClosure' with non-sendable type '([String : Any]) -> 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'
127 |             } catch let error {
128 |                 errorClosure(error as? SlackError ?? SlackError.unknownError)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkInterface.swift:128:17: warning: capture of 'errorClosure' with non-sendable type '(SlackError) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |                 successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
127 |             } catch let error {
128 |                 errorClosure(error as? SlackError ?? SlackError.unknownError)
    |                 |- warning: capture of 'errorClosure' with non-sendable type '(SlackError) -> 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'
129 |             }
130 |         }.resume()
[34/35] Emitting module SKWebAPI
[35/35] Compiling SKWebAPI Endpoint.swift
Build complete! (14.71s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "skcore",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.1.0",
            "upper_bound" : "4.2.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pvzig/SKCore"
    }
  ],
  "manifest_display_name" : "SKWebAPI",
  "name" : "SKWebAPI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SKWebAPI",
      "targets" : [
        "SKWebAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SKWebAPI",
      "module_type" : "SwiftTarget",
      "name" : "SKWebAPI",
      "path" : "Sources",
      "product_dependencies" : [
        "SKCore"
      ],
      "product_memberships" : [
        "SKWebAPI"
      ],
      "sources" : [
        "Endpoint.swift",
        "NetworkInterface.swift",
        "WebAPI.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.