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 WrappingStack, reference 1.1.0 (1e6b0f), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 20:35:48 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/diniska/swiftui-wrapping-stack.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/diniska/swiftui-wrapping-stack
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at 1e6b0ff Line breaking logic fixed
Cloned https://github.com/diniska/swiftui-wrapping-stack.git
Revision (git rev-parse @):
1e6b0fffe902cf3ffc102af5e7c0c4767cbc09e0
SUCCESS checkout https://github.com/diniska/swiftui-wrapping-stack.git at 1.1.0
========================================
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": "swiftui-wrapping-stack",
      "name": "WrappingStack",
      "url": "https://github.com/diniska/swiftui-wrapping-stack.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-wrapping-stack",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/diniska/swiftui-wrapping-stack.git
[1/327] Fetching swiftui-wrapping-stack
Fetched https://github.com/diniska/swiftui-wrapping-stack.git from cache (0.79s)
Creating working copy for https://github.com/diniska/swiftui-wrapping-stack.git
Working copy of https://github.com/diniska/swiftui-wrapping-stack.git resolved at 1.1.0 (1e6b0ff)
warning: '.resolve-product-dependencies': dependency 'swiftui-wrapping-stack' 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/diniska/swiftui-wrapping-stack.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Emitting module WrappingStack
/Users/admin/builder/spi-builder-workspace/Sources/WrappingStack/Helpers/SizeReader.swift:30:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | @available(iOS 14, macOS 11, *)
29 | private struct SizePreferenceKey: PreferenceKey {
30 |     static var defaultValue: CGSize = .zero
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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
31 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
32 | }
[4/6] Compiling WrappingStack WrappingHStack.swift
[5/6] Compiling WrappingStack TightHeightGeometryReader.swift
[6/6] Compiling WrappingStack SizeReader.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrappingStack/Helpers/SizeReader.swift:30:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | @available(iOS 14, macOS 11, *)
29 | private struct SizePreferenceKey: PreferenceKey {
30 |     static var defaultValue: CGSize = .zero
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated 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
31 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {}
32 | }
Build complete! (12.07s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WrappingStack",
  "name" : "WrappingStack",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    }
  ],
  "products" : [
    {
      "name" : "WrappingStack",
      "targets" : [
        "WrappingStack"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WrappingStackTests",
      "module_type" : "SwiftTarget",
      "name" : "WrappingStackTests",
      "path" : "Tests/WrappingStackTests",
      "sources" : [
        "WrappingStackTests.swift"
      ],
      "target_dependencies" : [
        "WrappingStack"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WrappingStack",
      "module_type" : "SwiftTarget",
      "name" : "WrappingStack",
      "path" : "Sources/WrappingStack",
      "product_memberships" : [
        "WrappingStack"
      ],
      "sources" : [
        "Helpers/SizeReader.swift",
        "Helpers/TightHeightGeometryReader.swift",
        "WrappingHStack.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.