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

Swift 6 data race errors: 3

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/jasonnam/AStack.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jasonnam/AStack
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7dced75 Merge pull request #4 from zntfdr/sizeClass
Cloned https://github.com/jasonnam/AStack.git
Revision (git rev-parse @):
7dced752f1ef4667f3d8e0c52f8475be38017900
SUCCESS checkout https://github.com/jasonnam/AStack.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/jasonnam/AStack.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 AStack UserInterfaceSizeClass.swift
/Users/admin/builder/spi-builder-workspace/Sources/AStack/UserInterfaceSizeClass.swift:25:23: warning: expected member name or constructor call after type name; this will be an error in Swift 6
23 | extension EnvironmentValues {
24 |   var horizontalSizeClass: UserInterfaceSizeClass {
25 |     get { return self[HorizontalSizeClassEnvironmentKey] }
   |                       |- warning: expected member name or constructor call after type name; this will be an error in Swift 6
   |                       |- note: add arguments after the type to construct a value of the type
   |                       `- note: use '.self' to reference the type object
26 |     set { self[HorizontalSizeClassEnvironmentKey] = newValue }
27 |   }
/Users/admin/builder/spi-builder-workspace/Sources/AStack/UserInterfaceSizeClass.swift:26:16: warning: expected member name or constructor call after type name; this will be an error in Swift 6
24 |   var horizontalSizeClass: UserInterfaceSizeClass {
25 |     get { return self[HorizontalSizeClassEnvironmentKey] }
26 |     set { self[HorizontalSizeClassEnvironmentKey] = newValue }
   |                |- warning: expected member name or constructor call after type name; this will be an error in Swift 6
   |                |- note: add arguments after the type to construct a value of the type
   |                `- note: use '.self' to reference the type object
27 |   }
28 |   var verticalSizeClass: UserInterfaceSizeClass {
/Users/admin/builder/spi-builder-workspace/Sources/AStack/UserInterfaceSizeClass.swift:29:23: warning: expected member name or constructor call after type name; this will be an error in Swift 6
27 |   }
28 |   var verticalSizeClass: UserInterfaceSizeClass {
29 |     get { return self[VerticalSizeClassEnvironmentKey] }
   |                       |- warning: expected member name or constructor call after type name; this will be an error in Swift 6
   |                       |- note: add arguments after the type to construct a value of the type
   |                       `- note: use '.self' to reference the type object
30 |     set { self[VerticalSizeClassEnvironmentKey] = newValue }
31 |   }
/Users/admin/builder/spi-builder-workspace/Sources/AStack/UserInterfaceSizeClass.swift:30:16: warning: expected member name or constructor call after type name; this will be an error in Swift 6
28 |   var verticalSizeClass: UserInterfaceSizeClass {
29 |     get { return self[VerticalSizeClassEnvironmentKey] }
30 |     set { self[VerticalSizeClassEnvironmentKey] = newValue }
   |                |- warning: expected member name or constructor call after type name; this will be an error in Swift 6
   |                |- note: add arguments after the type to construct a value of the type
   |                `- note: use '.self' to reference the type object
31 |   }
32 | }
[4/10] Compiling AStack ObservingOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:13:21: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
11 |
12 |   /// Observes the `.sizeCategory` environment value.
13 |   public static let sizeCategory = ObservingOptions(rawValue: 1 << 0)
   |                     |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeCategory' 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 |
15 |   /// Observes the `.sizeClass` environment value.
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:18:21: warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
16 |   ///
17 |   /// Either `.horizontalSizeClass` or `.verticalSizeClass`, based on the stack.
18 |   public static let sizeClass = ObservingOptions(rawValue: 1 << 1)
   |                     |- warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeClass' 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
