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

Swift 6 data race errors: 6

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/RedMadRobot/catbird.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RedMadRobot/catbird
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d57fe3d Bump tzinfo from 1.2.7 to 1.2.10 in /Example/CatbirdX (#59)
Cloned https://github.com/RedMadRobot/catbird.git
Revision (git rev-parse @):
d57fe3de2df3ad390494083d4cc9ff183cd6d1b7
SUCCESS checkout https://github.com/RedMadRobot/catbird.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/RedMadRobot/catbird.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/9] Compiling CatbirdAPI CatbirdError.swift
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:16:23: warning: static property 'errorDomain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     /// The domain of the error.
16 |     public static var errorDomain = "com.redmadrobot.catbird.APIErrorDomain"
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'errorDomain' 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
17 |
18 |     /// HTTP status code.
[4/9] Compiling CatbirdAPI Catbird.swift
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/Catbird.swift:79:17: warning: capture of 'completion' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             switch (response, error) {
 78 |             case (_, let error?):
 79 |                 completion(error)
    |                 |- warning: capture of 'completion' with non-sendable type '((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'
 80 |             case (let http as HTTPURLResponse, _):
 81 |                 completion(CatbirdError(statusCode: http.statusCode, data: data))
[5/9] Compiling CatbirdAPI PatternMatch.swift
[6/9] Compiling CatbirdAPI ResponseMock.swift
[7/9] Emitting module CatbirdAPI
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/CatbirdError.swift:16:23: warning: static property 'errorDomain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
14 |
15 |     /// The domain of the error.
16 |     public static var errorDomain = "com.redmadrobot.catbird.APIErrorDomain"
   |                       |- warning: static property 'errorDomain' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'errorDomain' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'errorDomain' 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
17 |
18 |     /// HTTP status code.
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:45:27: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
43 |         }
44 |
45 |         public static let GET = HTTPMethod("GET")
   |                           |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'GET' 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
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:46:27: warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
44 |
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
   |                           |- warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'POST' 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
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:47:27: warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
   |                           |- warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PUT' 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
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:48:27: warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
   |                           |- warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PATCH' 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
49 |         public static let DELETE = HTTPMethod("DELETE")
50 |     }
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:49:27: warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
   |                           |- warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'DELETE' 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
50 |     }
51 | }
[8/9] Compiling CatbirdAPI CatbirdAction.swift
[9/9] Compiling CatbirdAPI RequestPattern.swift
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:45:27: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
43 |         }
44 |
45 |         public static let GET = HTTPMethod("GET")
   |                           |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'GET' 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
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:46:27: warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
44 |
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
   |                           |- warning: static property 'POST' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'POST' 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
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:47:27: warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
45 |         public static let GET = HTTPMethod("GET")
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
   |                           |- warning: static property 'PUT' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PUT' 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
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:48:27: warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
46 |         public static let POST = HTTPMethod("POST")
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
   |                           |- warning: static property 'PATCH' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'PATCH' 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
49 |         public static let DELETE = HTTPMethod("DELETE")
50 |     }
/Users/admin/builder/spi-builder-workspace/Packages/CatbirdAPI/Sources/CatbirdAPI/RequestPattern.swift:49:27: warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | extension RequestPattern {
38 |     public struct HTTPMethod: RawRepresentable, Hashable, Codable {
   |                   `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
39 |         public let rawValue: String
40 |
   :
47 |         public static let PUT = HTTPMethod("PUT")
48 |         public static let PATCH = HTTPMethod("PATCH")
49 |         public static let DELETE = HTTPMethod("DELETE")
   |                           |- warning: static property 'DELETE' is not concurrency-safe because non-'Sendable' type 'RequestPattern.HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: annotate 'DELETE' 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
50 |     }
51 | }
Build complete! (19.51s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Catbird",
  "name" : "Catbird",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "CatbirdAPI",
      "targets" : [
        "CatbirdAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CatbirdAPITests",
      "module_type" : "SwiftTarget",
      "name" : "CatbirdAPITests",
      "path" : "Packages/CatbirdAPI/Tests",
      "sources" : [
        "CatbirdAPITests/CatbirdActionTests.swift",
        "CatbirdAPITests/CatbirdTests.swift",
        "CatbirdAPITests/Network.swift",
        "CatbirdAPITests/PatternMatchTests.swift"
      ],
      "target_dependencies" : [
        "CatbirdAPI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CatbirdAPI",
      "module_type" : "SwiftTarget",
      "name" : "CatbirdAPI",
      "path" : "Packages/CatbirdAPI/Sources",
      "product_memberships" : [
        "CatbirdAPI"
      ],
      "sources" : [
        "CatbirdAPI/Catbird.swift",
        "CatbirdAPI/CatbirdAction.swift",
        "CatbirdAPI/CatbirdError.swift",
        "CatbirdAPI/PatternMatch.swift",
        "CatbirdAPI/RequestPattern.swift",
        "CatbirdAPI/ResponseMock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.