This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/pvzig/SKWebAPI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/29] Emitting module SKCore
[5/31] Compiling SKCore User.swift
[6/31] Compiling SKCore UserGroup.swift
[7/31] Compiling SKCore Action.swift
[8/31] Compiling SKCore Attachment.swift
[9/31] Compiling SKCore AttachmentField.swift
[10/31] Compiling SKCore Reaction.swift
[11/31] Compiling SKCore Reply.swift
[12/31] Compiling SKCore Scope.swift
[13/31] Compiling SKCore Bot.swift
[14/31] Compiling SKCore Channel.swift
[15/31] Compiling SKCore Comment.swift
[16/31] Compiling SKCore TeamIcon.swift
[17/31] Compiling SKCore Topic.swift
[18/31] Compiling SKCore CustomProfile.swift
[19/31] Compiling SKCore CustomProfileField.swift
[20/31] Compiling SKCore DoNotDisturbStatus.swift
[21/31] Compiling SKCore SlackError.swift
[22/31] Compiling SKCore Team.swift
[23/31] Compiling SKCore File.swift
[24/31] Compiling SKCore History.swift
[25/31] Compiling SKCore Item.swift
[26/31] Compiling SKCore Message.swift
[27/31] Compiling SKCore OAuthConfig.swift
[28/31] Compiling SKCore RTMOptions.swift
[29/31] Compiling SKCore Edited.swift
[30/31] Compiling SKCore Event.swift
[31/31] Compiling SKCore Extensions.swift
[32/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()
[33/35] Emitting module SKWebAPI
[34/35] Compiling SKWebAPI Endpoint.swift
[35/35] Compiling SKWebAPI WebAPI.swift
Build complete! (25.13s)
Fetching https://github.com/pvzig/SKCore
[1/288] Fetching skcore
Fetched https://github.com/pvzig/SKCore from cache (0.85s)
Computing version for https://github.com/pvzig/SKCore
Computed https://github.com/pvzig/SKCore at 4.1.3 (0.67s)
Creating working copy for https://github.com/pvzig/SKCore
Working copy of https://github.com/pvzig/SKCore resolved at 4.1.3
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.