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 1 Dec 2024 10:05:33 UTC.

Swift 6 data race errors: 1

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 -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.58.1
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
========================================
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": "infinite4pager",
      "name": "Infinite4Pager",
      "url": "https://github.com/fatbobman/Infinite4Pager.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Infinite4Pager",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/fatbobman/Infinite4Pager.git
[1/142] Fetching infinite4pager
Fetched https://github.com/fatbobman/Infinite4Pager.git from cache (0.69s)
Creating working copy for https://github.com/fatbobman/Infinite4Pager.git
Working copy of https://github.com/fatbobman/Infinite4Pager.git resolved at main (0b27f9b)
warning: '.resolve-product-dependencies': dependency 'infinite4pager' 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/fatbobman/Infinite4Pager.git
{
  "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"
}
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 -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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.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 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 |
[5/5] Compiling Infinite4Pager Infinite4Pager.swift
Build complete! (12.09s)
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.