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 (beta) for macOS (SPM) on 14 Sep 2024 23:30:45 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.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
========================================
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.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/11] Compiling UIx ContainerActivityView.swift
[4/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]) {
[5/11] Compiling UIx TopViewExtension.swift
[6/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]) {
[7/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 |         }
[8/11] Compiling UIx DotsActivityView.swift
[9/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 {
[10/11] Compiling UIx UIx.swift
[11/11] Compiling UIx BlurViewModifier.swift
Build complete! (23.18s)
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.