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 SwiftUICharts, reference develop (b48217), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 19:36:48 UTC.

Swift 6 data race errors: 4

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/otaviokz/SwiftUICharts.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/otaviokz/SwiftUICharts
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at b482176 Merge pull request #24 from otaviokz/otaviokz-patch-2
Cloned https://github.com/otaviokz/SwiftUICharts.git
Revision (git rev-parse @):
b4821766a9ff0301b82b237506ddcfa165faecb3
SUCCESS checkout https://github.com/otaviokz/SwiftUICharts.git at develop
========================================
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": "swiftuicharts",
      "name": "SwiftUICharts",
      "url": "https://github.com/otaviokz/SwiftUICharts.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUICharts",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/otaviokz/SwiftUICharts.git
[1/619] Fetching swiftuicharts
Fetched https://github.com/otaviokz/SwiftUICharts.git from cache (1.03s)
Creating working copy for https://github.com/otaviokz/SwiftUICharts.git
Working copy of https://github.com/otaviokz/SwiftUICharts.git resolved at develop (b482176)
warning: '.resolve-product-dependencies': dependency 'swiftuicharts' 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/otaviokz/SwiftUICharts.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/25] Emitting module SwiftUICharts
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:20:24: warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
   |                        |- warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'donutColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'donutColors' 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
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:21:24: warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
   |                        |- warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'pieColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'pieColors' 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
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Utils/View+ReadValues.swift:35: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
33 |
34 | private struct HeightKey: PreferenceKey {
35 |     static var defaultValue = CGFloat.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
36 |     static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = nextValue() }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Utils/View+ReadValues.swift:40: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
38 |
39 | private struct WidthKey: PreferenceKey {
40 |     static var defaultValue = CGFloat.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
41 |     static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = nextValue() }
42 | }
[4/27] Compiling SwiftUICharts SCCaptionsView.swift
[5/27] Compiling SwiftUICharts SCChartWrapperView.swift
[6/27] Compiling SwiftUICharts String+ObjectIdentifier.swift
[7/27] Compiling SwiftUICharts View+Environment.swift
[8/27] Compiling SwiftUICharts SCPalletes.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:20:24: warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
   |                        |- warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'donutColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'donutColors' 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
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:21:24: warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
   |                        |- warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'pieColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'pieColors' 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
22 | }
23 |
[9/27] Compiling SwiftUICharts CGPoint+Shortcuts.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:20:24: warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
   |                        |- warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'donutColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'donutColors' 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
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:21:24: warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
   |                        |- warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'pieColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'pieColors' 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
22 | }
23 |
[10/27] Compiling SwiftUICharts Color+Hex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:20:24: warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
   |                        |- warning: static property 'donutColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'donutColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'donutColors' 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
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Style/SCPalletes.swift:21:24: warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | private extension SCPalletes.Graph {
20 |     private static var donutColors = [Color](hex: "4770b3", "e4b031", "26727b", "50aed3", "04cc82", "9e9ea2")
21 |     private static var pieColors = [Color](hex: "003f5c", "58508d", "bc5090", "ff6361", "ffa600")
   |                        |- warning: static property 'pieColors' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'pieColors' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'pieColors' 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
22 | }
23 |
[11/27] Compiling SwiftUICharts SCDonutChartView.swift
[12/27] Compiling SwiftUICharts SCDonutPartView.swift
[13/27] Compiling SwiftUICharts SCDonutView.swift
[14/27] Compiling SwiftUICharts SCPieChartView.swift
[15/27] Compiling SwiftUICharts SCCircleChartPart.swift
[16/27] Compiling SwiftUICharts SCDataPointProtocol.swift
[17/27] Compiling SwiftUICharts SCDataPoint.swift
[18/27] Compiling SwiftUICharts Font+Shortcuts.swift
[19/27] Compiling SwiftUICharts GeometryProxy+Shortcuts.swift
[20/27] Compiling SwiftUICharts Path+Shortcuts.swift
[21/27] Compiling SwiftUICharts SCPiePartView.swift
[22/27] Compiling SwiftUICharts SCPieView.swift
[23/27] Compiling SwiftUICharts SCDonutPart.swift
[24/27] Compiling SwiftUICharts SCPiePart.swift
[25/27] Compiling SwiftUICharts NumberFormatter+Defaults.swift
[26/27] Compiling SwiftUICharts View+ReadValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Utils/View+ReadValues.swift:35: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
33 |
34 | private struct HeightKey: PreferenceKey {
35 |     static var defaultValue = CGFloat.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
36 |     static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = nextValue() }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Utils/View+ReadValues.swift:40: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
38 |
39 | private struct WidthKey: PreferenceKey {
40 |     static var defaultValue = CGFloat.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
41 |     static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = nextValue() }
42 | }
[27/27] Compiling SwiftUICharts View+Shortcuts.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Utils/View+ReadValues.swift:35: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
33 |
34 | private struct HeightKey: PreferenceKey {
35 |     static var defaultValue = CGFloat.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
36 |     static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = nextValue() }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUICharts/Utils/View+ReadValues.swift:40: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
38 |
39 | private struct WidthKey: PreferenceKey {
40 |     static var defaultValue = CGFloat.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
41 |     static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) { value = nextValue() }
42 | }
Build complete! (32.89s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftUICharts",
  "name" : "SwiftUICharts",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftUICharts",
      "targets" : [
        "SwiftUICharts"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftUIChartsTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUIChartsTests",
      "path" : "Tests/SwiftUIChartsTests",
      "sources" : [
        "Model/SCDataPointTests.swift",
        "Model/SCDonutPartTests.swift",
        "Model/SCPiePartTests.swift",
        "Utils/CGPoint+ShortcutsTests.swift",
        "Utils/Color_HexTests.swift"
      ],
      "target_dependencies" : [
        "SwiftUICharts"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftUICharts",
      "module_type" : "SwiftTarget",
      "name" : "SwiftUICharts",
      "path" : "Sources/SwiftUICharts",
      "product_memberships" : [
        "SwiftUICharts"
      ],
      "sources" : [
        "Model/Protocol/SCCircleChartPart.swift",
        "Model/Protocol/SCDataPointProtocol.swift",
        "Model/SCDataPoint.swift",
        "Model/SCDonutPart.swift",
        "Model/SCPiePart.swift",
        "Style/NumberFormatter+Defaults.swift",
        "Style/SCPalletes.swift",
        "Utils/CGPoint+Shortcuts.swift",
        "Utils/Color+Hex.swift",
        "Utils/Font+Shortcuts.swift",
        "Utils/GeometryProxy+Shortcuts.swift",
        "Utils/Path+Shortcuts.swift",
        "Utils/String+ObjectIdentifier.swift",
        "Utils/View+Environment.swift",
        "Utils/View+ReadValues.swift",
        "Utils/View+Shortcuts.swift",
        "View/DonutChart/SCDonutChartView.swift",
        "View/DonutChart/SCDonutPartView.swift",
        "View/DonutChart/SCDonutView.swift",
        "View/PieChart/SCPieChartView.swift",
        "View/PieChart/SCPiePartView.swift",
        "View/PieChart/SCPieView.swift",
        "View/Shared/SCCaptionsView.swift",
        "View/Shared/SCChartWrapperView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.