The Swift Package Index logo.Swift Package Index

Build Information

Successful build of BeautifulMermaidSwift, reference 1.0.4 (6a23a2), with Swift 6.4 for macOS (SPM) on 25 Sep 2026 02:09:23 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukilabs/beautiful-mermaid-swift.git
Reference: 1.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lukilabs/beautiful-mermaid-swift
 * tag               1.0.4      -> FETCH_HEAD
HEAD is now at 6a23a29 Fix xychart crashes from OOB category access and non-finite Int conversions
Cloned https://github.com/lukilabs/beautiful-mermaid-swift.git
Revision (git rev-parse @):
6a23a29e91af8f5b3e9fc09945332ca193bd69ec
SUCCESS checkout https://github.com/lukilabs/beautiful-mermaid-swift.git at 1.0.4
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/lukilabs/beautiful-mermaid-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 154]
[Planning deferred tasks]
[43 / 74] BeautifulMermaidSwift_MermaidPlayground
[48 / 74]
[49 / 75] ElkSwift
[58 / 129]
[61 / 129]
[67 / 129]
[69 / 129]
[73 / 129]
[75 / 129]
[78 / 129]
[82 / 129]
[84 / 129]
[85 / 129]
[96 / 129] ElkSwift
[97 / 129] ElkSwift
[109 / 129] ElkSwift
[110 / 130] ElkSwift
[115 / 171]
[122 / 171]
[128 / 171]
[133 / 171]
[136 / 171]
[138 / 171]
[141 / 171] ElkSwift
[141 / 171]
[153 / 171] BeautifulMermaid
[163 / 172] BeautifulMermaid
[163 / 172] MermaidPlayground-product
[171 / 183] MermaidPlayground-product
[173 / 183] MermaidPlayground-product
[175 / 183] MermaidPlayground-product
[180 / 183] BeautifulMermaid-product
[180 / 183] MermaidPlayground-product
Build complete! (17.16 sec)
Fetching https://github.com/lukilabs/elk-swift
[1/673] Fetching elk-swift
Fetched https://github.com/lukilabs/elk-swift (1.15s)
Computing version for https://github.com/lukilabs/elk-swift
Computed https://github.com/lukilabs/elk-swift at 1.0.2 (1.71s)
Creating working copy for https://github.com/lukilabs/elk-swift
Working copy of https://github.com/lukilabs/elk-swift resolved at 1.0.2
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Mermaid/src_elk_instance.swift:32:27: warning: no calls to throwing functions occur within 'try' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
 30 |         }
 31 |         do {
 32 |             let created = try ELK()
    |                           `- warning: no calls to throwing functions occur within 'try' expression [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
 33 |             sharedInstance = created
 34 |             return created
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Mermaid/src_elk_instance.swift:35:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 33 |             sharedInstance = created
 34 |             return created
 35 |         } catch {
    |           `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
 36 |             throw _ElkInstanceAdapterError.elkUnavailable(error.localizedDescription)
 37 |         }
