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 DataFetcher, reference master (b1117c), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 02:13:15 UTC.

Swift 6 data race errors: 0

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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/DataFetcher.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/DataFetcher
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b1117cb added license
Cloned https://github.com/elegantchaos/DataFetcher.git
Revision (git rev-parse @):
b1117cb0d36021090bbc515d15aec16c1a268c6b
SUCCESS checkout https://github.com/elegantchaos/DataFetcher.git at master
Fetching https://github.com/elegantchaos/Coercion.git
Fetching https://github.com/elegantchaos/XCTestExtensions.git
[1/571] Fetching xctestextensions
[13/845] Fetching xctestextensions, coercion
Fetched https://github.com/elegantchaos/Coercion.git from cache (0.74s)
Fetched https://github.com/elegantchaos/XCTestExtensions.git from cache (0.74s)
Computing version for https://github.com/elegantchaos/XCTestExtensions.git
Computed https://github.com/elegantchaos/XCTestExtensions.git at 1.3.2 (1.37s)
Computing version for https://github.com/elegantchaos/Coercion.git
Computed https://github.com/elegantchaos/Coercion.git at 1.1.1 (0.63s)
Creating working copy for https://github.com/elegantchaos/XCTestExtensions.git
Working copy of https://github.com/elegantchaos/XCTestExtensions.git resolved at 1.3.2
Creating working copy for https://github.com/elegantchaos/Coercion.git
Working copy of https://github.com/elegantchaos/Coercion.git resolved at 1.1.1
========================================
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": "datafetcher",
      "name": "DataFetcher",
      "url": "https://github.com/elegantchaos/DataFetcher.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DataFetcher",
      "dependencies": [
        {
          "identity": "coercion",
          "name": "Coercion",
          "url": "https://github.com/elegantchaos/Coercion.git",
          "version": "1.1.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Coercion",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/DataFetcher.git
[4/172] Fetching datafetcher
Fetched https://github.com/elegantchaos/DataFetcher.git from cache (0.70s)
Fetching https://github.com/elegantchaos/Coercion.git from cache
Fetched https://github.com/elegantchaos/Coercion.git from cache (0.43s)
Computing version for https://github.com/elegantchaos/Coercion.git
Computed https://github.com/elegantchaos/Coercion.git at 1.1.3 (0.49s)
Creating working copy for https://github.com/elegantchaos/Coercion.git
Working copy of https://github.com/elegantchaos/Coercion.git resolved at 1.1.3
Creating working copy for https://github.com/elegantchaos/DataFetcher.git
Working copy of https://github.com/elegantchaos/DataFetcher.git resolved at master (b1117cb)
warning: '.resolve-product-dependencies': dependency 'datafetcher' is not used by any target
Found 1 product dependencies
  - Coercion
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/elegantchaos/DataFetcher.git
https://github.com/elegantchaos/DataFetcher.git
{
  "dependencies" : [
    {
      "identity" : "coercion",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/Coercion.git"
    },
    {
      "identity" : "xctestextensions",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/XCTestExtensions.git"
    }
  ],
  "manifest_display_name" : "DataFetcher",
  "name" : "DataFetcher",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "DataFetcher",
      "targets" : [
        "DataFetcher"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DataFetcherTests",
      "module_type" : "SwiftTarget",
      "name" : "DataFetcherTests",
      "path" : "Tests/DataFetcherTests",
      "product_dependencies" : [
        "XCTestExtensions"
      ],
      "sources" : [
        "CodableTests.swift",
        "DataTests.swift",
        "JSONTests.swift",
        "StringTests.swift",
        "TestSupport.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DataFetcher"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DataFetcher",
      "module_type" : "SwiftTarget",
      "name" : "DataFetcher",
      "path" : "Sources/DataFetcher",
      "product_dependencies" : [
        "Coercion"
      ],
      "product_memberships" : [
        "DataFetcher"
      ],
      "sources" : [
        "DataFetcher.swift",
        "JSONDictionary.swift",
        "MockDataFetcher.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/18] Compiling Coercion StandardConvertible.swift
[5/18] Compiling Coercion StringConvertible.swift
[6/18] Compiling Coercion UIntConvertible.swift
[7/19] Compiling Coercion String+Coercion.swift
[8/19] Compiling Coercion IntConvertible.swift
[9/19] Compiling Coercion BoolConvertible.swift
[10/19] Compiling Coercion DataConvertible.swift
[11/19] Compiling Coercion DateConvertible.swift
[12/19] Compiling Coercion DoubleConvertible.swift
[13/19] Compiling Coercion BinaryInteger+Coercion.swift
[14/19] Compiling Coercion Bool+Coercion.swift
[15/19] Compiling Coercion Dictionary+Coercion.swift
[16/19] Compiling Coercion Double+Coercion.swift
[17/19] Emitting module Coercion
[18/19] Compiling Coercion Converter.swift
[19/19] Compiling Coercion Date+Coercion.swift
[20/23] Compiling DataFetcher JSONDictionary.swift
[21/23] Compiling DataFetcher MockDataFetcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/DataFetcher/MockDataFetcher.swift:34:64: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 32 |         public func cancel() { }
 33 |         public func resume() {
 34 |             DispatchQueue.global(qos: .default).async(execute: execute)
    |                                                                `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
 35 |         }
 36 |
[22/23] Emitting module DataFetcher
[23/23] Compiling DataFetcher DataFetcher.swift
/Users/admin/builder/spi-builder-workspace/Sources/DataFetcher/DataFetcher.swift:127:17: warning: capture of 'callback' with non-sendable type 'DataCallback' (aka '(Result<Data, any Error>, Optional<URLResponse>) -> ()') in a '@Sendable' closure
125 |         let task = dataTask(with: request) { data, response, error in
126 |             if let error = error {
127 |                 callback(.failure(error), response)
    |                 |- warning: capture of 'callback' with non-sendable type 'DataCallback' (aka '(Result<Data, any Error>, Optional<URLResponse>) -> ()') in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
128 |             } else if let data = data {
129 |                 callback(.success(data), response)
Build complete! (6.12s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "coercion",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/Coercion.git"
    },
    {
      "identity" : "xctestextensions",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/elegantchaos/XCTestExtensions.git"
    }
  ],
  "manifest_display_name" : "DataFetcher",
  "name" : "DataFetcher",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "DataFetcher",
      "targets" : [
        "DataFetcher"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DataFetcherTests",
      "module_type" : "SwiftTarget",
      "name" : "DataFetcherTests",
      "path" : "Tests/DataFetcherTests",
      "product_dependencies" : [
        "XCTestExtensions"
      ],
      "sources" : [
        "CodableTests.swift",
        "DataTests.swift",
        "JSONTests.swift",
        "StringTests.swift",
        "TestSupport.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DataFetcher"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DataFetcher",
      "module_type" : "SwiftTarget",
      "name" : "DataFetcher",
      "path" : "Sources/DataFetcher",
      "product_dependencies" : [
        "Coercion"
      ],
      "product_memberships" : [
        "DataFetcher"
      ],
      "sources" : [
        "DataFetcher.swift",
        "JSONDictionary.swift",
        "MockDataFetcher.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.