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

Failed to build Mechanica, reference master (076c43), with Swift 6.0 for Linux on 2 Nov 2024 12:42:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alemar11/Mechanica.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/alemar11/Mechanica
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 076c436 Bump cocoapods-downloader from 1.1.3 to 1.6.3 (#72)
Cloned https://github.com/alemar11/Mechanica.git
Revision (git rev-parse @):
076c436ae3ec24af1861b656c0f660d1ca65426f
SUCCESS checkout https://github.com/alemar11/Mechanica.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alemar11/Mechanica.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/BundleInfoTests.swift': File not found.
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/33] Emitting module Mechanica
/host/spi-builder-workspace/Sources/Foundation/DispatchQueue+Utils.swift:13:18: 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
11 |   static var isMainQueue: Bool {
12 |     enum Static {
13 |       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: annotate 'key' 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
14 |         let key = DispatchSpecificKey<Void>()
15 |         DispatchQueue.main.setSpecific(key: key, value: ())
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:10:21: warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |   ///
 9 |   /// An always `true` NSPredicate.
10 |   public static let `true` = NSPredicate(value: true)
   |                     |- warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'true' 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
11 |
12 |   /// **Mechanica**
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:15:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// An always `false` NSPredicate.
15 |   public static let `false` = NSPredicate(value: false)
   |                     |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'false' 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
16 | }
17 |
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Foundation/URLRequest+Utils.swift:5:11: error: cannot find type 'URLRequest' in scope
  3 | import Foundation
  4 |
  5 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
  6 |   /// **Mechanica**
  7 |   ///
[4/37] Compiling Mechanica Sequence+Utils.swift
[5/37] Compiling Mechanica SignedInteger.swift
[6/37] Compiling Mechanica String+Utils.swift
[7/37] Compiling Mechanica Unicode+Utils.swift
[8/37] Compiling Mechanica FloatingPoint+Utils.swift
[9/37] Compiling Mechanica Operators.swift
[10/37] Compiling Mechanica Optional+Utils.swift
[11/37] Compiling Mechanica RangeReplaceableCollection+Utils.swift
[12/37] Compiling Mechanica UserDefaults+Utils.swift
[13/37] Compiling Mechanica BinaryFloatingPoint+Utils.swift
[14/37] Compiling Mechanica BinaryInteger+Utils.swift
[15/37] Compiling Mechanica Bool+Utils.swift
[16/37] Compiling Mechanica Stat+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/URLRequest+Utils.swift:5:11: error: cannot find type 'URLRequest' in scope
  3 | import Foundation
  4 |
  5 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
  6 |   /// **Mechanica**
  7 |   ///
[17/37] Compiling Mechanica String+FoundationUtils.swift
/host/spi-builder-workspace/Sources/Foundation/URLRequest+Utils.swift:5:11: error: cannot find type 'URLRequest' in scope
  3 | import Foundation
  4 |
  5 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
  6 |   /// **Mechanica**
  7 |   ///
[18/37] Compiling Mechanica URL+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/URLRequest+Utils.swift:5:11: error: cannot find type 'URLRequest' in scope
  3 | import Foundation
  4 |
  5 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
  6 |   /// **Mechanica**
  7 |   ///
[19/37] Compiling Mechanica URLRequest+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/URLRequest+Utils.swift:5:11: error: cannot find type 'URLRequest' in scope
  3 | import Foundation
  4 |
  5 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
  6 |   /// **Mechanica**
  7 |   ///
[20/37] Compiling Mechanica Character+Utils.swift
[21/37] Compiling Mechanica Collection+Utils.swift
[22/37] Compiling Mechanica Dictionary+Utils.swift
[23/37] Compiling Mechanica FixedWidthInteger+Utils.swift
[24/37] Compiling Mechanica NSMutableAttributedString+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:10:21: warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |   ///
 9 |   /// An always `true` NSPredicate.
10 |   public static let `true` = NSPredicate(value: true)
   |                     |- warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'true' 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
11 |
12 |   /// **Mechanica**
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:15:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// An always `false` NSPredicate.
15 |   public static let `false` = NSPredicate(value: false)
   |                     |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'false' 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
16 | }
17 |
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
[25/37] Compiling Mechanica NSObjectProtocol+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:10:21: warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |   ///
 9 |   /// An always `true` NSPredicate.
