This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Grid with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/spacenation/swiftui-grid.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/spacenation/swiftui-grid
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 623f995 Add compatibility checks (#120)
Cloned https://github.com/spacenation/swiftui-grid.git
Revision (git rev-parse @):
623f995c6ee0e5a5ed0e104d142daeae67b0ec92
SUCCESS checkout https://github.com/spacenation/swiftui-grid.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/spacenation/swiftui-grid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/17] Compiling Grid GridStyle.swift
[4/18] Compiling Grid View+GridStyle.swift
[5/18] Compiling Grid GridPreferencesModifier.swift
[6/18] Compiling Grid Tracks.swift
[7/18] Compiling Grid ModularGridStyle.swift
[8/18] Compiling Grid GridItem.swift
[9/18] Compiling Grid LayoutMath.swift
[10/18] Compiling Grid GridItemBoundsPreferencesKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridItemBoundsPreferencesKey.swift:4:23: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | public struct GridItemBoundsPreferencesKey: PreferenceKey {
 4 |     public static var defaultValue: [CGRect] = []
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
 5 |
 6 |     public static func reduce(value: inout [CGRect], nextValue: () -> [CGRect]) {
[11/18] Compiling Grid GridPreferences.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridItemBoundsPreferencesKey.swift:4:23: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | public struct GridItemBoundsPreferencesKey: PreferenceKey {
 4 |     public static var defaultValue: [CGRect] = []
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
 5 |
 6 |     public static func reduce(value: inout [CGRect], nextValue: () -> [CGRect]) {
[12/18] Compiling Grid StaggeredGridStyle.swift
[13/18] Compiling Grid EnvironmentValues+GridStyle.swift
[14/18] Compiling Grid GridStyleKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridStyleKey.swift:5:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any GridStyle' may have shared mutable state; this is an error in the Swift 6 language mode
3 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
4 | struct GridStyleKey: EnvironmentKey {
5 |     static let defaultValue: GridStyle = ModularGridStyle(columns: .min(100), rows: .fixed(100))
  |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any GridStyle' 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
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridStyle.swift:5:17: note: protocol 'GridStyle' does not conform to the 'Sendable' protocol
 3 | /// A specification for the appearance of a `Grid`.
 4 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
 5 | public protocol GridStyle {
   |                 `- note: protocol 'GridStyle' does not conform to the 'Sendable' protocol
 6 |     var axis: Axis { get }
 7 |     var autoWidth: Bool { get }
[15/18] Compiling Grid Grid+Inits.swift
[16/18] Compiling Grid Grid.swift
[17/18] Compiling Grid GridPreferencesKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridPreferencesKey.swift:5:23: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | public struct GridPreferencesKey: PreferenceKey {
 5 |     public static var defaultValue: GridPreferences = .init(items: [])
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
 6 |
 7 |     public static func reduce(value: inout GridPreferences, nextValue: () -> GridPreferences) {
[18/18] Emitting module Grid
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridItemBoundsPreferencesKey.swift:4:23: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | public struct GridItemBoundsPreferencesKey: PreferenceKey {
 4 |     public static var defaultValue: [CGRect] = []
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
 5 |
 6 |     public static func reduce(value: inout [CGRect], nextValue: () -> [CGRect]) {
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridPreferencesKey.swift:5:23: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | public struct GridPreferencesKey: PreferenceKey {
 5 |     public static var defaultValue: GridPreferences = .init(items: [])
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
 6 |
 7 |     public static func reduce(value: inout GridPreferences, nextValue: () -> GridPreferences) {
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridStyleKey.swift:5:16: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any GridStyle' may have shared mutable state; this is an error in the Swift 6 language mode
3 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
4 | struct GridStyleKey: EnvironmentKey {
5 |     static let defaultValue: GridStyle = ModularGridStyle(columns: .min(100), rows: .fixed(100))
  |                |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'any GridStyle' 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
6 | }
7 |
/Users/admin/builder/spi-builder-workspace/Sources/Grid/Styles/Style/GridStyle.swift:5:17: note: protocol 'GridStyle' does not conform to the 'Sendable' protocol
 3 | /// A specification for the appearance of a `Grid`.
 4 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
 5 | public protocol GridStyle {
   |                 `- note: protocol 'GridStyle' does not conform to the 'Sendable' protocol
 6 |     var axis: Axis { get }
 7 |     var autoWidth: Bool { get }
Build complete! (38.72s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Grid/Demo': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Tests/GridTests/Demo': File not found.
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Grid",
  "name" : "Grid",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Grid",
      "targets" : [
        "Grid"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GridTests",
      "module_type" : "SwiftTarget",
      "name" : "GridTests",
      "path" : "Tests/GridTests",
      "sources" : [
        "GridPreferencesTests.swift",
        "GridTests.swift",
        "ModularGridStyleTests.swift",
        "StaggeredGridStyleTests.swift"
      ],
      "target_dependencies" : [
        "Grid"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Grid",
      "module_type" : "SwiftTarget",
      "name" : "Grid",
      "path" : "Sources/Grid",
      "product_memberships" : [
        "Grid"
      ],
      "sources" : [
        "Grid+Inits.swift",
        "Grid.swift",
        "GridItem.swift",
        "Styles/Layout/LayoutMath.swift",
        "Styles/Layout/Tracks.swift",
        "Styles/ModularGridStyle.swift",
        "Styles/StaggeredGridStyle.swift",
        "Styles/Style/EnvironmentValues+GridStyle.swift",
        "Styles/Style/GridItemBoundsPreferencesKey.swift",
        "Styles/Style/GridPreferences.swift",
        "Styles/Style/GridPreferencesKey.swift",
        "Styles/Style/GridPreferencesModifier.swift",
        "Styles/Style/GridStyle.swift",
        "Styles/Style/GridStyleKey.swift",
        "Styles/Style/View+GridStyle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Grid/Demo': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Tests/GridTests/Demo': File not found.
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.