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

Swift 6 data race errors: 3

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/TheRakiburKhan/RKAPIService.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/TheRakiburKhan/RKAPIService
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/TheRakiburKhan/RKAPIService.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/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/13] Compiling RKAPIUtility RKAPIHelper.swift
[6/13] Compiling RKAPIUtility NetworkResult.swift
[7/13] Compiling RKAPIUtility UploadAttachment.swift
[8/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
[9/13] Compiling RKAPIUtility Attachment.swift
[10/13] Compiling RKAPIUtility HTTPHeader.swift
[11/13] Compiling RKAPIUtility HTTPMethod.swift
[12/13] Compiling RKAPIUtility AttachedFile.swift
[13/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
[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 non-isolated 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 non-isolated 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: annotate 'shared' 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
 11 |
 12 |     internal var session: URLSession
[15/17] Compiling RKAPIService RKAPIService+async.swift
[16/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 31 |             } else {
 32 |                 guard let response = response as? HTTPURLResponse else {
[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 non-isolated 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 non-isolated 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: annotate 'shared' 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
 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 non-isolated 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 non-isolated 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: annotate 'shared' 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
 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 non-isolated 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 non-isolated 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: annotate 'shared' 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
 21 |
 22 |     private var session: URLSession
Build complete! (28.29s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.