This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 OnboardingKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 9

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Gerzer/OnboardingKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Gerzer/OnboardingKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/10] Compiling OnboardingKit OnboardingKit.swift
[4/10] Compiling OnboardingKit OnboardingTrigger.swift
[5/10] Compiling OnboardingKit OptionalProtocol.swift
[6/10] Compiling OnboardingKit OnboardingFlags.swift
[7/10] Emitting module OnboardingKit
/Users/admin/builder/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"
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:43:22: warning: static property 'registered' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:169:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:196:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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"
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:200:22: warning: static property 'registered' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:242:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:265:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:298:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
[8/10] Compiling OnboardingKit OnboardingManager.swift
[9/10] Compiling OnboardingKit OnboardingEvent.swift
[10/10] Compiling OnboardingKit OnboardingCondition.swift
/Users/admin/builder/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"
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:43:22: warning: static property 'registered' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:169:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:196:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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"
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:200:22: warning: static property 'registered' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:242:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:265:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
/Users/admin/builder/spi-builder-workspace/Sources/OnboardingKit/OnboardingCondition.swift:298:21: warning: static property 'triggers' is not concurrency-safe because it is non-isolated 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 non-isolated 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 {
Build complete! (18.63s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OnboardingKit",
  "name" : "OnboardingKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "OnboardingKit",
      "targets" : [
        "OnboardingKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OnboardingKit",
      "module_type" : "SwiftTarget",
      "name" : "OnboardingKit",
      "path" : "Sources/OnboardingKit",
      "product_memberships" : [
        "OnboardingKit"
      ],
      "sources" : [
        "OnboardingCondition.swift",
        "OnboardingEvent.swift",
        "OnboardingFlags.swift",
        "OnboardingKit.swift",
        "OnboardingManager.swift",
        "OnboardingTrigger.swift",
        "OptionalProtocol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.