The Swift Package Index logo.Swift Package Index

Build Information

Successful build of APIRequest, reference 1.3.5 (779527), with Swift 6.2 for Android on 19 Jun 2025 23:15:54 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/NathanFallet/APIRequest.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/10] Compiling APIRequest JSONAPIEncoder.swift
[4/11] Compiling APIRequest APIEncoder.swift
[5/11] Compiling APIRequest JSONAPIDecoder.swift
[6/11] Emitting module APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:26:14: warning: non-final class 'APIRequest' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 24 | #endif
 25 |
 26 | public class APIRequest: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |              `- warning: non-final class 'APIRequest' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 27 |
 28 |     /// Completion handler of an APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:40:17: warning: stored property 'method' of 'Sendable'-conforming class 'APIRequest' is mutable; this is an error in the Swift 6 language mode
 38 |
 39 |     // Object properties
 40 |     private var method: String
    |                 `- warning: stored property 'method' of 'Sendable'-conforming class 'APIRequest' is mutable; this is an error in the Swift 6 language mode
 41 |     private var path: String
 42 |     private var configuration: APIConfiguration
[7/11] Compiling APIRequest APIDecoder.swift
[8/11] Compiling APIRequest EncodableExtension.swift
[9/11] Compiling APIRequest APIConfiguration.swift
[10/11] Compiling APIRequest APIRequest.swift
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:26:14: warning: non-final class 'APIRequest' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 24 | #endif
 25 |
 26 | public class APIRequest: NSObject, URLSessionDelegate, URLSessionTaskDelegate {
    |              `- warning: non-final class 'APIRequest' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 27 |
 28 |     /// Completion handler of an APIRequest
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:40:17: warning: stored property 'method' of 'Sendable'-conforming class 'APIRequest' is mutable; this is an error in the Swift 6 language mode
 38 |
 39 |     // Object properties
 40 |     private var method: String
    |                 `- warning: stored property 'method' of 'Sendable'-conforming class 'APIRequest' is mutable; this is an error in the Swift 6 language mode
 41 |     private var path: String
 42 |     private var configuration: APIConfiguration
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:222:86: warning: capture of 'type' with non-sendable type 'T.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#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; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
223 |                 } else {
224 |                     // We consider we don't have a valid response
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:211:30: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
212 |                         return
213 |                     }
/host/spi-builder-workspace/Sources/APIRequest/Request/APIRequest.swift:175:44: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
176 |         // Check url validity
177 |         if let url = getURL() {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[11/11] Compiling APIRequest APIResponseStatus.swift
Build complete! (15.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "APIRequest",
  "name" : "APIRequest",
  "path" : "/host/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"
}
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Done.