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 OnboardingKit, reference main (bdfb74), with Swift 6.0 for Linux on 28 Nov 2024 13:47:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Gerzer/OnboardingKit.git
Reference: main
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/Gerzer/OnboardingKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at bdfb743 Update LICENSE
Cloned https://github.com/Gerzer/OnboardingKit.git
Revision (git rev-parse @):
bdfb7437b6e7bacf4a48bfd29a670cf4f387f1e2
SUCCESS checkout https://github.com/Gerzer/OnboardingKit.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Gerzer/OnboardingKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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
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/10] Compiling OnboardingKit OnboardingCondition.swift
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:39:21: warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
 37 | 	public struct ColdLaunch: RegistrableOnboardingCondition {
 38 |
 39 | 		public static let triggers: Set<OnboardingTrigger> = [.launch]
    |                     |- warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'triggers' 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
 40 |
 41 | 		private static let defaultsKey = "ColdLaunchCount"
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingTrigger.swift:9:13: note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
 7 |
 8 | /// Supported triggers for checking onboarding events.
 9 | public enum OnboardingTrigger {
   |             `- note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
10 |
11 | 	case launch, manual
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:43:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 | 		private static let defaultsKey = "ColdLaunchCount"
 42 |
 43 | 		private static var registered = false
    |                      |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'registered' 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
 44 |
 45 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:110:21: warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
108 | 		}
109 |
110 | 		public static let triggers: Set<OnboardingTrigger> = [.launch, .manual]
    |                     |- warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'triggers' 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
111 |
112 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingTrigger.swift:9:13: note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
 7 |
 8 | /// Supported triggers for checking onboarding events.
 9 | public enum OnboardingTrigger {
   |             `- note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
10 |
11 | 	case launch, manual
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:169:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
167 | 	public struct Once: OnboardingCondition {
168 |
169 | 		public static var triggers: Set<OnboardingTrigger> = [.launch]
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
170 |
171 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:196:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 | 	@available(iOS 15, macOS 12, watchOS 8, tvOS 15, *) public struct TimeSinceFirstLaunch: RegistrableOnboardingCondition {
195 |
196 | 		public static var triggers: Set<OnboardingTrigger> = [.launch, .manual]
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
197 |
198 | 		private static let defaultsKey = "FirstLaunch"
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:200:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
198 | 		private static let defaultsKey = "FirstLaunch"
199 |
200 | 		private static var registered = false
    |                      |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'registered' 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
201 |
202 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:242:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
240 | 	@available(iOS 15, macOS 12, watchOS 8, tvOS 15, *) public struct AfterDate: OnboardingCondition {
241 |
242 | 		public static var triggers: Set<OnboardingTrigger> = [.launch, .manual]
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
243 |
244 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:265:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | 	public struct Conjunction: RegistrableOnboardingCondition {
264 |
265 | 		public static var triggers: Set<OnboardingTrigger> = .all
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
266 |
267 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:298:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
296 | 	public struct Disjunction: RegistrableOnboardingCondition {
297 |
298 | 		public static var triggers: Set<OnboardingTrigger> = .all
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
299 |
300 | 		public var isSatisfied: Bool {
[4/10] Emitting module OnboardingKit
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:39:21: warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
 37 | 	public struct ColdLaunch: RegistrableOnboardingCondition {
 38 |
 39 | 		public static let triggers: Set<OnboardingTrigger> = [.launch]
    |                     |- warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'triggers' 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
 40 |
 41 | 		private static let defaultsKey = "ColdLaunchCount"
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingTrigger.swift:9:13: note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
 7 |
 8 | /// Supported triggers for checking onboarding events.
 9 | public enum OnboardingTrigger {
   |             `- note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
10 |
11 | 	case launch, manual
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:43:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 41 | 		private static let defaultsKey = "ColdLaunchCount"
 42 |
 43 | 		private static var registered = false
    |                      |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'registered' 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
 44 |
 45 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:110:21: warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
108 | 		}
109 |
110 | 		public static let triggers: Set<OnboardingTrigger> = [.launch, .manual]
    |                     |- warning: static property 'triggers' is not concurrency-safe because non-'Sendable' type 'Set<OnboardingTrigger>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'triggers' 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
111 |
112 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingTrigger.swift:9:13: note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
 7 |
 8 | /// Supported triggers for checking onboarding events.
 9 | public enum OnboardingTrigger {
   |             `- note: consider making enum 'OnboardingTrigger' conform to the 'Sendable' protocol
10 |
11 | 	case launch, manual
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:169:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
167 | 	public struct Once: OnboardingCondition {
168 |
169 | 		public static var triggers: Set<OnboardingTrigger> = [.launch]
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
170 |
171 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:196:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 | 	@available(iOS 15, macOS 12, watchOS 8, tvOS 15, *) public struct TimeSinceFirstLaunch: RegistrableOnboardingCondition {
195 |
196 | 		public static var triggers: Set<OnboardingTrigger> = [.launch, .manual]
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
197 |
198 | 		private static let defaultsKey = "FirstLaunch"
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:200:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
198 | 		private static let defaultsKey = "FirstLaunch"
199 |
200 | 		private static var registered = false
    |                      |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                      |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
    |                      |- note: annotate 'registered' 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
201 |
202 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:242:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
240 | 	@available(iOS 15, macOS 12, watchOS 8, tvOS 15, *) public struct AfterDate: OnboardingCondition {
241 |
242 | 		public static var triggers: Set<OnboardingTrigger> = [.launch, .manual]
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
243 |
244 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:265:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
263 | 	public struct Conjunction: RegistrableOnboardingCondition {
264 |
265 | 		public static var triggers: Set<OnboardingTrigger> = .all
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
266 |
267 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:298:21: warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
296 | 	public struct Disjunction: RegistrableOnboardingCondition {
297 |
298 | 		public static var triggers: Set<OnboardingTrigger> = .all
    |                     |- warning: static property 'triggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'triggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'triggers' 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
299 |
300 | 		public var isSatisfied: Bool {
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingFlags.swift:11:34: error: cannot find type 'ObservableObject' in scope
 9 |
10 | /// The protocol to which all classes instances of which you want to use as flags objects must conform.
11 | public protocol OnboardingFlags: ObservableObject { }
   |                                  `- error: cannot find type 'ObservableObject' in scope
12 |
13 | /// A flags type that supports being automatically initialized by ``OnboardingManager``.
[5/10] Compiling OnboardingKit OnboardingEvent.swift
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingFlags.swift:11:34: error: cannot find type 'ObservableObject' in scope
 9 |
10 | /// The protocol to which all classes instances of which you want to use as flags objects must conform.
11 | public protocol OnboardingFlags: ObservableObject { }
   |                                  `- error: cannot find type 'ObservableObject' in scope
12 |
13 | /// A flags type that supports being automatically initialized by ``OnboardingManager``.
[6/10] Compiling OnboardingKit OnboardingFlags.swift
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingFlags.swift:11:34: error: cannot find type 'ObservableObject' in scope
 9 |
10 | /// The protocol to which all classes instances of which you want to use as flags objects must conform.
11 | public protocol OnboardingFlags: ObservableObject { }
   |                                  `- error: cannot find type 'ObservableObject' in scope
12 |
13 | /// A flags type that supports being automatically initialized by ``OnboardingManager``.
[7/10] Compiling OnboardingKit OptionalProtocol.swift
[8/10] Compiling OnboardingKit OnboardingTrigger.swift
[9/10] Compiling OnboardingKit OnboardingKit.swift
[10/10] Compiling OnboardingKit OnboardingManager.swift
/host/spi-builder-workspace/Sources/OnboardingKit/OnboardingFlags.swift:11:34: error: cannot find type 'ObservableObject' in scope
 9 |
10 | /// The protocol to which all classes instances of which you want to use as flags objects must conform.
11 | public protocol OnboardingFlags: ObservableObject { }
   |                                  `- error: cannot find type 'ObservableObject' in scope
12 |
13 | /// A flags type that supports being automatically initialized by ``OnboardingManager``.
BUILD FAILURE 6.0 linux