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 FTAPIKit, reference main (46528a), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 09:32:26 UTC.

Swift 6 data race errors: 1

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/futuredapp/FTAPIKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/futuredapp/FTAPIKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 46528ab Merge pull request #100 from futuredapp/dependabot/bundler/cocoapods-downloader-1.6.3
Cloned https://github.com/futuredapp/FTAPIKit.git
Revision (git rev-parse @):
46528ab76ca3ead8bdc32fb96f8591f7bf6d2748
SUCCESS checkout https://github.com/futuredapp/FTAPIKit.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": "ftapikit",
      "name": "FTAPIKit",
      "url": "https://github.com/futuredapp/FTAPIKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FTAPIKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/futuredapp/FTAPIKit.git
[1/2485] Fetching ftapikit
Fetched https://github.com/futuredapp/FTAPIKit.git from cache (1.12s)
Creating working copy for https://github.com/futuredapp/FTAPIKit.git
Working copy of https://github.com/futuredapp/FTAPIKit.git resolved at main (46528ab)
warning: '.resolve-product-dependencies': dependency 'ftapikit' 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/futuredapp/FTAPIKit.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/23] Emitting module FTAPIKit
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:44:23: warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |     }
43 |
44 |     public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
   |                       |- warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'unhandled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'unhandled' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
[4/25] Compiling FTAPIKit URLRequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:74:38: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
72 |                     switch result {
73 |                     case .success(let response):
74 |                         continuation.resume(returning: response)
   |                                      |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
   |                                      `- note: task-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
75 |                     case .failure(let error):
76 |                         continuation.resume(throwing: error)
[5/25] Compiling FTAPIKit URLServer+Async.swift
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Async.swift:74:38: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
72 |                     switch result {
73 |                     case .success(let response):
74 |                         continuation.resume(returning: response)
   |                                      |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
   |                                      `- note: task-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
75 |                     case .failure(let error):
76 |                         continuation.resume(throwing: error)
[6/25] Compiling FTAPIKit URLServer+Task.swift
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:26:13: warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |     ) -> URLSessionDataTask? {
25 |         let task = urlSession.dataTask(with: request) { data, response, error in
26 |             completion(process(data, response, error))
   |             |- warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> 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'
27 |         }
28 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:26:24: warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |     ) -> URLSessionDataTask? {
25 |         let task = urlSession.dataTask(with: request) { data, response, error in
26 |             completion(process(data, response, error))
   |                        |- warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' 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'
27 |         }
28 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:39:13: warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 |     ) -> URLSessionUploadTask? {
38 |         let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
39 |             completion(process(data, response, error))
   |             |- warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> 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'
40 |         }
41 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:39:24: warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 |     ) -> URLSessionUploadTask? {
38 |         let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
39 |             completion(process(data, response, error))
   |                        |- warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' 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'
40 |         }
41 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:51:13: warning: capture of 'completion' with non-sendable type '(Result<URL, Self.ErrorType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |     ) -> URLSessionDownloadTask? {
50 |         let task = urlSession.downloadTask(with: request) { url, response, error in
51 |             completion(process(url, response, error))
   |             |- warning: capture of 'completion' with non-sendable type '(Result<URL, Self.ErrorType>) -> 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 |         }
53 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:51:24: warning: capture of 'process' with non-sendable type '(URL?, URLResponse?, (any Error)?) -> Result<URL, Self.ErrorType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |     ) -> URLSessionDownloadTask? {
50 |         let task = urlSession.downloadTask(with: request) { url, response, error in
51 |             completion(process(url, response, error))
   |                        |- warning: capture of 'process' with non-sendable type '(URL?, URLResponse?, (any Error)?) -> Result<URL, Self.ErrorType>' 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 |         }
53 |         task.resume()
[7/25] Compiling FTAPIKit URLServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:26:13: warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |     ) -> URLSessionDataTask? {
25 |         let task = urlSession.dataTask(with: request) { data, response, error in
26 |             completion(process(data, response, error))
   |             |- warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> 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'
27 |         }
28 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:26:24: warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 |     ) -> URLSessionDataTask? {
25 |         let task = urlSession.dataTask(with: request) { data, response, error in
26 |             completion(process(data, response, error))
   |                        |- warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' 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'
27 |         }
28 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:39:13: warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 |     ) -> URLSessionUploadTask? {
38 |         let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
39 |             completion(process(data, response, error))
   |             |- warning: capture of 'completion' with non-sendable type '(Result<R, Self.ErrorType>) -> 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'
40 |         }
41 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:39:24: warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 |     ) -> URLSessionUploadTask? {
38 |         let task = urlSession.uploadTask(with: request, fromFile: file) { data, response, error in
39 |             completion(process(data, response, error))
   |                        |- warning: capture of 'process' with non-sendable type '(Data?, URLResponse?, (any Error)?) -> Result<R, Self.ErrorType>' 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'
40 |         }
41 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:51:13: warning: capture of 'completion' with non-sendable type '(Result<URL, Self.ErrorType>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |     ) -> URLSessionDownloadTask? {
50 |         let task = urlSession.downloadTask(with: request) { url, response, error in
51 |             completion(process(url, response, error))
   |             |- warning: capture of 'completion' with non-sendable type '(Result<URL, Self.ErrorType>) -> 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 |         }
53 |         task.resume()
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/URLServer+Task.swift:51:24: warning: capture of 'process' with non-sendable type '(URL?, URLResponse?, (any Error)?) -> Result<URL, Self.ErrorType>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |     ) -> URLSessionDownloadTask? {
50 |         let task = urlSession.downloadTask(with: request) { url, response, error in
51 |             completion(process(url, response, error))
   |                        |- warning: capture of 'process' with non-sendable type '(URL?, URLResponse?, (any Error)?) -> Result<URL, Self.ErrorType>' 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 |         }
53 |         task.resume()
[8/25] Compiling FTAPIKit URLServer+Combine.swift
[9/25] Compiling FTAPIKit Endpoint.swift
[10/25] Compiling FTAPIKit HTTPMethod.swift
[11/25] Compiling FTAPIKit MultipartBodyPart.swift
[12/25] Compiling FTAPIKit URLServer+Call.swift
[13/25] Compiling FTAPIKit URLServer+Download.swift
[14/25] Compiling FTAPIKit Coding.swift
[15/25] Compiling FTAPIKit EndpointPublisher.swift
[16/25] Compiling FTAPIKit EndpointSubscription.swift
[17/25] Compiling FTAPIKit APIError+Standard.swift
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:44:23: warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |     }
43 |
44 |     public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
   |                       |- warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'unhandled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'unhandled' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
[18/25] Compiling FTAPIKit APIError.swift
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:44:23: warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |     }
43 |
44 |     public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
   |                       |- warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'unhandled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'unhandled' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
