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 Infinite4Pager, reference main (0b27f9), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 13:14:30 UTC.

Swift 6 data race errors: 1

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/fatbobman/Infinite4Pager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fatbobman/Infinite4Pager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0b27f9b update
Cloned https://github.com/fatbobman/Infinite4Pager.git
Revision (git rev-parse @):
0b27f9bf38309e5d69243bb30f7755beaa561c0d
SUCCESS checkout https://github.com/fatbobman/Infinite4Pager.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/fatbobman/Infinite4Pager.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/5] Emitting module Infinite4Pager
/Users/admin/builder/spi-builder-workspace/Sources/Infinite4Pager/Helper/SwiftUI.swift:36:21: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'CurrentPage?' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | }
 25 |
 26 | public struct CurrentPage: Equatable {
    |               `- note: consider making struct 'CurrentPage' conform to the 'Sendable' protocol
 27 |   public let horizontal: Int
 28 |   public let vertical: Int
    :
 34 |
 35 | public struct CurrentPageKey: EnvironmentKey {
 36 |   public static let defaultValue: CurrentPage? = nil
    |                     |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'CurrentPage?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'defaultValue' 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
 37 | }
 38 |
[4/5] Compiling Infinite4Pager Infinite4Pager.swift
[5/5] Compiling Infinite4Pager SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Infinite4Pager/Helper/SwiftUI.swift:36:21: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'CurrentPage?' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | }
 25 |
 26 | public struct CurrentPage: Equatable {
    |               `- note: consider making struct 'CurrentPage' conform to the 'Sendable' protocol
 27 |   public let horizontal: Int
 28 |   public let vertical: Int
    :
 34 |
 35 | public struct CurrentPageKey: EnvironmentKey {
 36 |   public static let defaultValue: CurrentPage? = nil
    |                     |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'CurrentPage?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'defaultValue' 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
 37 | }
 38 |
Build complete! (12.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Infinite4Pager",
  "name" : "Infinite4Pager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "Infinite4Pager",
      "targets" : [
        "Infinite4Pager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Infinite4Pager",
      "module_type" : "SwiftTarget",
      "name" : "Infinite4Pager",
      "path" : "Sources/Infinite4Pager",
      "product_memberships" : [
        "Infinite4Pager"
      ],
      "sources" : [
        "Helper/SwiftUI.swift",
        "Infinite4Pager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.