19 | }
20 |
[5/10] Compiling AStack ContentSizeCategory.swift
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ContentSizeCategory.swift:14:22: warning: static property 'accessibilityCategories' is not concurrency-safe because non-'Sendable' type 'Set<ContentSizeCategory>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |   /// A set containing all accessibility content size categories.
14 |   private static let accessibilityCategories: Set<ContentSizeCategory> = [
   |                      |- warning: static property 'accessibilityCategories' is not concurrency-safe because non-'Sendable' type 'Set<ContentSizeCategory>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: annotate 'accessibilityCategories' 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
15 |     .accessibilityMedium,
16 |     .accessibilityLarge,
Swift.Set:1:23: note: generic struct 'Set' does not conform to the 'Sendable' protocol
1 | @frozen public struct Set<Element> where Element : Hashable {
  |                       `- note: generic struct 'Set' does not conform to the 'Sendable' protocol
2 |     public init(minimumCapacity: Int)
3 |     @inlinable public init(_immutableCocoaSet: __owned AnyObject)
[6/10] Compiling AStack LazyAVStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:13:21: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
11 |
12 |   /// Observes the `.sizeCategory` environment value.
13 |   public static let sizeCategory = ObservingOptions(rawValue: 1 << 0)
   |                     |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeCategory' 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 |
15 |   /// Observes the `.sizeClass` environment value.
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:18:21: warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
16 |   ///
17 |   /// Either `.horizontalSizeClass` or `.verticalSizeClass`, based on the stack.
18 |   public static let sizeClass = ObservingOptions(rawValue: 1 << 1)
   |                     |- warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeClass' 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
19 | }
20 |
[7/10] Compiling AStack AVStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:13:21: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
11 |
12 |   /// Observes the `.sizeCategory` environment value.
13 |   public static let sizeCategory = ObservingOptions(rawValue: 1 << 0)
   |                     |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeCategory' 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 |
15 |   /// Observes the `.sizeClass` environment value.
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:18:21: warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
16 |   ///
17 |   /// Either `.horizontalSizeClass` or `.verticalSizeClass`, based on the stack.
18 |   public static let sizeClass = ObservingOptions(rawValue: 1 << 1)
   |                     |- warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeClass' 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
19 | }
20 |
[8/10] Compiling AStack AHStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:13:21: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
11 |
12 |   /// Observes the `.sizeCategory` environment value.
13 |   public static let sizeCategory = ObservingOptions(rawValue: 1 << 0)
   |                     |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeCategory' 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 |
15 |   /// Observes the `.sizeClass` environment value.
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:18:21: warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
16 |   ///
17 |   /// Either `.horizontalSizeClass` or `.verticalSizeClass`, based on the stack.
18 |   public static let sizeClass = ObservingOptions(rawValue: 1 << 1)
   |                     |- warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeClass' 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
19 | }
20 |
[9/10] Emitting module AStack
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:13:21: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
11 |
12 |   /// Observes the `.sizeCategory` environment value.
13 |   public static let sizeCategory = ObservingOptions(rawValue: 1 << 0)
   |                     |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeCategory' 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 |
15 |   /// Observes the `.sizeClass` environment value.
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ContentSizeCategory.swift:14:22: warning: static property 'accessibilityCategories' is not concurrency-safe because non-'Sendable' type 'Set<ContentSizeCategory>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 |   /// A set containing all accessibility content size categories.
14 |   private static let accessibilityCategories: Set<ContentSizeCategory> = [
   |                      |- warning: static property 'accessibilityCategories' is not concurrency-safe because non-'Sendable' type 'Set<ContentSizeCategory>' may have shared mutable state; this is an error in the Swift 6 language mode
   |                      |- note: annotate 'accessibilityCategories' 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
15 |     .accessibilityMedium,
16 |     .accessibilityLarge,
Swift.Set:1:23: note: generic struct 'Set' does not conform to the 'Sendable' protocol
1 | @frozen public struct Set<Element> where Element : Hashable {
  |                       `- note: generic struct 'Set' does not conform to the 'Sendable' protocol
2 |     public init(minimumCapacity: Int)
3 |     @inlinable public init(_immutableCocoaSet: __owned AnyObject)
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:18:21: warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
16 |   ///
17 |   /// Either `.horizontalSizeClass` or `.verticalSizeClass`, based on the stack.
18 |   public static let sizeClass = ObservingOptions(rawValue: 1 << 1)
   |                     |- warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeClass' 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
19 | }
20 |
[10/10] Compiling AStack LazyAHStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:13:21: warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
11 |
12 |   /// Observes the `.sizeCategory` environment value.
13 |   public static let sizeCategory = ObservingOptions(rawValue: 1 << 0)
   |                     |- warning: static property 'sizeCategory' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeCategory' 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 |
15 |   /// Observes the `.sizeClass` environment value.
/Users/admin/builder/spi-builder-workspace/Sources/AStack/ObservingOptions.swift:18:21: warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// Options that enable AStack to determine when to adapt/switch axis.
 4 | public struct ObservingOptions: OptionSet {
   |               `- note: consider making struct 'ObservingOptions' conform to the 'Sendable' protocol
 5 |   public let rawValue: Int
 6 |
   :
16 |   ///
17 |   /// Either `.horizontalSizeClass` or `.verticalSizeClass`, based on the stack.
18 |   public static let sizeClass = ObservingOptions(rawValue: 1 << 1)
   |                     |- warning: static property 'sizeClass' is not concurrency-safe because non-'Sendable' type 'ObservingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'sizeClass' 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
19 | }
20 |
Build complete! (32.55s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AStack",
  "name" : "AStack",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "AStack",
      "targets" : [
        "AStack"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AStack",
      "module_type" : "SwiftTarget",
      "name" : "AStack",
      "path" : "Sources/AStack",
      "product_memberships" : [
        "AStack"
      ],
      "sources" : [
        "AHStack.swift",
        "AVStack.swift",
        "ContentSizeCategory.swift",
        "LazyAHStack.swift",
        "LazyAVStack.swift",
        "ObservingOptions.swift",
        "UserInterfaceSizeClass.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.