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

Swift 6 data race errors: 9

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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.58.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
========================================
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": "onboardingkit",
      "name": "OnboardingKit",
      "url": "https://github.com/Gerzer/OnboardingKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OnboardingKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Gerzer/OnboardingKit.git
[1/242] Fetching onboardingkit
Fetched https://github.com/Gerzer/OnboardingKit.git from cache (1.69s)
Creating working copy for https://github.com/Gerzer/OnboardingKit.git
Working copy of https://github.com/Gerzer/OnboardingKit.git resolved at main (bdfb743)
warning: '.resolve-product-dependencies': dependency 'onboardingkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Gerzer/OnboardingKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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--7754E27361AE5C74.txt
[3/10] Compiling OnboardingKit OptionalProtocol.swift
[4/10] Compiling OnboardingKit OnboardingTrigger.swift
[5/10] Compiling OnboardingKit OnboardingFlags.swift
[6/10] Compiling OnboardingKit OnboardingKit.swift
[7/10] Compiling OnboardingKit OnboardingEvent.swift
[8/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 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 {
/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 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 {
/Users/admin/builder/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"
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
[9/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 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 {
/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 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 {
/Users/admin/builder/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"
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
[10/10] Compiling OnboardingKit OnboardingManager.swift
Build complete! (7.94s)
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.