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 UIx, reference main (2c3db3), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:45:22 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/buhe/UIx.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/buhe/UIx
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2c3db33 "Refactor UIx.swift by removing UIKit import and adding conditional compilation for iOS."
Cloned https://github.com/buhe/UIx.git
Revision (git rev-parse @):
2c3db33ef36f74ab4d8419628b91c459eac4c1ad
SUCCESS checkout https://github.com/buhe/UIx.git at main
========================================
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": "uix",
      "name": "UIx",
      "url": "https://github.com/buhe/UIx.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UIx",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/buhe/UIx.git
[1/86] Fetching uix
Fetched https://github.com/buhe/UIx.git from cache (0.70s)
Creating working copy for https://github.com/buhe/UIx.git
Working copy of https://github.com/buhe/UIx.git resolved at main (2c3db33)
warning: '.resolve-product-dependencies': dependency 'uix' 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/buhe/UIx.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/11] Compiling UIx Tabbars.swift
/Users/admin/builder/spi-builder-workspace/Sources/UIx/Tabbars/Tabbars.swift:15: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
 13 |     typealias Value = [String]
 14 |
 15 |     static var defaultValue: [String] = []
    |                |- 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
 16 |
 17 |     static func reduce(value: inout [String], nextValue: () -> [String]) {
[4/11] Compiling UIx BlurViewModifier.swift
[5/11] Compiling UIx UIx.swift
[6/11] Compiling UIx TopViewExtension.swift
[7/11] Compiling UIx DotView.swift
/Users/admin/builder/spi-builder-workspace/Sources/UIx/LoadingView/ActivityViews/Dots/DotView.swift:37:14: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
35 |             .scaleEffect(scale)
36 |             .foregroundColor(color)
37 |             .animation(Animation.easeInOut(duration: 0.6).repeatForever().delay(delay))
   |              `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
38 |             .onAppear {
39 |                 withAnimation {
[8/11] Emitting module UIx
/Users/admin/builder/spi-builder-workspace/Sources/UIx/Tabbars/Tabbars.swift:15: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
 13 |     typealias Value = [String]
 14 |
 15 |     static var defaultValue: [String] = []
    |                |- 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
 16 |
 17 |     static func reduce(value: inout [String], nextValue: () -> [String]) {
[9/11] Compiling UIx CircleActivityView.swift
/Users/admin/builder/spi-builder-workspace/Sources/UIx/LoadingView/ActivityViews/CircleActivityView.swift:43:18: warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
41 |                 .foregroundColor(lineColor)
42 |                 .rotationEffect(Angle(degrees: isLoading ? 360 : 0))
43 |                 .animation(Animation.linear(duration: 1).repeatForever(autoreverses: false))
   |                  `- warning: 'animation' was deprecated in macOS 12.0: Use withAnimation or animation(_:value:) instead.
44 |                 .onAppear { self.isLoading.toggle() }
45 |         }
[10/11] Compiling UIx DotsActivityView.swift
[11/11] Compiling UIx ContainerActivityView.swift
Build complete! (21.47s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UIx",
  "name" : "UIx",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "UIx",
      "targets" : [
        "UIx"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UIxTests",
      "module_type" : "SwiftTarget",
      "name" : "UIxTests",
      "path" : "Tests/UIxTests",
      "sources" : [
        "UIxTests.swift"
      ],
      "target_dependencies" : [
        "UIx"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UIx",
      "module_type" : "SwiftTarget",
      "name" : "UIx",
      "path" : "Sources/UIx",
      "product_memberships" : [
        "UIx"
      ],
      "sources" : [
        "LoadingView/ActivityViews/CircleActivityView.swift",
        "LoadingView/ActivityViews/ContainerActivityView.swift",
        "LoadingView/ActivityViews/Dots/DotView.swift",
        "LoadingView/ActivityViews/Dots/DotsActivityView.swift",
        "LoadingView/BlurViewModifier.swift",
        "LoadingView/TopViewExtension.swift",
        "Tabbars/Tabbars.swift",
        "UIx.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7.1"
}
Done.