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 APIManager, reference main (c8b6b4), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 23:14:31 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rauhul/api-manager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rauhul/api-manager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c8b6b42 Migrate to swift 5.0+, remove Cocopods for SPM
Cloned https://github.com/rauhul/api-manager.git
Revision (git rev-parse @):
c8b6b426a4172cf1cd4568601cf36b6437d65ae8
SUCCESS checkout https://github.com/rauhul/api-manager.git at main
========================================
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": "api-manager",
      "name": "APIManager",
      "url": "https://github.com/rauhul/api-manager.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/api-manager",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/rauhul/api-manager.git
[1/858] Fetching api-manager
Fetched https://github.com/rauhul/api-manager.git from cache (1.12s)
Creating working copy for https://github.com/rauhul/api-manager.git
Working copy of https://github.com/rauhul/api-manager.git resolved at main (c8b6b42)
warning: '.resolve-product-dependencies': dependency 'api-manager' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/rauhul/api-manager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/9] Compiling APIManager Dictionary.swift
[4/9] Compiling APIManager HTTP.swift
[5/9] Compiling APIManager APIReturnable.swift
[6/9] Compiling APIManager APIService.swift
[7/9] Compiling APIManager APIRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIManager/APIRequest.swift:46:12: warning: class 'APIRequest' must restate inherited '@unchecked Sendable' conformance
 44 | /// - note: `APIRequest`s should be created through a class that conforms to
 45 | /// `APIService`.
 46 | open class APIRequest<ReturnType: APIReturnable>: Operation {
    |            `- warning: class 'APIRequest' must restate inherited '@unchecked Sendable' conformance
 47 |
 48 |     // MARK: - Types & Aliases
/Users/admin/builder/spi-builder-workspace/Sources/APIManager/APIRequest.swift:160:88: warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
158 |         do {
159 |             let urlRequest = try formURLRequest()
160 |             dataTask = URLSession.shared.dataTask(with: urlRequest, completionHandler: urlRequestCallback)
    |                                                                                        `- warning: converting non-sendable function value to '@Sendable (Data?, URLResponse?, (any Error)?) -> Void' may introduce data races
161 |             dataTask?.resume()
162 |         } catch {
[8/9] Compiling APIManager APIAuthorization.swift
[9/9] Emitting module APIManager
/Users/admin/builder/spi-builder-workspace/Sources/APIManager/APIRequest.swift:46:12: warning: class 'APIRequest' must restate inherited '@unchecked Sendable' conformance
 44 | /// - note: `APIRequest`s should be created through a class that conforms to
 45 | /// `APIService`.
 46 | open class APIRequest<ReturnType: APIReturnable>: Operation {
    |            `- warning: class 'APIRequest' must restate inherited '@unchecked Sendable' conformance
 47 |
 48 |     // MARK: - Types & Aliases
Build complete! (7.53s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "APIManager",
  "name" : "APIManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "APIManager",
      "targets" : [
        "APIManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "APIManagerTests",
      "module_type" : "SwiftTarget",
      "name" : "APIManagerTests",
      "path" : "Tests/APIManagerTests",
      "sources" : [
        "APIManagerTests.swift",
        "Data.swift",
        "JSON.swift",
        "TestService.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "APIManager"
      ],
      "type" : "test"
    },
    {
      "c99name" : "APIManager",
      "module_type" : "SwiftTarget",
      "name" : "APIManager",
      "path" : "Sources/APIManager",
      "product_memberships" : [
        "APIManager"
      ],
      "sources" : [
        "APIAuthorization.swift",
        "APIRequest.swift",
        "APIReturnable.swift",
        "APIService.swift",
        "Dictionary.swift",
        "HTTP.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.