[19/25] Compiling FTAPIKit CharacterSet+URLQuery.swift
/Users/admin/builder/spi-builder-workspace/Sources/FTAPIKit/APIError+Standard.swift:44:23: warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
42 |     }
43 |
44 |     public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
   |                       |- warning: static property 'unhandled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'unhandled' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'unhandled' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | }
46 |
[20/25] Compiling FTAPIKit Server.swift
[21/25] Compiling FTAPIKit URL+MIME.swift
[22/25] Compiling FTAPIKit URL+Query.swift
[23/25] Compiling FTAPIKit URLQuery.swift
[24/25] Compiling FTAPIKit MultipartFormData.swift
[25/25] Compiling FTAPIKit OutputStream+Write.swift
Build complete! (19.14s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FTAPIKit",
  "name" : "FTAPIKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "5.0"
    }
  ],
  "products" : [
    {
      "name" : "FTAPIKit",
      "targets" : [
        "FTAPIKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FTAPIKitTests",
      "module_type" : "SwiftTarget",
      "name" : "FTAPIKitTests",
      "path" : "Tests/FTAPIKitTests",
      "sources" : [
        "AsyncTests.swift",
        "CombineTests.swift",
        "Mockups/Endpoints.swift",
        "Mockups/Errors.swift",
        "Mockups/Models.swift",
        "Mockups/Servers.swift",
        "ResponseTests.swift",
        "URLQueryTests.swift"
      ],
      "target_dependencies" : [
        "FTAPIKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FTAPIKit",
      "module_type" : "SwiftTarget",
      "name" : "FTAPIKit",
      "path" : "Sources/FTAPIKit",
      "product_memberships" : [
        "FTAPIKit"
      ],
      "sources" : [
        "APIError+Standard.swift",
        "APIError.swift",
        "CharacterSet+URLQuery.swift",
        "Coding.swift",
        "Combine/EndpointPublisher.swift",
        "Combine/EndpointSubscription.swift",
        "Combine/URLServer+Combine.swift",
        "Endpoint.swift",
        "HTTPMethod.swift",
        "MultipartBodyPart.swift",
        "MultipartFormData.swift",
        "OutputStream+Write.swift",
        "Server.swift",
        "URL+MIME.swift",
        "URL+Query.swift",
        "URLQuery.swift",
        "URLRequestBuilder.swift",
        "URLServer+Async.swift",
        "URLServer+Call.swift",
        "URLServer+Download.swift",
        "URLServer+Task.swift",
        "URLServer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.