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 RKAPIService, reference 3.0.3 (13c1b2), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 21:12:56 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/TheRakiburKhan/RKAPIService.git
Reference: 3.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/TheRakiburKhan/RKAPIService
 * tag               3.0.3      -> FETCH_HEAD
HEAD is now at 13c1b2f JSON decoder patch
Cloned https://github.com/TheRakiburKhan/RKAPIService.git
Revision (git rev-parse @):
13c1b2fdd47265e29699c1e831954ed8125b23f1
SUCCESS checkout https://github.com/TheRakiburKhan/RKAPIService.git at 3.0.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": "rkapiservice",
      "name": "RKAPIService",
      "url": "https://github.com/TheRakiburKhan/RKAPIService.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RKAPIService",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/TheRakiburKhan/RKAPIService.git
[1/329] Fetching rkapiservice
Fetched https://github.com/TheRakiburKhan/RKAPIService.git from cache (0.68s)
Creating working copy for https://github.com/TheRakiburKhan/RKAPIService.git
Working copy of https://github.com/TheRakiburKhan/RKAPIService.git resolved at 3.0.3 (13c1b2f)
warning: '.resolve-product-dependencies': dependency 'rkapiservice' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/TheRakiburKhan/RKAPIService.git
https://github.com/TheRakiburKhan/RKAPIService.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RKAPIService",
  "name" : "RKAPIService",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "RKAPIUtility",
      "targets" : [
        "RKAPIUtility"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RKAPIService",
      "targets" : [
        "RKAPIService",
        "RKAPIUtility"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RKAPIServiceCombine",
      "targets" : [
        "RKAPIServiceCombine",
        "RKAPIUtility"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RKAPIUtility",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIUtility",
      "path" : "Sources/RKAPIUtility",
      "product_memberships" : [
        "RKAPIUtility",
        "RKAPIService",
        "RKAPIServiceCombine"
      ],
      "sources" : [
        "AttachedFile.swift",
        "Attachment.swift",
        "HTTPHeader.swift",
        "HTTPMethod.swift",
        "HTTPStatusCode.swift",
        "NetworkResult.swift",
        "RKAPIHelper.swift",
        "UploadAttachment.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RKAPIServiceTests",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIServiceTests",
      "path" : "Tests/RKAPIServiceTests",
      "sources" : [
        "RKAPIServiceTests.swift"
      ],
      "target_dependencies" : [
        "RKAPIService"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RKAPIServiceCombineTests",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIServiceCombineTests",
      "path" : "Tests/RKAPIServiceCombineTests",
      "sources" : [
        "RKAPIServiceCombineTests.swift"
      ],
      "target_dependencies" : [
        "RKAPIServiceCombine"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RKAPIServiceCombine",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIServiceCombine",
      "path" : "Sources/RKAPIServiceCombine",
      "product_memberships" : [
        "RKAPIServiceCombine"
      ],
      "sources" : [
        "RKAPIServiceCombine.swift"
      ],
      "target_dependencies" : [
        "RKAPIService",
        "RKAPIUtility"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RKAPIService",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIService",
      "path" : "Sources/RKAPIService",
      "product_memberships" : [
        "RKAPIService",
        "RKAPIServiceCombine"
      ],
      "sources" : [
        "RKAPIService+async.swift",
        "RKAPIService+completion.swift",
        "RKAPIService.swift"
      ],
      "target_dependencies" : [
        "RKAPIUtility"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/13] Compiling RKAPIUtility UploadAttachment.swift
[6/13] Compiling RKAPIUtility HTTPMethod.swift
[7/13] Compiling RKAPIUtility Attachment.swift
[8/13] Compiling RKAPIUtility RKAPIHelper.swift
[9/13] Compiling RKAPIUtility HTTPHeader.swift
[10/13] Compiling RKAPIUtility NetworkResult.swift
[11/13] Compiling RKAPIUtility HTTPStatusCode.swift
/Users/admin/builder/spi-builder-workspace/Sources/RKAPIUtility/HTTPStatusCode.swift:15:10: warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  13 | public enum HTTPStatusCode: LocalizedError {
  14 |
  15 |     case standard(statusCode: StandardCode)
     |          `- warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  16 |     case custom(customCode: Int)
  17 |
     :
  47 |     }
  48 |
  49 |     public enum StandardCode: Int {
     |                 `- note: consider making enum 'StandardCode' conform to the 'Sendable' protocol
  50 |         //
  51 |         // Informational - 1xx
[12/13] Emitting module RKAPIUtility
/Users/admin/builder/spi-builder-workspace/Sources/RKAPIUtility/HTTPStatusCode.swift:15:10: warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  13 | public enum HTTPStatusCode: LocalizedError {
  14 |
  15 |     case standard(statusCode: StandardCode)
     |          `- warning: associated value 'standard(statusCode:)' of 'Sendable'-conforming enum 'HTTPStatusCode' has non-sendable type 'HTTPStatusCode.StandardCode'; this is an error in the Swift 6 language mode
  16 |     case custom(customCode: Int)
  17 |
     :
  47 |     }
  48 |
  49 |     public enum StandardCode: Int {
     |                 `- note: consider making enum 'StandardCode' conform to the 'Sendable' protocol
  50 |         //
  51 |         // Informational - 1xx
[13/13] Compiling RKAPIUtility AttachedFile.swift
[14/17] Compiling RKAPIService RKAPIService.swift
/Users/admin/builder/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:10:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 |     /// Static instance of `RKAPIService`. It has `URLSessionConfiguration.ephemeral` as configuration. `URLSessionDelegate` and `OperationQueue` are both nil.
 10 |     public static var shared = RKAPIService()
    |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |
 12 |     internal var session: URLSession
[15/17] Compiling RKAPIService RKAPIService+completion.swift
/Users/admin/builder/spi-builder-workspace/Sources/RKAPIService/RKAPIService+completion.swift:30:17: warning: capture of 'completion' with non-sendable type '(Result<NetworkResult<Data>, any Error>) -> Void' in a '@Sendable' closure
 28 |         session.dataTask(with: request) { data, response, error in
 29 |             if let error = error {
 30 |                 completion(.failure(error))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<NetworkResult<Data>, any Error>) -> Void' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 31 |             } else {
 32 |                 guard let response = response as? HTTPURLResponse else {
[16/17] Compiling RKAPIService RKAPIService+async.swift
[17/17] Emitting module RKAPIService
/Users/admin/builder/spi-builder-workspace/Sources/RKAPIService/RKAPIService.swift:10:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 |     /// Static instance of `RKAPIService`. It has `URLSessionConfiguration.ephemeral` as configuration. `URLSessionDelegate` and `OperationQueue` are both nil.
 10 |     public static var shared = RKAPIService()
    |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 11 |
 12 |     internal var session: URLSession
[18/19] Emitting module RKAPIServiceCombine
/Users/admin/builder/spi-builder-workspace/Sources/RKAPIServiceCombine/RKAPIServiceCombine.swift:20:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Static instance of `RKAPIServiceCombine`. It has `URLSessionConfiguration.ephemeral` as configuration. `URLSessionDelegate` and `OperationQueue` are both nil.
 20 |     public static var shared = RKAPIServiceCombine()
    |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |     private var session: URLSession
[19/19] Compiling RKAPIServiceCombine RKAPIServiceCombine.swift
/Users/admin/builder/spi-builder-workspace/Sources/RKAPIServiceCombine/RKAPIServiceCombine.swift:20:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Static instance of `RKAPIServiceCombine`. It has `URLSessionConfiguration.ephemeral` as configuration. `URLSessionDelegate` and `OperationQueue` are both nil.
 20 |     public static var shared = RKAPIServiceCombine()
    |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 21 |
 22 |     private var session: URLSession
Build complete! (8.47s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RKAPIService",
  "name" : "RKAPIService",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "RKAPIUtility",
      "targets" : [
        "RKAPIUtility"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RKAPIService",
      "targets" : [
        "RKAPIService",
        "RKAPIUtility"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RKAPIServiceCombine",
      "targets" : [
        "RKAPIServiceCombine",
        "RKAPIUtility"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RKAPIUtility",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIUtility",
      "path" : "Sources/RKAPIUtility",
      "product_memberships" : [
        "RKAPIUtility",
        "RKAPIService",
        "RKAPIServiceCombine"
      ],
      "sources" : [
        "AttachedFile.swift",
        "Attachment.swift",
        "HTTPHeader.swift",
        "HTTPMethod.swift",
        "HTTPStatusCode.swift",
        "NetworkResult.swift",
        "RKAPIHelper.swift",
        "UploadAttachment.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RKAPIServiceTests",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIServiceTests",
      "path" : "Tests/RKAPIServiceTests",
      "sources" : [
        "RKAPIServiceTests.swift"
      ],
      "target_dependencies" : [
        "RKAPIService"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RKAPIServiceCombineTests",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIServiceCombineTests",
      "path" : "Tests/RKAPIServiceCombineTests",
      "sources" : [
        "RKAPIServiceCombineTests.swift"
      ],
      "target_dependencies" : [
        "RKAPIServiceCombine"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RKAPIServiceCombine",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIServiceCombine",
      "path" : "Sources/RKAPIServiceCombine",
      "product_memberships" : [
        "RKAPIServiceCombine"
      ],
      "sources" : [
        "RKAPIServiceCombine.swift"
      ],
      "target_dependencies" : [
        "RKAPIService",
        "RKAPIUtility"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RKAPIService",
      "module_type" : "SwiftTarget",
      "name" : "RKAPIService",
      "path" : "Sources/RKAPIService",
      "product_memberships" : [
        "RKAPIService",
        "RKAPIServiceCombine"
      ],
      "sources" : [
        "RKAPIService+async.swift",
        "RKAPIService+completion.swift",
        "RKAPIService.swift"
      ],
      "target_dependencies" : [
        "RKAPIUtility"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.