[#UnnecessaryEffectMarker]: <https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker>
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Render/RenderConfig.swift:108:56: warning: cannot use struct 'Weight' here; 'AppKit' was not imported by this file
106 |     // MARK: - Font Helpers
107 |
108 |     public func fontWeight(from weight: Int) -> BMFont.Weight {
    |                                                        `- warning: cannot use struct 'Weight' here; 'AppKit' was not imported by this file
109 |         switch weight {
110 |         case 100: return .ultraLight
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:58:17: note: struct declared here
 56 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
 57 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
 58 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
    |                 `- note: struct declared here
 59 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
 60 | typedef NSString * NSFontDescriptorSystemDesign NS_TYPED_ENUM;
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Render/RenderAdapters.swift:9:13: warning: variable 'sourceArrow' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 7 |     static func parse(from styleString: String, hasArrowStart: Bool, hasArrowEnd: Bool) -> EdgeStyle {
 8 |         var lineStyle: LineStyle = .solid
 9 |         var sourceArrow: ArrowHead = hasArrowStart ? .arrow : .none
   |             `- warning: variable 'sourceArrow' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
10 |         var targetArrow: ArrowHead = hasArrowEnd ? .arrow : .none
11 |
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Render/RenderAdapters.swift:10:13: warning: variable 'targetArrow' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
 8 |         var lineStyle: LineStyle = .solid
 9 |         var sourceArrow: ArrowHead = hasArrowStart ? .arrow : .none
10 |         var targetArrow: ArrowHead = hasArrowEnd ? .arrow : .none
   |             `- warning: variable 'targetArrow' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
11 |
12 |         switch styleString.lowercased() {
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Render/RenderConfig.swift:108:56: warning: cannot use struct 'Weight' here; 'AppKit' was not imported by this file
106 |     // MARK: - Font Helpers
107 |
108 |     public func fontWeight(from weight: Int) -> BMFont.Weight {
    |                                                        `- warning: cannot use struct 'Weight' here; 'AppKit' was not imported by this file
109 |         switch weight {
110 |         case 100: return .ultraLight
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:58:17: note: struct declared here
 56 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
 57 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
 58 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
    |                 `- note: struct declared here
 59 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
 60 | typedef NSString * NSFontDescriptorSystemDesign NS_TYPED_ENUM;
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/BeautifulMermaid.swift:123:19: warning: conformance of 'NSImage' to 'Sendable' is only available in macOS 14.0 or newer
 78 | }
 79 |
 80 | extension MermaidRenderer {
    | `- note: add '@available' attribute to enclosing extension
 81 |     public static let version = "0.1.1"
 82 |     public static let supportedDiagramTypes: [DiagramType] = DiagramType.allCases
    :
116 |
117 |     /// Render a Mermaid diagram to a native image asynchronously.
118 |     public static func renderImageAsync(
    |                        `- note: add '@available' attribute to enclosing static method
119 |         source: String,
120 |         theme: DiagramTheme = .default,
121 |         scale: CGFloat = 2.0
122 |     ) async throws -> BMImage? {
123 |         try await Task.detached {
    |                   |- warning: conformance of 'NSImage' to 'Sendable' is only available in macOS 14.0 or newer
    |                   `- note: add 'if #available' version check
124 |             try renderImage(source: source, theme: theme, scale: scale)
125 |         }.value
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/BeautifulMermaid.swift:123:24: warning: conformance of 'NSImage' to 'Sendable' is only available in macOS 14.0 or newer
 78 | }
 79 |
 80 | extension MermaidRenderer {
    | `- note: add '@available' attribute to enclosing extension
 81 |     public static let version = "0.1.1"
 82 |     public static let supportedDiagramTypes: [DiagramType] = DiagramType.allCases
    :
116 |
117 |     /// Render a Mermaid diagram to a native image asynchronously.
118 |     public static func renderImageAsync(
    |                        `- note: add '@available' attribute to enclosing static method
119 |         source: String,
120 |         theme: DiagramTheme = .default,
121 |         scale: CGFloat = 2.0
122 |     ) async throws -> BMImage? {
123 |         try await Task.detached {
    |                        |- warning: conformance of 'NSImage' to 'Sendable' is only available in macOS 14.0 or newer
    |                        `- note: add 'if #available' version check
124 |             try renderImage(source: source, theme: theme, scale: scale)
125 |         }.value
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/BeautifulMermaid.swift:125:11: warning: conformance of 'NSImage' to 'Sendable' is only available in macOS 14.0 or newer
 78 | }
 79 |
 80 | extension MermaidRenderer {
    | `- note: add '@available' attribute to enclosing extension
 81 |     public static let version = "0.1.1"
 82 |     public static let supportedDiagramTypes: [DiagramType] = DiagramType.allCases
    :
116 |
117 |     /// Render a Mermaid diagram to a native image asynchronously.
118 |     public static func renderImageAsync(
    |                        `- note: add '@available' attribute to enclosing static method
119 |         source: String,
120 |         theme: DiagramTheme = .default,
    :
123 |         try await Task.detached {
124 |             try renderImage(source: source, theme: theme, scale: scale)
125 |         }.value
    |           |- warning: conformance of 'NSImage' to 'Sendable' is only available in macOS 14.0 or newer
    |           `- note: add 'if #available' version check
126 |     }
127 |
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Mermaid/src_layout.swift:336:34: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
 334 |         }
 335 |
 336 |         let subLabel = sub.label ?? sub.id
     |                                  `- warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
 337 |         var result: [String: Any] = [
 338 |             "id": sub.id,
/Users/admin/builder/spi-builder-workspace/Sources/BeautifulMermaidSwift/Mermaid/src_layout.swift:1378:34: warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
1376 |         }
1377 |
1378 |         let subLabel = sub.label ?? sub.id
     |                                  `- warning: left side of nil coalescing operator '??' has non-optional type 'String', so the right side is never used
1379 |         var result: [String: Any] = [
1380 |             "id": sub.id,
Build complete.
{
  "dependencies" : [
    {
      "identity" : "elk-swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/lukilabs/elk-swift"
    }
  ],
  "manifest_display_name" : "BeautifulMermaidSwift",
  "name" : "BeautifulMermaidSwift",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "BeautifulMermaid",
      "targets" : [
        "BeautifulMermaid"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MermaidPlayground",
      "targets" : [
        "MermaidPlayground"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MermaidPlayground",
      "module_type" : "SwiftTarget",
      "name" : "MermaidPlayground",
      "path" : "Examples/MermaidPlayground",
      "product_memberships" : [
        "MermaidPlayground"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Examples/MermaidPlayground/Resources/Assets.xcassets",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Examples/MermaidPlayground/Resources/test-diagrams.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "MermaidPlaygroundApp.swift",
        "Models/PlaygroundConfiguration.swift",
        "Models/SampleDiagrams.swift",
        "Views/ContentView.swift",
        "Views/MermaidViewRepresentable.swift",
        "Views/PreviewView.swift",
        "Views/SidebarView.swift",
        "Views/SourceEditor.swift",
        "Views/ThemePicker.swift"
      ],
      "target_dependencies" : [
        "BeautifulMermaid"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BeautifulMermaidSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "BeautifulMermaidSwiftTests",
      "path" : "Tests/BeautifulMermaidSwiftTests",
      "sources" : [
        "AsciiVisualReportGenerator.swift",
        "BeautifulMermaidSwiftTests.swift",
        "ExampleImageExporter.swift",
        "SemicolonSeparatorTests.swift",
        "SequenceBrTagTests.swift",
        "VerificationStepExporterTests.swift",
        "VisualComparisonExporterTests.swift",
        "VisualReportGenerator.swift",
        "XYChartCrashRegressionTests.swift"
      ],
      "target_dependencies" : [
        "BeautifulMermaid"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BeautifulMermaid",
      "module_type" : "SwiftTarget",
      "name" : "BeautifulMermaid",
      "path" : "Sources/BeautifulMermaidSwift",
      "product_dependencies" : [
        "ElkSwift"
      ],
      "product_memberships" : [
        "BeautifulMermaid",
        "MermaidPlayground"
      ],
      "sources" : [
        "BeautifulMermaid.swift",
        "CrossPlatform.swift",
        "ImageRenderer.swift",
        "Layout.swift",
        "Mermaid/src_ascii_ansi.swift",
        "Mermaid/src_ascii_canvas.swift",
        "Mermaid/src_ascii_class_diagram.swift",
        "Mermaid/src_ascii_converter.swift",
        "Mermaid/src_ascii_draw.swift",
        "Mermaid/src_ascii_edge_bundling.swift",
        "Mermaid/src_ascii_edge_routing.swift",
        "Mermaid/src_ascii_er_diagram.swift",
        "Mermaid/src_ascii_grid.swift",
        "Mermaid/src_ascii_index.swift",
        "Mermaid/src_ascii_multiline_utils.swift",
        "Mermaid/src_ascii_pathfinder.swift",
        "Mermaid/src_ascii_sequence.swift",
        "Mermaid/src_ascii_shapes_circle.swift",
        "Mermaid/src_ascii_shapes_corners.swift",
        "Mermaid/src_ascii_shapes_diamond.swift",
        "Mermaid/src_ascii_shapes_hexagon.swift",
        "Mermaid/src_ascii_shapes_index.swift",
        "Mermaid/src_ascii_shapes_rectangle.swift",
        "Mermaid/src_ascii_shapes_rounded.swift",
        "Mermaid/src_ascii_shapes_special.swift",
        "Mermaid/src_ascii_shapes_stadium.swift",
        "Mermaid/src_ascii_shapes_state.swift",
        "Mermaid/src_ascii_shapes_types.swift",
        "Mermaid/src_ascii_types.swift",
        "Mermaid/src_ascii_validate.swift",
        "Mermaid/src_ascii_xychart.swift",
        "Mermaid/src_class_layout.swift",
        "Mermaid/src_class_parser.swift",
        "Mermaid/src_class_renderer.swift",
        "Mermaid/src_class_types.swift",
        "Mermaid/src_elk_instance.swift",
        "Mermaid/src_er_layout.swift",
        "Mermaid/src_er_parser.swift",
        "Mermaid/src_er_renderer.swift",
        "Mermaid/src_er_types.swift",
        "Mermaid/src_index.swift",
        "Mermaid/src_layout.swift",
        "Mermaid/src_multiline_utils.swift",
        "Mermaid/src_parser.swift",
        "Mermaid/src_renderer.swift",
        "Mermaid/src_sequence_layout.swift",
        "Mermaid/src_sequence_parser.swift",
        "Mermaid/src_sequence_renderer.swift",
        "Mermaid/src_sequence_types.swift",
        "Mermaid/src_shape_clipping.swift",
        "Mermaid/src_styles.swift",
        "Mermaid/src_text_metrics.swift",
        "Mermaid/src_theme.swift",
        "Mermaid/src_types.swift",
        "Mermaid/src_xychart_colors.swift",
        "Mermaid/src_xychart_layout.swift",
        "Mermaid/src_xychart_parser.swift",
        "Mermaid/src_xychart_renderer.swift",
        "Mermaid/src_xychart_types.swift",
        "Parser.swift",
        "Render/ArrowRenderer.swift",
        "Render/DiagramRenderer+Class.swift",
        "Render/DiagramRenderer+ER.swift",
        "Render/DiagramRenderer+Flow.swift",
        "Render/DiagramRenderer+Sequence.swift",
        "Render/DiagramRenderer+XYChart.swift",
        "Render/DiagramRenderer.swift",
        "Render/EdgeRenderer.swift",
        "Render/LabelRenderer.swift",
        "Render/RenderAdapters.swift",
        "Render/RenderConfig.swift",
        "Render/SVGHelpers.swift",
        "Render/ShapeRenderer.swift",
        "Theme.swift",
        "Types.swift",
        "Views/MermaidDiagram.swift",
        "Views/MermaidDiagramView.swift",
        "Views/MermaidLayer.swift",
        "Views/MermaidView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.