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 void (057147), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 20:35:56 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: void
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/diniska/swiftui-wrapping-stack
 * branch            void       -> FETCH_HEAD
 * [new branch]      void       -> origin/void
HEAD is now at 0571473 Deployment target 11+ and tvOS availability
Cloned https://github.com/diniska/swiftui-wrapping-stack.git
Revision (git rev-parse @):
0571473ddb1bea8dd7156bc77f8ec71f2e58df13
SUCCESS checkout https://github.com/diniska/swiftui-wrapping-stack.git at void
========================================
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.77s)
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 void (0571473)
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/7] Compiling WrappingStack WrappingHStack.swift
[4/7] Compiling WrappingStack TightHeightGeometryReader.swift
[5/7] 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, tvOS 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 | }
[6/7] Compiling WrappingStack Lines.swift
[7/7] 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, tvOS 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.27s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WrappingStack",
  "name" : "WrappingStack",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "11.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" : [
        "LinesTests.swift"
      ],
      "target_dependencies" : [
        "WrappingStack"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WrappingStack",
      "module_type" : "SwiftTarget",
      "name" : "WrappingStack",
      "path" : "Sources/WrappingStack",
      "product_memberships" : [
        "WrappingStack"
      ],
      "sources" : [
        "Helpers/Lines.swift",
        "Helpers/SizeReader.swift",
        "Helpers/TightHeightGeometryReader.swift",
        "WrappingHStack.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.