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 ClearFashionWidget, reference main (594df0), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 09:28:14 UTC.

Swift 6 data race errors: 3

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Clothparency/ios-widgets.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Clothparency/ios-widgets
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 594df0c use cdn and update readme
Cloned https://github.com/Clothparency/ios-widgets.git
Revision (git rev-parse @):
594df0cc34cae8c768ee3e336c41d9dd906120ad
SUCCESS checkout https://github.com/Clothparency/ios-widgets.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": "ios-widgets",
      "name": "ClearFashionWidget",
      "url": "https://github.com/Clothparency/ios-widgets.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ios-widgets",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Clothparency/ios-widgets.git
[1/143] Fetching ios-widgets
Fetched https://github.com/Clothparency/ios-widgets.git from cache (0.99s)
Creating working copy for https://github.com/Clothparency/ios-widgets.git
Working copy of https://github.com/Clothparency/ios-widgets.git resolved at main (594df0c)
warning: '.resolve-product-dependencies': dependency 'ios-widgets' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Clothparency/ios-widgets.git
https://github.com/Clothparency/ios-widgets.git
{
  "default_localization" : "fr",
  "dependencies" : [
  ],
  "manifest_display_name" : "ClearFashionWidget",
  "name" : "ClearFashionWidget",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "ClearFashionWidget",
      "targets" : [
        "ClearFashionWidget"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ClearFashionWidgetTests",
      "module_type" : "SwiftTarget",
      "name" : "ClearFashionWidgetTests",
      "path" : "Tests/ClearFashionWidgetTests",
      "sources" : [
        "ClearFashionWidgetTests.swift"
      ],
      "target_dependencies" : [
        "ClearFashionWidget"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ClearFashionWidget",
      "module_type" : "SwiftTarget",
      "name" : "ClearFashionWidget",
      "path" : "Sources/ClearFashionWidget",
      "product_memberships" : [
        "ClearFashionWidget"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Assets.xcassets",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Fonts/Inter-Medium.ttf",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Fonts/Inter-Regular.ttf",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Fonts/Inter-SemiBold.ttf",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/en.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/fr.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "fr"
            }
          }
        }
      ],
      "sources" : [
        "Bundle.swift",
        "ButtonView.swift",
        "ClearFashionProduct.swift",
        "ClearFashionWidget.swift",
        "Color.swift",
        "CountriesSectionView.swift",
        "CountryDescriptionView.swift",
        "Font.swift",
        "FontBlaster.swift",
        "FooterSectionView.swift",
        "FullScreenView.swift",
        "HeaderSectionView.swift",
        "Image.swift",
        "LoadingView.swift",
        "MainSectionView.swift",
        "MaterialDescriptionView.swift",
        "MaterialsImpactSectionView.swift",
        "String.swift",
        "URLSession.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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/9] Write sources
[1/9] Copying Inter-Regular.ttf
[1/9] Copying Inter-Medium.ttf
[1/9] Copying Info.plist
[1/9] Copying Localizable.strings
[1/9] Copying Inter-SemiBold.ttf
[7/9] Copying Assets.xcassets
[8/9] Write swift-version-2F0A5646E1D333AE.txt
[10/28] Compiling ClearFashionWidget MaterialsImpactSectionView.swift
[11/28] Compiling ClearFashionWidget String.swift
[12/30] Compiling ClearFashionWidget MainSectionView.swift
[13/30] Compiling ClearFashionWidget MaterialDescriptionView.swift
[14/30] Compiling ClearFashionWidget FontBlaster.swift
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/FontBlaster.swift:27:23: warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     /// Toggles debug print() statements
 27 |     public static var debugEnabled = false
    |                       |- warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'debugEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |     /// A list of the loaded fonts
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/FontBlaster.swift:30:23: warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 |     /// A list of the loaded fonts
 30 |     public static var loadedFonts: [String] = []
    |                       |- warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loadedFonts' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'loadedFonts' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     /// Load all fonts found in a specific bundle. If no value is entered, it defaults to the main bundle.
[15/30] Compiling ClearFashionWidget FooterSectionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/FontBlaster.swift:27:23: warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     /// Toggles debug print() statements
 27 |     public static var debugEnabled = false
    |                       |- warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'debugEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |     /// A list of the loaded fonts
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/FontBlaster.swift:30:23: warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 |     /// A list of the loaded fonts
 30 |     public static var loadedFonts: [String] = []
    |                       |- warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loadedFonts' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'loadedFonts' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     /// Load all fonts found in a specific bundle. If no value is entered, it defaults to the main bundle.
[16/30] Compiling ClearFashionWidget FullScreenView.swift
[17/30] Compiling ClearFashionWidget HeaderSectionView.swift
[18/30] Compiling ClearFashionWidget CountryDescriptionView.swift
[19/30] Compiling ClearFashionWidget Font.swift
[20/30] Compiling ClearFashionWidget Color.swift
[21/30] Compiling ClearFashionWidget CountriesSectionView.swift
[22/30] Compiling ClearFashionWidget Image.swift
[23/30] Compiling ClearFashionWidget LoadingView.swift
[24/30] Emitting module ClearFashionWidget
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Bundle.swift:11:24: warning: static property 'bundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | extension Bundle {
11 |     private static var bundle: Bundle!
   |                        |- warning: static property 'bundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'bundle' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'bundle' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     static func getBundle() -> Bundle {
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/FontBlaster.swift:27:23: warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 25 |
 26 |     /// Toggles debug print() statements
 27 |     public static var debugEnabled = false
    |                       |- warning: static property 'debugEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'debugEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'debugEnabled' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |     /// A list of the loaded fonts
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/FontBlaster.swift:30:23: warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 28 |
 29 |     /// A list of the loaded fonts
 30 |     public static var loadedFonts: [String] = []
    |                       |- warning: static property 'loadedFonts' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'loadedFonts' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'loadedFonts' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |
 32 |     /// Load all fonts found in a specific bundle. If no value is entered, it defaults to the main bundle.
[25/30] Compiling ClearFashionWidget Bundle.swift
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Bundle.swift:11:24: warning: static property 'bundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | extension Bundle {
11 |     private static var bundle: Bundle!
   |                        |- warning: static property 'bundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'bundle' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'bundle' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     static func getBundle() -> Bundle {
[26/30] Compiling ClearFashionWidget ButtonView.swift
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Bundle.swift:11:24: warning: static property 'bundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 | extension Bundle {
11 |     private static var bundle: Bundle!
   |                        |- warning: static property 'bundle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'bundle' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'bundle' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     static func getBundle() -> Bundle {
[27/30] Compiling ClearFashionWidget ClearFashionProduct.swift
[28/30] Compiling ClearFashionWidget ClearFashionWidget.swift
[29/30] Compiling ClearFashionWidget URLSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/URLSession.swift:14:9: warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a '@Sendable' closure
12 |     self.dataTask(with: url) { (data, response, error) in
13 |       if let error = error {
14 |         completion(.failure(error))
   |         |- warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
15 |       }
16 |
[30/30] Compiling ClearFashionWidget resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/URLSession.swift:14:9: warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a '@Sendable' closure
12 |     self.dataTask(with: url) { (data, response, error) in
13 |       if let error = error {
14 |         completion(.failure(error))
   |         |- warning: capture of 'completion' with non-sendable type '(Result<T, any Error>) -> Void' in a '@Sendable' closure
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
15 |       }
16 |
Build complete! (8.89s)
Build complete.
{
  "default_localization" : "fr",
  "dependencies" : [
  ],
  "manifest_display_name" : "ClearFashionWidget",
  "name" : "ClearFashionWidget",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "ClearFashionWidget",
      "targets" : [
        "ClearFashionWidget"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ClearFashionWidgetTests",
      "module_type" : "SwiftTarget",
      "name" : "ClearFashionWidgetTests",
      "path" : "Tests/ClearFashionWidgetTests",
      "sources" : [
        "ClearFashionWidgetTests.swift"
      ],
      "target_dependencies" : [
        "ClearFashionWidget"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ClearFashionWidget",
      "module_type" : "SwiftTarget",
      "name" : "ClearFashionWidget",
      "path" : "Sources/ClearFashionWidget",
      "product_memberships" : [
        "ClearFashionWidget"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Assets.xcassets",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Fonts/Inter-Medium.ttf",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Fonts/Inter-Regular.ttf",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/Fonts/Inter-SemiBold.ttf",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/en.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "en"
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ClearFashionWidget/Resources/fr.lproj/Localizable.strings",
          "rule" : {
            "process" : {
              "localization" : "fr"
            }
          }
        }
      ],
      "sources" : [
        "Bundle.swift",
        "ButtonView.swift",
        "ClearFashionProduct.swift",
        "ClearFashionWidget.swift",
        "Color.swift",
        "CountriesSectionView.swift",
        "CountryDescriptionView.swift",
        "Font.swift",
        "FontBlaster.swift",
        "FooterSectionView.swift",
        "FullScreenView.swift",
        "HeaderSectionView.swift",
        "Image.swift",
        "LoadingView.swift",
        "MainSectionView.swift",
        "MaterialDescriptionView.swift",
        "MaterialsImpactSectionView.swift",
        "String.swift",
        "URLSession.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.