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

Swift 6 data race errors: 1

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/sgade/swift-pocket.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sgade/swift-pocket
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4699e58 Merge pull request #3 from shreyasm-dev/patch-1
Cloned https://github.com/sgade/swift-pocket.git
Revision (git rev-parse @):
4699e58353d36e4a9ba3ec04b291fbc313e77fd3
SUCCESS checkout https://github.com/sgade/swift-pocket.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/sgade/swift-pocket.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/14] Compiling Pocket ObjectList.swift
[4/14] Compiling Pocket Pocket+Retrieve.swift
[5/14] Compiling Pocket Pocket.swift
[6/14] Compiling Pocket Pocket+Modify.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:110:24: warning: capture of 'completion' with non-sendable type '(Result<Pocket.SendResponse, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 |         let task = URLSession.shared.dataTask(with: request) { data, response, error in
109 |             guard error == nil else {
110 |                 return completion(.failure(error!))
    |                        |- warning: capture of 'completion' with non-sendable type '(Result<Pocket.SendResponse, 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'
111 |             }
112 |             guard let data = data else {
[7/14] Compiling Pocket Pocket+Authentication.swift
[8/14] Compiling Pocket Status.swift
[9/14] Compiling Pocket StringBool.swift
[10/15] Compiling Pocket AddedItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pocket/Errors.swift:16:14: warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     public enum Errors: Error {
15 |
16 |         case invalid(value: Any, parameter: String)
   |              `- warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 |         case notAuthenticated
18 |         case unsuccessfulResponse
[11/15] Compiling Pocket Errors.swift
/Users/admin/builder/spi-builder-workspace/Sources/Pocket/Errors.swift:16:14: warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     public enum Errors: Error {
15 |
16 |         case invalid(value: Any, parameter: String)
   |              `- warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 |         case notAuthenticated
18 |         case unsuccessfulResponse
[12/15] Emitting module Pocket
/Users/admin/builder/spi-builder-workspace/Sources/Pocket/Errors.swift:16:14: warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
14 |     public enum Errors: Error {
15 |
16 |         case invalid(value: Any, parameter: String)
   |              `- warning: associated value 'invalid(value:parameter:)' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
17 |         case notAuthenticated
18 |         case unsuccessfulResponse
[13/15] Compiling Pocket Item.swift
[14/15] Compiling Pocket Pocket+Add.swift
[15/15] Compiling Pocket StringInt.swift
Build complete! (22.33s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Pocket",
  "name" : "Pocket",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "Pocket",
      "targets" : [
        "Pocket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PocketTests",
      "module_type" : "SwiftTarget",
      "name" : "PocketTests",
      "path" : "Tests/PocketTests",
      "sources" : [
        "PocketTests.swift"
      ],
      "target_dependencies" : [
        "Pocket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Pocket",
      "module_type" : "SwiftTarget",
      "name" : "Pocket",
      "path" : "Sources/Pocket",
      "product_memberships" : [
        "Pocket"
      ],
      "sources" : [
        "AddedItem.swift",
        "Errors.swift",
        "Item.swift",
        "Pocket+Add.swift",
        "Pocket+Authentication.swift",
        "Pocket+Modify.swift",
        "Pocket+Retrieve.swift",
        "Pocket.swift",
        "Types/ObjectList.swift",
        "Types/Status.swift",
        "Types/StringBool.swift",
        "Types/StringInt.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.