The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Storybook, reference 2.1.1 (7cd99c), with Swift 6.1 for macOS (SPM) on 29 Jan 2026 04:48:15 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aj-bartocci/Storybook-SwiftUI.git
Reference: 2.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/aj-bartocci/Storybook-SwiftUI
 * tag               2.1.1      -> FETCH_HEAD
HEAD is now at 7cd99c8 make search bar accessible (#9)
Cloned https://github.com/aj-bartocci/Storybook-SwiftUI.git
Revision (git rev-parse @):
7cd99c800761170dfb67eb955465678ee261e04e
SUCCESS checkout https://github.com/aj-bartocci/Storybook-SwiftUI.git at 2.1.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/aj-bartocci/Storybook-SwiftUI.git
https://github.com/aj-bartocci/Storybook-SwiftUI.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Storybook",
  "name" : "Storybook",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "Storybook",
      "targets" : [
        "Storybook"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StorybookTests",
      "module_type" : "SwiftTarget",
      "name" : "StorybookTests",
      "path" : "Tests/StorybookTests",
      "sources" : [
        "StorybookCollectionDataTests.swift"
      ],
      "target_dependencies" : [
        "Storybook"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Storybook",
      "module_type" : "SwiftTarget",
      "name" : "Storybook",
      "path" : "Sources/Storybook",
      "product_memberships" : [
        "Storybook"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Storybook/Resources/figma_icon.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Storybook/Resources/jira_icon.png",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Storybook/Resources/storybook_icon.png",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "PreviewAdditions/ControlledPreview+Utils.swift",
        "PreviewAdditions/ControlledPreview.swift",
        "PreviewAdditions/Controls.swift",
        "PreviewAdditions/Controls/ColorSchemeControl.swift",
        "PreviewAdditions/Controls/ControlConstants.swift",
        "PreviewAdditions/Controls/ControlHelpers.swift",
        "PreviewAdditions/Controls/DocumentationControl.swift",
        "PreviewAdditions/Controls/DynamicTypeControl.swift",
        "PreviewAdditions/Controls/ScreenSizeControl.swift",
        "PreviewAdditions/Controls/TextFieldControl.swift",
        "PreviewAdditions/StorybookControlContext.swift",
        "PreviewAdditions/Utilities/Image+Utils.swift",
        "Storybook.swift",
        "StorybookCollectionData.swift",
        "Views/SearchBar.swift",
        "Views/StorybookCollection.swift",
        "Views/StorybookCollectionMac.swift",
        "Views/StorybookCollectionViewModel.swift",
        "Views/StorybookEntryView.swift",
        "Views/StorybookFolder.swift",
        "Views/StorybookPage.swift",
        "Views/TagsView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/5] Copying jira_icon.png
[0/5] Copying storybook_icon.png
[1/5] Copying figma_icon.png
[3/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/27] Emitting module Storybook
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:7:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | @available(macOS 11, *)
 6 | enum StorybookControlsKey: EnvironmentKey {
 7 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 | }
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(macOS 11, *)
12 | enum StorybookControlsEmbedEnvKey: EnvironmentKey {
13 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:19:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | @available(macOS 11, *)
18 | enum StorybookContextEmbedKey: EnvironmentKey {
19 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:25:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | @available(macOS 11, *)
24 | struct StorybookControlsEmbedPrefKey: PreferenceKey {
25 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     static func reduce(value: inout Bool, nextValue: () -> Bool) {
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:35:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | @available(macOS 11, *)
34 | enum StorybookControlsPrefKey: PreferenceKey {
35 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 |     static func reduce(value: inout [StorybookControlType], nextValue: () -> [StorybookControlType]) {
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ScreenSizeControl.swift:38:20: warning: static property 'largest' is not concurrency-safe because non-'Sendable' type 'ScreenSizeControl.PhoneModel' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | public struct ScreenSizeControl: View {
 28 |
 29 |     public enum PhoneModel: Int {
    |                 `- note: consider making enum 'PhoneModel' conform to the 'Sendable' protocol
 30 |         case current
 31 |         case se
    :
 36 |         case fourteenPro
 37 |
 38 |         static let largest = PhoneModel.fourteenPro
    |                    |- warning: static property 'largest' is not concurrency-safe because non-'Sendable' type 'ScreenSizeControl.PhoneModel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'largest' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 39 |         static let smallest = PhoneModel.current
 40 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ScreenSizeControl.swift:39:20: warning: static property 'smallest' is not concurrency-safe because non-'Sendable' type 'ScreenSizeControl.PhoneModel' may have shared mutable state; this is an error in the Swift 6 language mode
 27 | public struct ScreenSizeControl: View {
 28 |
 29 |     public enum PhoneModel: Int {
    |                 `- note: consider making enum 'PhoneModel' conform to the 'Sendable' protocol
 30 |         case current
 31 |         case se
    :
 37 |
 38 |         static let largest = PhoneModel.fourteenPro
 39 |         static let smallest = PhoneModel.current
    |                    |- warning: static property 'smallest' is not concurrency-safe because non-'Sendable' type 'ScreenSizeControl.PhoneModel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'smallest' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 40 |
 41 |         var title: String {
[7/29] Compiling Storybook TagsView.swift
[8/29] Compiling Storybook resource_bundle_accessor.swift
[9/29] Compiling Storybook Image+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/Storybook.swift:17:9: warning: call to main actor-isolated initializer 'init(embedInNav:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 |
15 |     /// Renders the storybook, alternatively you can use StorybookCollection() direclty
16 |     public static func render() -> some View {
   |                        `- note: add '@MainActor' to make static method 'render()' part of global actor 'MainActor'
17 |         StorybookCollection()
   |         `- warning: call to main actor-isolated initializer 'init(embedInNav:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 |     }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/Views/StorybookCollectionMac.swift:134:12: note: calls to initializer 'init(embedInNav:)' from outside of its actor context are implicitly asynchronous
132 |     let embedInNav: Bool
133 |
134 |     public init(embedInNav: Bool = true) {
    |            |- note: calls to initializer 'init(embedInNav:)' from outside of its actor context are implicitly asynchronous
    |            `- note: main actor isolation inferred from conformance to protocol 'View'
135 |         self.embedInNav = embedInNav
136 |     }
[10/29] Compiling Storybook Storybook.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/Storybook.swift:17:9: warning: call to main actor-isolated initializer 'init(embedInNav:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
14 |
15 |     /// Renders the storybook, alternatively you can use StorybookCollection() direclty
16 |     public static func render() -> some View {
   |                        `- note: add '@MainActor' to make static method 'render()' part of global actor 'MainActor'
17 |         StorybookCollection()
   |         `- warning: call to main actor-isolated initializer 'init(embedInNav:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 |     }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/Views/StorybookCollectionMac.swift:134:12: note: calls to initializer 'init(embedInNav:)' from outside of its actor context are implicitly asynchronous
132 |     let embedInNav: Bool
133 |
134 |     public init(embedInNav: Bool = true) {
    |            |- note: calls to initializer 'init(embedInNav:)' from outside of its actor context are implicitly asynchronous
    |            `- note: main actor isolation inferred from conformance to protocol 'View'
135 |         self.embedInNav = embedInNav
136 |     }
error: compile command failed due to signal 4 (use -v to see invocation)
[11/29] Compiling Storybook StorybookCollectionViewModel.swift
[12/29] Compiling Storybook StorybookEntryView.swift
[13/29] Compiling Storybook ColorSchemeControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:7:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | @available(macOS 11, *)
 6 | enum StorybookControlsKey: EnvironmentKey {
 7 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 | }
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(macOS 11, *)
12 | enum StorybookControlsEmbedEnvKey: EnvironmentKey {
13 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:19:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | @available(macOS 11, *)
18 | enum StorybookContextEmbedKey: EnvironmentKey {
19 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:25:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | @available(macOS 11, *)
24 | struct StorybookControlsEmbedPrefKey: PreferenceKey {
25 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     static func reduce(value: inout Bool, nextValue: () -> Bool) {
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:35:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | @available(macOS 11, *)
34 | enum StorybookControlsPrefKey: PreferenceKey {
35 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 |     static func reduce(value: inout [StorybookControlType], nextValue: () -> [StorybookControlType]) {
[14/29] Compiling Storybook ControlConstants.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:7:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | @available(macOS 11, *)
 6 | enum StorybookControlsKey: EnvironmentKey {
 7 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 | }
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(macOS 11, *)
12 | enum StorybookControlsEmbedEnvKey: EnvironmentKey {
13 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:19:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | @available(macOS 11, *)
18 | enum StorybookContextEmbedKey: EnvironmentKey {
19 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:25:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | @available(macOS 11, *)
24 | struct StorybookControlsEmbedPrefKey: PreferenceKey {
25 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     static func reduce(value: inout Bool, nextValue: () -> Bool) {
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:35:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | @available(macOS 11, *)
34 | enum StorybookControlsPrefKey: PreferenceKey {
35 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 |     static func reduce(value: inout [StorybookControlType], nextValue: () -> [StorybookControlType]) {
[15/29] Compiling Storybook ControlHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:7:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 | @available(macOS 11, *)
 6 | enum StorybookControlsKey: EnvironmentKey {
 7 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 | }
 9 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | @available(macOS 11, *)
12 | enum StorybookControlsEmbedEnvKey: EnvironmentKey {
13 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:19:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 | @available(macOS 11, *)
18 | enum StorybookContextEmbedKey: EnvironmentKey {
19 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:25:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | @available(macOS 11, *)
24 | struct StorybookControlsEmbedPrefKey: PreferenceKey {
25 |     static var defaultValue: Bool = false
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     static func reduce(value: inout Bool, nextValue: () -> Bool) {
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/PreviewAdditions/Controls/ControlHelpers.swift:35:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | @available(macOS 11, *)
34 | enum StorybookControlsPrefKey: PreferenceKey {
35 |     static var defaultValue: [StorybookControlType] = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 |     static func reduce(value: inout [StorybookControlType], nextValue: () -> [StorybookControlType]) {
[16/29] Compiling Storybook StorybookCollectionData.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/StorybookCollectionData.swift:225:34: warning: capture of 'self' with non-sendable type 'StorybookCollectionData?' in a '@Sendable' closure
100 | @available(iOS 13.0, *)
101 | @available(macOS 11, *)
102 | class StorybookCollectionData {
    |       `- note: class 'StorybookCollectionData' does not conform to the 'Sendable' protocol
103 |     private(set) var root = [String: StorybookEntry]()
104 |     private var tags = Set<String>()
    :
223 |         } else {
224 |             DispatchQueue.storybookCollection.async { [weak self] in
225 |                 guard let self = self else {
    |                                  `- warning: capture of 'self' with non-sendable type 'StorybookCollectionData?' in a '@Sendable' closure
226 |                     return
227 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/StorybookCollectionData.swift:271:21: warning: capture of 'completion' with non-sendable type '([StorybookEntry]) -> Void' in a '@Sendable' closure
269 |                 }
270 |                 DispatchQueue.main.async {
271 |                     completion(entries)
    |                     |- warning: capture of 'completion' with non-sendable type '([StorybookEntry]) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
272 |                 }
273 |             }
[17/29] Compiling Storybook SearchBar.swift
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/StorybookCollectionData.swift:225:34: warning: capture of 'self' with non-sendable type 'StorybookCollectionData?' in a '@Sendable' closure
100 | @available(iOS 13.0, *)
101 | @available(macOS 11, *)
102 | class StorybookCollectionData {
    |       `- note: class 'StorybookCollectionData' does not conform to the 'Sendable' protocol
103 |     private(set) var root = [String: StorybookEntry]()
104 |     private var tags = Set<String>()
    :
223 |         } else {
224 |             DispatchQueue.storybookCollection.async { [weak self] in
225 |                 guard let self = self else {
    |                                  `- warning: capture of 'self' with non-sendable type 'StorybookCollectionData?' in a '@Sendable' closure
226 |                     return
227 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/Storybook/StorybookCollectionData.swift:271:21: warning: capture of 'completion' with non-sendable type '([StorybookEntry]) -> Void' in a '@Sendable' closure
269 |                 }
270 |                 DispatchQueue.main.async {
271 |                     completion(entries)
    |                     |- warning: capture of 'completion' with non-sendable type '([StorybookEntry]) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
272 |                 }
273 |             }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/23] Emitting module Storybook
[3/25] Compiling Storybook StorybookCollectionData.swift
[4/25] Compiling Storybook SearchBar.swift
[5/25] Compiling Storybook TagsView.swift
[6/25] Compiling Storybook resource_bundle_accessor.swift
[7/25] Compiling Storybook ControlledPreview+Utils.swift
[8/25] Compiling Storybook ControlledPreview.swift
[9/25] Compiling Storybook Controls.swift
[10/25] Compiling Storybook TextFieldControl.swift
[11/25] Compiling Storybook StorybookControlContext.swift
[12/25] Compiling Storybook DocumentationControl.swift
[13/25] Compiling Storybook DynamicTypeControl.swift
[14/25] Compiling Storybook ScreenSizeControl.swift
[15/25] Compiling Storybook ColorSchemeControl.swift
[16/25] Compiling Storybook ControlConstants.swift
[17/25] Compiling Storybook ControlHelpers.swift
error: compile command failed due to signal 4 (use -v to see invocation)
[18/25] Compiling Storybook StorybookCollectionViewModel.swift
[19/25] Compiling Storybook StorybookEntryView.swift
[20/25] Compiling Storybook Image+Utils.swift
[21/25] Compiling Storybook Storybook.swift
[22/25] Compiling Storybook StorybookFolder.swift
[23/25] Compiling Storybook StorybookPage.swift
BUILD FAILURE 6.1 macosSpm