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 1.0.0 (93482a), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 23:32:14 UTC.

Swift 6 data race errors: 3

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/Clothparency/ios-widgets.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Clothparency/ios-widgets
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 93482a2 adapt design for macOS
Cloned https://github.com/Clothparency/ios-widgets.git
Revision (git rev-parse @):
93482a2c8718d5b480b7fa5fc09737211e497250
SUCCESS checkout https://github.com/Clothparency/ios-widgets.git at 1.0.0
========================================
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.97s)
Creating working copy for https://github.com/Clothparency/ios-widgets.git
Working copy of https://github.com/Clothparency/ios-widgets.git resolved at 1.0.0 (93482a2)
warning: '.resolve-product-dependencies': dependency 'ios-widgets' 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/Clothparency/ios-widgets.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/9] Write sources
[1/9] Copying Inter-Regular.ttf
[1/9] Copying Info.plist
[1/9] Copying Localizable.strings
[1/9] Copying Inter-SemiBold.ttf
[1/9] Copying Inter-Medium.ttf
[7/9] Copying Assets.xcassets
[8/9] Write swift-version--7754E27361AE5C74.txt
[10/28] Compiling ClearFashionWidget MainSectionView.swift
[11/28] Compiling ClearFashionWidget MaterialDescriptionView.swift
[12/30] Compiling ClearFashionWidget MaterialsImpactSectionView.swift
[13/30] Compiling ClearFashionWidget String.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: annotate 'debugEnabled' 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
 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: annotate 'loadedFonts' 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
 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: annotate 'debugEnabled' 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
 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: annotate 'loadedFonts' 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
 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 Image.swift
[17/30] Compiling ClearFashionWidget LoadingView.swift
[18/30] Compiling ClearFashionWidget CountryDescriptionView.swift
[19/30] Compiling ClearFashionWidget Font.swift
[20/30] Compiling ClearFashionWidget ClearFashionProduct.swift
[21/30] Compiling ClearFashionWidget ClearFashionWidget.swift
[22/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: annotate 'bundle' 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
12 |
13 |     static func getBundle() -> Bundle {
[23/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: annotate 'bundle' 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
12 |
13 |     static func getBundle() -> Bundle {
[24/30] Compiling ClearFashionWidget Color.swift
[25/30] Compiling ClearFashionWidget CountriesSectionView.swift
[26/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: annotate 'bundle' 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
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: annotate 'debugEnabled' 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
 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: annotate 'loadedFonts' 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
 31 |
 32 |     /// Load all fonts found in a specific bundle. If no value is entered, it defaults to the main bundle.
[27/30] Compiling ClearFashionWidget FullScreenView.swift
[28/30] Compiling ClearFashionWidget HeaderSectionView.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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |         `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
   |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
15 |       }
16 |
Build complete! (22.06s)
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.