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 APIRequest, reference 1.3.5 (779527), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 23:20:01 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/NathanFallet/APIRequest.git
Reference: 1.3.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/NathanFallet/APIRequest
 * tag               1.3.5      -> FETCH_HEAD
HEAD is now at 779527d Fixing `No such module 'FoundationNetworking'`
Cloned https://github.com/NathanFallet/APIRequest.git
Revision (git rev-parse @):
779527db3a61c430a7f38e8c15779b5a5fd0510f
SUCCESS checkout https://github.com/NathanFallet/APIRequest.git at 1.3.5
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/NathanFallet/APIRequest.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/11] Compiling APIRequest APIConfiguration.swift
[4/11] Compiling APIRequest APIEncoder.swift
[5/11] Emitting module APIRequest
[6/11] Compiling APIRequest APIDecoder.swift
[7/11] Compiling APIRequest EncodableExtension.swift
[8/11] Compiling APIRequest JSONAPIDecoder.swift
[9/11] Compiling APIRequest JSONAPIEncoder.swift
[10/11] Compiling APIRequest APIResponseStatus.swift
[11/11] Compiling APIRequest APIRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:222:86: warning: capture of 'type' with non-sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
220 |                 if let data = data, let response = response as? HTTPURLResponse {
221 |                     // Decode the data with the specified decoder
222 |                     self.end(data: self.configuration.decoder.decode(from: data, as: type), status: APIResponseStatus.status(forCode: response.statusCode), completionHandler: completionHandler)
    |                                                                                      `- warning: capture of 'type' with non-sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
223 |                 } else {
224 |                     // We consider we don't have a valid response
/Users/admin/builder/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:211:30: warning: capture of non-sendable type 'T.Type' in an isolated closure
209 |                     if (error as NSError).code == -1009 {
210 |                         // Device is offline
211 |                         self.end(data: nil, status: .offline, completionHandler: completionHandler)
    |                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
212 |                         return
213 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:175:44: warning: capture of non-sendable type 'T.Type' in an isolated closure
173 |     ///   - completionHandler: The completion handler of the request
174 |     @discardableResult
175 |     public func execute<T>(_ type: T.Type, completionHandler: @escaping CompletionHandler<T>) -> APIRequest where T: Decodable {
    |                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure
176 |         // Check url validity
177 |         if let url = getURL() {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
Build complete! (4.78s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "APIRequest",
  "name" : "APIRequest",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "APIRequest",
      "targets" : [
        "APIRequest"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "APIRequestTests",
      "module_type" : "SwiftTarget",
      "name" : "APIRequestTests",
      "path" : "Tests/APIRequestTests",
      "sources" : [
        "APIRequestTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "APIRequest"
      ],
      "type" : "test"
    },
    {
      "c99name" : "APIRequest",
      "module_type" : "SwiftTarget",
      "name" : "APIRequest",
      "path" : "Sources/APIRequest",
      "product_memberships" : [
        "APIRequest"
      ],
      "sources" : [
        "Decoder/APIDecoder.swift",
        "Decoder/JSONAPIDecoder.swift",
        "Encoder/APIEncoder.swift",
        "Encoder/EncodableExtension.swift",
        "Encoder/JSONAPIEncoder.swift",
        "Request/APIConfiguration.swift",
        "Request/APIRequest.swift",
        "Request/APIResponseStatus.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.