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 swiftui-tabs-view, reference v0.5.0 (e5985a), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 05:10:18 UTC.

Swift 6 data race errors: 3

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/darrarski/swiftui-tabs-view.git
Reference: v0.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/darrarski/swiftui-tabs-view
 * tag               v0.5.0     -> FETCH_HEAD
HEAD is now at e5985a2 Merge pull request #5 from darrarski/fix/navigationview-embedded-content
Cloned https://github.com/darrarski/swiftui-tabs-view.git
Revision (git rev-parse @):
e5985a2387d0e5f21a963fcf1c422b002078e8dc
SUCCESS checkout https://github.com/darrarski/swiftui-tabs-view.git at v0.5.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-tabs-view",
      "name": "swiftui-tabs-view",
      "url": "https://github.com/darrarski/swiftui-tabs-view.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftui-tabs-view",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/darrarski/swiftui-tabs-view.git
[1/223] Fetching swiftui-tabs-view
Fetched https://github.com/darrarski/swiftui-tabs-view.git from cache (1.05s)
Creating working copy for https://github.com/darrarski/swiftui-tabs-view.git
Working copy of https://github.com/darrarski/swiftui-tabs-view.git resolved at v0.5.0 (e5985a2)
warning: '.resolve-product-dependencies': dependency 'swiftui-tabs-view' 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/darrarski/swiftui-tabs-view.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/9] Compiling SwiftUITabsView ToolbarViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUITabsView/ToolbarViewModifier.swift:27:14: 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
 25 |
 26 | struct ToolbarPositionKey: EnvironmentKey {
 27 |   static var defaultValue: ToolbarPosition = .bottom
    |              |- 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
 28 | }
 29 |
[4/9] Compiling SwiftUITabsView TabsView.swift
[5/9] Compiling SwiftUITabsView TabsBarView.swift
[6/9] Compiling SwiftUITabsView TabsBarSafeAreaInsetViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUITabsView/TabsBarSafeAreaInsetViewModifier.swift:4:14: 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
 2 |
 3 | struct TabsBarSafeAreaInsetKey: EnvironmentKey {
 4 |   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
 5 | }
 6 |
[7/9] Emitting module SwiftUITabsView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUITabsView/GeometryReaderViewModifier.swift:42:14: 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
40 |
41 | struct GeometryPreferenceKey: PreferenceKey {
42 |   static var defaultValue: Data? = nil
   |              |- 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
43 |
44 |   static func reduce(value: inout Data?, nextValue: () -> Data?) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUITabsView/TabsBarSafeAreaInsetViewModifier.swift:4:14: 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
 2 |
 3 | struct TabsBarSafeAreaInsetKey: EnvironmentKey {
 4 |   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
 5 | }
 6 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUITabsView/ToolbarViewModifier.swift:27:14: 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
 25 |
 26 | struct ToolbarPositionKey: EnvironmentKey {
 27 |   static var defaultValue: ToolbarPosition = .bottom
    |              |- 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
 28 | }
 29 |
[8/9] Compiling SwiftUITabsView GeometryReaderViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUITabsView/GeometryReaderViewModifier.swift:42:14: 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
40 |
41 | struct GeometryPreferenceKey: PreferenceKey {
42 |   static var defaultValue: Data? = nil
   |              |- 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
43 |
44 |   static func reduce(value: inout Data?, nextValue: () -> Data?) {
[9/9] Compiling SwiftUITabsView TabsBarItemView.swift
Build complete! (16.92s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftui-tabs-view",
  "name" : "swiftui-tabs-view",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUITabsView",
      "targets" : [
        "SwiftUITabsView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUITabsView",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUITabsView",
      "path" : "Sources/SwiftUITabsView",
      "product_memberships" : [
        "SwiftUITabsView"
      ],
      "sources" : [
        "GeometryReaderViewModifier.swift",
        "TabsBarItemView.swift",
        "TabsBarSafeAreaInsetViewModifier.swift",
        "TabsBarView.swift",
        "TabsView.swift",
        "ToolbarViewModifier.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.