10 |   public static let `true` = NSPredicate(value: true)
   |                     |- warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'true' 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
11 |
12 |   /// **Mechanica**
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:15:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// An always `false` NSPredicate.
15 |   public static let `false` = NSPredicate(value: false)
   |                     |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'false' 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
16 | }
17 |
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
[26/37] Compiling Mechanica NSPredicate+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:10:21: warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |   ///
 9 |   /// An always `true` NSPredicate.
10 |   public static let `true` = NSPredicate(value: true)
   |                     |- warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'true' 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
11 |
12 |   /// **Mechanica**
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:15:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// An always `false` NSPredicate.
15 |   public static let `false` = NSPredicate(value: false)
   |                     |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'false' 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
16 | }
17 |
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
[27/37] Compiling Mechanica ProcessInfo+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:10:21: warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |   ///
 9 |   /// An always `true` NSPredicate.
10 |   public static let `true` = NSPredicate(value: true)
   |                     |- warning: static property 'true' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'true' 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
11 |
12 |   /// **Mechanica**
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
/host/spi-builder-workspace/Sources/Foundation/NSPredicate+Utils.swift:15:21: warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
13 |   ///
14 |   /// An always `false` NSPredicate.
15 |   public static let `false` = NSPredicate(value: false)
   |                     |- warning: static property 'false' is not concurrency-safe because non-'Sendable' type 'NSPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'false' 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
16 | }
17 |
Foundation.NSPredicate:1:12: note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 1 | open class NSPredicate : NSObject, NSCopying {
   |            `- note: class 'NSPredicate' does not conform to the 'Sendable' protocol
 2 |     override open func copy() -> Any
 3 |     open func copy(with zone: NSZone? = nil) -> Any
[28/37] Compiling Mechanica DispatchQueue+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/DispatchQueue+Utils.swift:13:18: 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
11 |   static var isMainQueue: Bool {
12 |     enum Static {
13 |       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: annotate 'key' 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
14 |         let key = DispatchSpecificKey<Void>()
15 |         DispatchQueue.main.setSpecific(key: key, value: ())
[29/37] Compiling Mechanica FileManager+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/DispatchQueue+Utils.swift:13:18: 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
11 |   static var isMainQueue: Bool {
12 |     enum Static {
13 |       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: annotate 'key' 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
14 |         let key = DispatchSpecificKey<Void>()
15 |         DispatchQueue.main.setSpecific(key: key, value: ())
[30/37] Compiling Mechanica FoundationUtils.swift
/host/spi-builder-workspace/Sources/Foundation/DispatchQueue+Utils.swift:13:18: 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
11 |   static var isMainQueue: Bool {
12 |     enum Static {
13 |       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: annotate 'key' 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
14 |         let key = DispatchSpecificKey<Void>()
15 |         DispatchQueue.main.setSpecific(key: key, value: ())
[31/37] Compiling Mechanica Locale.swift
/host/spi-builder-workspace/Sources/Foundation/DispatchQueue+Utils.swift:13:18: 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
11 |   static var isMainQueue: Bool {
12 |     enum Static {
13 |       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: annotate 'key' 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
14 |         let key = DispatchSpecificKey<Void>()
15 |         DispatchQueue.main.setSpecific(key: key, value: ())
[32/37] Compiling Mechanica NSAttributedString+Utils.swift
/host/spi-builder-workspace/Sources/Foundation/DispatchQueue+Utils.swift:13:18: 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
11 |   static var isMainQueue: Bool {
12 |     enum Static {
13 |       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: annotate 'key' 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
14 |         let key = DispatchSpecificKey<Void>()
15 |         DispatchQueue.main.setSpecific(key: key, value: ())
[33/37] Compiling Mechanica Bundle+Info.swift
[34/37] Compiling Mechanica Calendar+Utils.swift
[35/37] Compiling Mechanica Data+Utils.swift
[36/37] Compiling Mechanica Date+Utils.swift
[37/37] Compiling Mechanica Dictionary+FoundationUtils.swift
BUILD FAILURE 6.0 linux