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 0.3.0 (423319), with Swift 6.0 (beta) for macOS (SPM) on 16 Sep 2024 13:13:55 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: 0.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fatbobman/Infinite4Pager
 * tag               0.3.0      -> FETCH_HEAD
HEAD is now at 423319b 调整了边界阻尼。 增加了 geometryGroup 改善子视图动画不同步( 无法完全根治 )
Cloned https://github.com/fatbobman/Infinite4Pager.git
Revision (git rev-parse @):
423319b95a7fb85ebd469e09c36e1b1219fcdcfe
SUCCESS checkout https://github.com/fatbobman/Infinite4Pager.git at 0.3.0
========================================
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.70s)
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.