The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of RKAPIService, reference v3.1.0 (5905e2), with Swift 6.1 for macOS (SPM) on 25 Jun 2025 19:06:46 UTC.

Swift 6 data race errors: 2

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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/TheRakiburKhan/RKAPIService.git
Reference: v3.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/TheRakiburKhan/RKAPIService
 * tag               v3.1.0     -> FETCH_HEAD
HEAD is now at 5905e29 Updated with JSONEncoder controll, NetworkResult have raw HTTPURLResponse and partial support for swift 6
Cloned https://github.com/TheRakiburKhan/RKAPIService.git
Revision (git rev-parse @):
5905e2995630c390276158778ac50fceb1d4394c
SUCCESS checkout https://github.com/TheRakiburKhan/RKAPIService.git at v3.1.0
========================================
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/346] Fetching rkapiservice
Fetched https://github.com/TheRakiburKhan/RKAPIService.git from cache (0.72s)
Creating working copy for https://github.com/TheRakiburKhan/RKAPIService.git
Working copy of https://github.com/TheRakiburKhan/RKAPIService.git resolved at v3.1.0 (5905e29)
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] Emitting module RKAPIUtility
[6/13] Compiling RKAPIUtility HTTPMethod.swift
[7/13] Compiling RKAPIUtility RKAPIHelper.swift
[8/13] Compiling RKAPIUtility Attachment.swift
[9/13] Compiling RKAPIUtility AttachedFile.swift
[10/13] Compiling RKAPIUtility HTTPHeader.swift
[11/13] Compiling RKAPIUtility NetworkResult.swift
[12/13] Compiling RKAPIUtility UploadAttachment.swift
[13/13] Compiling RKAPIUtility HTTPStatusCode.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] 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
[17/17] Compiling RKAPIService RKAPIService+async.swift
[18/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
[19/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
Build complete! (8.16s)
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.