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 Helper4Swift, reference 1.0.1 (dd28fe), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 20:58:54 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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cs4alhaider/Helper4Swift.git
Reference: 1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/cs4alhaider/Helper4Swift
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at dd28fe2 Converting to SPM
Cloned https://github.com/cs4alhaider/Helper4Swift.git
Revision (git rev-parse @):
dd28fe290b5e5a0229b6d50af5bd30278fea42ec
SUCCESS checkout https://github.com/cs4alhaider/Helper4Swift.git at 1.0.1
========================================
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": "helper4swift",
      "name": "Helper4Swift",
      "url": "https://github.com/cs4alhaider/Helper4Swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Helper4Swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/cs4alhaider/Helper4Swift.git
[1/650] Fetching helper4swift
Fetched https://github.com/cs4alhaider/Helper4Swift.git from cache (0.75s)
Creating working copy for https://github.com/cs4alhaider/Helper4Swift.git
Working copy of https://github.com/cs4alhaider/Helper4Swift.git resolved at 1.0.1 (dd28fe2)
warning: '.resolve-product-dependencies': dependency 'helper4swift' 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/cs4alhaider/Helper4Swift.git
https://github.com/cs4alhaider/Helper4Swift.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Helper4Swift",
  "name" : "Helper4Swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Helper4Swift",
      "targets" : [
        "Helper4Swift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Helper4SwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "Helper4SwiftTests",
      "path" : "Tests/Helper4SwiftTests",
      "sources" : [
        "Helper4SwiftTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Helper4Swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Helper4Swift",
      "module_type" : "SwiftTarget",
      "name" : "Helper4Swift",
      "path" : "Sources/Helper4Swift",
      "product_memberships" : [
        "Helper4Swift"
      ],
      "sources" : [
        "Extensions/Array+Extension.swift",
        "Extensions/Bundle+Extension.swift",
        "Extensions/CALayer+Extension.swift",
        "Extensions/Date+Extension.swift",
        "Extensions/Dictionary+Extension.swift",
        "Extensions/Dispatch+Extension.swift",
        "Extensions/Encodable+Extension.swift",
        "Extensions/Int+Extension.swift",
        "Extensions/JSONDecoder+Extension.swift",
        "Extensions/NSMutableAttributedString+Extension.swift",
        "Extensions/String+Extension.swift",
        "Extensions/TimeInterval+Extension.swift",
        "Extensions/UIApplication+Extension.swift",
        "Extensions/UIButton+Extension.swift",
        "Extensions/UICollectionView+Extension.swift",
        "Extensions/UIColor+Extension.swift",
        "Extensions/UIImage+Extension.swift",
        "Extensions/UIImageView+Extension.swift",
        "Extensions/UIKeyboardType+Extension.swift",
        "Extensions/UILabel+Extension.swift",
        "Extensions/UINavigationController+Extension.swift",
        "Extensions/UIStoryboard+Extension.swift",
        "Extensions/UITabBarController+Extension.swift",
        "Extensions/UITableView+Extension.swift",
        "Extensions/UITextField+Extension.swift",
        "Extensions/UITextView+Extension.swift",
        "Extensions/UIView+Extension.swift",
        "Extensions/UIViewAutoLayout+Extension.swift",
        "Extensions/UIViewController+Extension.swift",
        "Extensions/UIViewController+LocalAuthentication+Extension.swift",
        "Extensions/URL+Extension.swift",
        "Helper4Swift.swift",
        "SubClasses/UIViewFromNib.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/33] Emitting module Helper4Swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var isMainQueue: Bool {
15 |         enum Static {
16 |             static var key: DispatchSpecificKey<Void> = {
   |                        |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |                 let key = DispatchSpecificKey<Void>()
18 |                 DispatchQueue.main.setSpecific(key: key, value: ())
[4/36] Compiling Helper4Swift UIColor+Extension.swift
[5/36] Compiling Helper4Swift UIImage+Extension.swift
[6/36] Compiling Helper4Swift UIImageView+Extension.swift
[7/36] Compiling Helper4Swift UIStoryboard+Extension.swift
[8/36] Compiling Helper4Swift UITabBarController+Extension.swift
[9/36] Compiling Helper4Swift UITableView+Extension.swift
[10/36] Compiling Helper4Swift UIKeyboardType+Extension.swift
[11/36] Compiling Helper4Swift UILabel+Extension.swift
[12/36] Compiling Helper4Swift UINavigationController+Extension.swift
[13/36] Compiling Helper4Swift URL+Extension.swift
[14/36] Compiling Helper4Swift Helper4Swift.swift
[15/36] Compiling Helper4Swift UIViewFromNib.swift
[16/36] Compiling Helper4Swift UITextField+Extension.swift
[17/36] Compiling Helper4Swift UITextView+Extension.swift
[18/36] Compiling Helper4Swift UIView+Extension.swift
[19/36] Compiling Helper4Swift UIViewAutoLayout+Extension.swift
[20/36] Compiling Helper4Swift UIViewController+Extension.swift
[21/36] Compiling Helper4Swift UIViewController+LocalAuthentication+Extension.swift
[22/36] Compiling Helper4Swift UIApplication+Extension.swift
[23/36] Compiling Helper4Swift UIButton+Extension.swift
[24/36] Compiling Helper4Swift UICollectionView+Extension.swift
[25/36] Compiling Helper4Swift Dictionary+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var isMainQueue: Bool {
15 |         enum Static {
16 |             static var key: DispatchSpecificKey<Void> = {
   |                        |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |                 let key = DispatchSpecificKey<Void>()
18 |                 DispatchQueue.main.setSpecific(key: key, value: ())
[26/36] Compiling Helper4Swift Dispatch+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var isMainQueue: Bool {
15 |         enum Static {
16 |             static var key: DispatchSpecificKey<Void> = {
   |                        |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |                 let key = DispatchSpecificKey<Void>()
18 |                 DispatchQueue.main.setSpecific(key: key, value: ())
[27/36] Compiling Helper4Swift Encodable+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var isMainQueue: Bool {
15 |         enum Static {
16 |             static var key: DispatchSpecificKey<Void> = {
   |                        |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |                 let key = DispatchSpecificKey<Void>()
18 |                 DispatchQueue.main.setSpecific(key: key, value: ())
[28/36] Compiling Helper4Swift Int+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/Dispatch+Extension.swift:16:24: warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 |     static var isMainQueue: Bool {
15 |         enum Static {
16 |             static var key: DispatchSpecificKey<Void> = {
   |                        |- warning: static property 'key' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'key' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
   |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |                 let key = DispatchSpecificKey<Void>()
18 |                 DispatchQueue.main.setSpecific(key: key, value: ())
[29/36] Compiling Helper4Swift Array+Extension.swift
[30/36] Compiling Helper4Swift Bundle+Extension.swift
[31/36] Compiling Helper4Swift CALayer+Extension.swift
[32/36] Compiling Helper4Swift Date+Extension.swift
[33/36] Compiling Helper4Swift JSONDecoder+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
22 |                 let data = try Data(contentsOf: url)
23 |                 let downloadedData = try self.decode(type, from: data)
24 |                 DispatchQueue.main.async { completion(downloadedData) }
   |                                            |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
   |                                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 |             } catch {
26 |                 print(error.localizedDescription)
[34/36] Compiling Helper4Swift NSMutableAttributedString+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
22 |                 let data = try Data(contentsOf: url)
23 |                 let downloadedData = try self.decode(type, from: data)
24 |                 DispatchQueue.main.async { completion(downloadedData) }
   |                                            |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
   |                                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 |             } catch {
26 |                 print(error.localizedDescription)
[35/36] Compiling Helper4Swift String+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
22 |                 let data = try Data(contentsOf: url)
23 |                 let downloadedData = try self.decode(type, from: data)
24 |                 DispatchQueue.main.async { completion(downloadedData) }
   |                                            |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
   |                                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 |             } catch {
26 |                 print(error.localizedDescription)
[36/36] Compiling Helper4Swift TimeInterval+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helper4Swift/Extensions/JSONDecoder+Extension.swift:24:44: warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
22 |                 let data = try Data(contentsOf: url)
23 |                 let downloadedData = try self.decode(type, from: data)
24 |                 DispatchQueue.main.async { completion(downloadedData) }
   |                                            |- warning: capture of 'completion' with non-sendable type '(T) -> Void' in a '@Sendable' closure
   |                                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 |             } catch {
26 |                 print(error.localizedDescription)
Build complete! (6.87s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Helper4Swift",
  "name" : "Helper4Swift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "Helper4Swift",
      "targets" : [
        "Helper4Swift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Helper4SwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "Helper4SwiftTests",
      "path" : "Tests/Helper4SwiftTests",
      "sources" : [
        "Helper4SwiftTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Helper4Swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Helper4Swift",
      "module_type" : "SwiftTarget",
      "name" : "Helper4Swift",
      "path" : "Sources/Helper4Swift",
      "product_memberships" : [
        "Helper4Swift"
      ],
      "sources" : [
        "Extensions/Array+Extension.swift",
        "Extensions/Bundle+Extension.swift",
        "Extensions/CALayer+Extension.swift",
        "Extensions/Date+Extension.swift",
        "Extensions/Dictionary+Extension.swift",
        "Extensions/Dispatch+Extension.swift",
        "Extensions/Encodable+Extension.swift",
        "Extensions/Int+Extension.swift",
        "Extensions/JSONDecoder+Extension.swift",
        "Extensions/NSMutableAttributedString+Extension.swift",
        "Extensions/String+Extension.swift",
        "Extensions/TimeInterval+Extension.swift",
        "Extensions/UIApplication+Extension.swift",
        "Extensions/UIButton+Extension.swift",
        "Extensions/UICollectionView+Extension.swift",
        "Extensions/UIColor+Extension.swift",
        "Extensions/UIImage+Extension.swift",
        "Extensions/UIImageView+Extension.swift",
        "Extensions/UIKeyboardType+Extension.swift",
        "Extensions/UILabel+Extension.swift",
        "Extensions/UINavigationController+Extension.swift",
        "Extensions/UIStoryboard+Extension.swift",
        "Extensions/UITabBarController+Extension.swift",
        "Extensions/UITableView+Extension.swift",
        "Extensions/UITextField+Extension.swift",
        "Extensions/UITextView+Extension.swift",
        "Extensions/UIView+Extension.swift",
        "Extensions/UIViewAutoLayout+Extension.swift",
        "Extensions/UIViewController+Extension.swift",
        "Extensions/UIViewController+LocalAuthentication+Extension.swift",
        "Extensions/URL+Extension.swift",
        "Helper4Swift.swift",
        "SubClasses/UIViewFromNib.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.