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 Cooponent, reference 0.1.0 (b69165), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 05:18:05 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Talljack/Cooponent.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Talljack/Cooponent
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at b69165c init
Cloned https://github.com/Talljack/Cooponent.git
Revision (git rev-parse @):
b69165c30cc2a3c3019cf1b330d9484f1c3ddd6c
SUCCESS checkout https://github.com/Talljack/Cooponent.git at 0.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Talljack/Cooponent.git
https://github.com/Talljack/Cooponent.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Cooponent",
  "name" : "Cooponent",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Cooponent",
      "targets" : [
        "Button",
        "Segment",
        "Examples"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Segment",
      "module_type" : "SwiftTarget",
      "name" : "Segment",
      "path" : "Sources/Segment",
      "product_memberships" : [
        "Cooponent"
      ],
      "sources" : [
        "SegmentedControl.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Examples",
      "module_type" : "SwiftTarget",
      "name" : "Examples",
      "path" : "Sources/Examples",
      "product_memberships" : [
        "Cooponent"
      ],
      "sources" : [
        "SegmentedControlExample.swift"
      ],
      "target_dependencies" : [
        "Button",
        "Segment"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CooponentTests",
      "module_type" : "SwiftTarget",
      "name" : "CooponentTests",
      "path" : "Tests/CooponentTests",
      "sources" : [
        "CooponentTests.swift"
      ],
      "target_dependencies" : [
        "Button",
        "Segment"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Button",
      "module_type" : "SwiftTarget",
      "name" : "Button",
      "path" : "Sources/Button",
      "product_memberships" : [
        "Cooponent"
      ],
      "sources" : [
        "CustomButton.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/8] Emitting module Button
[6/8] Compiling Button CustomButton.swift
[7/8] Emitting module Segment
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:6: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
  4 |
  5 | private struct SizeKey: PreferenceKey {
  6 |     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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
  8 |         value = nextValue()
[8/8] Compiling Segment SegmentedControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/Segment/SegmentedControl.swift:6: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
  4 |
  5 | private struct SizeKey: PreferenceKey {
  6 |     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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |     static func reduce(value: inout CGSize, nextValue: () -> CGSize) {
  8 |         value = nextValue()
[9/10] Emitting module Examples
[10/10] Compiling Examples SegmentedControlExample.swift
Build complete! (8.62s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Cooponent",
  "name" : "Cooponent",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Cooponent",
      "targets" : [
        "Button",
        "Segment",
        "Examples"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Segment",
      "module_type" : "SwiftTarget",
      "name" : "Segment",
      "path" : "Sources/Segment",
      "product_memberships" : [
        "Cooponent"
      ],
      "sources" : [
        "SegmentedControl.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Examples",
      "module_type" : "SwiftTarget",
      "name" : "Examples",
      "path" : "Sources/Examples",
      "product_memberships" : [
        "Cooponent"
      ],
      "sources" : [
        "SegmentedControlExample.swift"
      ],
      "target_dependencies" : [
        "Button",
        "Segment"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CooponentTests",
      "module_type" : "SwiftTarget",
      "name" : "CooponentTests",
      "path" : "Tests/CooponentTests",
      "sources" : [
        "CooponentTests.swift"
      ],
      "target_dependencies" : [
        "Button",
        "Segment"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Button",
      "module_type" : "SwiftTarget",
      "name" : "Button",
      "path" : "Sources/Button",
      "product_memberships" : [
        "Cooponent"
      ],
      "sources" : [
        "CustomButton.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.