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 retry-policy-service, reference main (958ecd), with Swift 6.0 (beta) for macOS (SPM) on 14 Sep 2024 19:08:13 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/retry-policy-service.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/igor11191708/retry-policy-service
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 958ecda Update .spi.yml
Cloned https://github.com/igor11191708/retry-policy-service.git
Revision (git rev-parse @):
958ecda040902b372eab7069c738a496ceb8ae33
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/igor11191708/retry-policy-service.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/igor11191708/retry-policy-service.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/6] Compiling retry_policy_service DispatchTimeInterval.swift
[4/6] Compiling retry_policy_service Strategy.swift
[5/6] Emitting module retry_policy_service
/Users/admin/builder/spi-builder-workspace/Sources/retry-policy-service/RetryService.swift:16:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // RetryService Definition and Implementation
12 | @available(iOS 14.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
13 | public struct RetryService: Sequence {
   |               `- note: consider making struct 'RetryService' conform to the 'Sendable' protocol
14 |
15 |     /// Default service
16 |     static let `default` = RetryService(strategy: .exponential())
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// Retry strategy
[6/6] Compiling retry_policy_service RetryService.swift
/Users/admin/builder/spi-builder-workspace/Sources/retry-policy-service/RetryService.swift:16:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
11 | // RetryService Definition and Implementation
12 | @available(iOS 14.0, macOS 11.0, tvOS 15.0, watchOS 8.0, *)
13 | public struct RetryService: Sequence {
   |               `- note: consider making struct 'RetryService' conform to the 'Sendable' protocol
14 |
15 |     /// Default service
16 |     static let `default` = RetryService(strategy: .exponential())
   |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RetryService' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// Retry strategy
Build complete! (6.32s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "retry-policy-service",
  "name" : "retry-policy-service",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "retry-policy-service",
      "targets" : [
        "retry-policy-service"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "retry_policy_serviceTests",
      "module_type" : "SwiftTarget",
      "name" : "retry-policy-serviceTests",
      "path" : "Tests/retry-policy-serviceTests",
      "sources" : [
        "retry_policy_serviceTests.swift"
      ],
      "target_dependencies" : [
        "retry-policy-service"
      ],
      "type" : "test"
    },
    {
      "c99name" : "retry_policy_service",
      "module_type" : "SwiftTarget",
      "name" : "retry-policy-service",
      "path" : "Sources/retry-policy-service",
      "product_memberships" : [
        "retry-policy-service"
      ],
      "sources" : [
        "RetryService.swift",
        "Strategy.swift",
        "ext/DispatchTimeInterval.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.