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 SwiftUIPreviewUtils, reference 0.0.10 (07c37c), with Swift 6.0 for macOS (SPM) on 10 Oct 2024 01:22:05 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CypherPoet/SwiftUIPreviewUtils.git
Reference: 0.0.10
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CypherPoet/SwiftUIPreviewUtils
 * tag               0.0.10     -> FETCH_HEAD
HEAD is now at 07c37cc 0.0.10
Cloned https://github.com/CypherPoet/SwiftUIPreviewUtils.git
Revision (git rev-parse @):
07c37ccf8ceeafcacb88288d47b30f033539b098
SUCCESS checkout https://github.com/CypherPoet/SwiftUIPreviewUtils.git at 0.0.10
========================================
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": "swiftuipreviewutils",
      "name": "SwiftUIPreviewUtils",
      "url": "https://github.com/CypherPoet/SwiftUIPreviewUtils.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIPreviewUtils",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/CypherPoet/SwiftUIPreviewUtils.git
[1/235] Fetching swiftuipreviewutils
Fetched https://github.com/CypherPoet/SwiftUIPreviewUtils.git from cache (1.13s)
Creating working copy for https://github.com/CypherPoet/SwiftUIPreviewUtils.git
Working copy of https://github.com/CypherPoet/SwiftUIPreviewUtils.git resolved at 0.0.10 (07c37cc)
warning: '.resolve-product-dependencies': dependency 'swiftuipreviewutils' 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/CypherPoet/SwiftUIPreviewUtils.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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--4A847ED0836F2485.txt
[3/14] Compiling SwiftUIPreviewUtils LocalePreview.swift
[4/15] Compiling SwiftUIPreviewUtils LayoutDirectionPreview.swift
[5/15] Compiling SwiftUIPreviewUtils OpenedFromNavigationLinkViewModifier.swift
[6/15] Compiling SwiftUIPreviewUtils ColorSchemePreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | extension ContentSizeCategory {
 7 |     public static let smallestAndLargest = [allCases.first!, allCases.last!]
   |                       |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'smallestAndLargest' 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
 8 | }
 9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[7/15] Compiling SwiftUIPreviewUtils ComponentPreview.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | extension ContentSizeCategory {
 7 |     public static let smallestAndLargest = [allCases.first!, allCases.last!]
   |                       |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'smallestAndLargest' 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
 8 | }
 9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[8/15] Compiling SwiftUIPreviewUtils PreviewDevice+Constants.swift
[9/15] Compiling SwiftUIPreviewUtils ContentSizeCategory+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | extension ContentSizeCategory {
 7 |     public static let smallestAndLargest = [allCases.first!, allCases.last!]
   |                       |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'smallestAndLargest' 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
 8 | }
 9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[10/15] Compiling SwiftUIPreviewUtils FullScreenPreview.swift
[11/15] Compiling SwiftUIPreviewUtils ContentSizeCategoryPreview.swift
[12/15] Compiling SwiftUIPreviewUtils ColorScheme+previewName.swift
[13/15] Emitting module SwiftUIPreviewUtils
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIPreviewUtils/Extensions/ContentSizeCategory+Utils.swift:7:23: warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | extension ContentSizeCategory {
 7 |     public static let smallestAndLargest = [allCases.first!, allCases.last!]
   |                       |- warning: static property 'smallestAndLargest' is not concurrency-safe because non-'Sendable' type '[ContentSizeCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'smallestAndLargest' 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
 8 | }
 9 |
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[14/15] Compiling SwiftUIPreviewUtils PreviewLayout+Landscape.swift
[15/15] Compiling SwiftUIPreviewUtils StatefulPreviewWrapper.swift
Build complete! (24.98s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUIPreviewUtils",
  "name" : "SwiftUIPreviewUtils",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUIPreviewUtils",
      "targets" : [
        "SwiftUIPreviewUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIPreviewUtilsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIPreviewUtilsTests",
      "path" : "Tests/SwiftUIPreviewUtils",
      "sources" : [
        "Cases/SwiftUIPreviewUtilsTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUIPreviewUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUIPreviewUtils",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIPreviewUtils",
      "path" : "Sources/SwiftUIPreviewUtils",
      "product_memberships" : [
        "SwiftUIPreviewUtils"
      ],
      "sources" : [
        "ColorSchemePreview.swift",
        "ComponentPreview.swift",
        "ContentSizeCategoryPreview.swift",
        "Extensions/ColorScheme+previewName.swift",
        "Extensions/ContentSizeCategory+Utils.swift",
        "Extensions/PreviewDevice+Constants.swift",
        "Extensions/PreviewLayout+Landscape.swift",
        "FullScreenPreview.swift",
        "LayoutDirectionPreview.swift",
        "LocalePreview.swift",
        "OpenedFromNavigationLink/OpenedFromNavigationLinkViewModifier.swift",
        "StatefulPreviewWrapper.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.