The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftMath, reference main (48ff18), with Swift 6.1 for macOS (SPM) on 3 Feb 2026 20:32:37 UTC.

Swift 6 data race errors: 12

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mgriebling/SwiftMath.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mgriebling/SwiftMath
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 48ff188 Merge pull request #60 from nguillot/feat/tokenization-infrastructure
Cloned https://github.com/mgriebling/SwiftMath.git
Revision (git rev-parse @):
48ff188ba118c37d024551238041113560ab09b9
SUCCESS checkout https://github.com/mgriebling/SwiftMath.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mgriebling/SwiftMath.git
https://github.com/mgriebling/SwiftMath.git
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftMath",
  "name" : "SwiftMath",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftMath",
      "targets" : [
        "SwiftMath"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftMathTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMathTests",
      "path" : "Tests/SwiftMathTests",
      "sources" : [
        "AccentSpacingComparisonTest.swift",
        "ArrowStretchingTest.swift",
        "ConcurrencyThreadsafeTests.swift",
        "DebugOverlapTest.swift",
        "DotlessIJAccentTests.swift",
        "GlyphBoundsTest.swift",
        "LimitOperatorRegressionTests.swift",
        "MTFontMathTableV2Tests.swift",
        "MTFontV2Tests.swift",
        "MTMathListBuilderTests.swift",
        "MTMathListTests.swift",
        "MTMathUILabelLineWrappingTests.swift",
        "MTTypesetterTests.swift",
        "MathDelimiterTests.swift",
        "MathFontTests.swift",
        "MathImageTests.swift",
        "MatricesLineBreakingTest.swift",
        "RelationOperatorSpacingTests.swift",
        "Tokenization/MTAtomTokenizerTests.swift",
        "Tokenization/MTBreakableElementTests.swift",
        "Tokenization/MTDisplayGeneratorTests.swift",
        "Tokenization/MTDisplayPreRendererTests.swift",
        "Tokenization/MTElementWidthCalculatorTests.swift",
        "Tokenization/MTLineFitterTests.swift",
        "Tokenization/MTTokenizationImprovementTests.swift",
        "Tokenization/MTTokenizationRealWorldTests.swift",
        "Tokenization/MTTypesetter+TokenizationTests.swift",
        "WidehatGlyphTest.swift",
        "WidehatTests.swift"
      ],
      "target_dependencies" : [
        "SwiftMath"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftMath",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMath",
      "path" : "Sources/SwiftMath",
      "product_memberships" : [
        "SwiftMath"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/mathFonts.bundle",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "MathBundle/MTFontMathTableV2.swift",
        "MathBundle/MTFontV2.swift",
        "MathBundle/MathFont.swift",
        "MathBundle/MathImage.swift",
        "MathRender/MTBezierPath.swift",
        "MathRender/MTColor.swift",
        "MathRender/MTConfig.swift",
        "MathRender/MTFont.swift",
        "MathRender/MTFontManager.swift",
        "MathRender/MTFontMathTable.swift",
        "MathRender/MTLabel.swift",
        "MathRender/MTMathAtomFactory.swift",
        "MathRender/MTMathImage.swift",
        "MathRender/MTMathList.swift",
        "MathRender/MTMathListBuilder.swift",
        "MathRender/MTMathListDisplay.swift",
        "MathRender/MTMathListIndex.swift",
        "MathRender/MTMathUILabel.swift",
        "MathRender/MTTypesetter+Tokenization.swift",
        "MathRender/MTTypesetter.swift",
        "MathRender/MTUnicode.swift",
        "MathRender/RWLock.swift",
        "MathRender/Tokenization/MTAtomTokenizer.swift",
        "MathRender/Tokenization/MTBreakableElement.swift",
        "MathRender/Tokenization/MTDisplayGenerator.swift",
        "MathRender/Tokenization/MTDisplayPreRenderer.swift",
        "MathRender/Tokenization/MTElementWidthCalculator.swift",
        "MathRender/Tokenization/MTLineFitter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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/4] Write sources
[0/4] Copying Info.plist
[2/4] Copying mathFonts.bundle
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/32] Emitting module SwiftMath
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:101:25: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
 97 |     }
 98 | }
 99 | private class BundleManager {
    |               `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
100 |     //Note: below should be lightweight and without threadsafe problem.
101 |     static internal let manager = BundleManager()
    |                         |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private var cgFonts = [MathFont: CGFont]()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTFontManager.swift:14:36: warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class MTFontManager {
13 |
14 |     static public private(set) var manager: MTFontManager = {
   |                                    |- warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'manager' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         MTFontManager()
16 |     }()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:74:16: warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  72 |
  73 |     private static let delimValueLock = NSLock()
  74 |     static var _delimValueToName = [String: String]()
     |                |- warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_delimValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_delimValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  75 |     public static var delimValueToName: [String: String] {
  76 |         if _delimValueToName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:119:16: warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 117 |
 118 |     private static let accentValueLock = NSLock()
 119 |     static var _accentValueToName: [String: String]? = nil
     |                |- warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_accentValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_accentValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 120 |     public static var accentValueToName: [String: String] {
 121 |         if _accentValueToName == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:151:16: warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 149 |     }
 150 |
 151 |     static var supportedLatexSymbols: [String: MTMathAtom] = [
     |                |- warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'supportedLatexSymbols' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'supportedLatexSymbols' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 152 |         "square" : MTMathAtomFactory.placeholder(),
 153 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:556:13: warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 554 |     ]
 555 |
 556 | 	static var supportedAccentedCharacters: [Character: (String, String)] = [
     |             |- warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |             |- note: convert 'supportedAccentedCharacters' to a 'let' constant to make 'Sendable' shared state immutable
     |             |- note: add '@MainActor' to make static property 'supportedAccentedCharacters' part of global actor 'MainActor'
     |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 557 | 		// Acute accents
 558 | 		"á": ("acute", "a"), "é": ("acute", "e"), "í": ("acute", "i"),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:600:16: warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 598 |
 599 |     private static let textToLatexLock = NSLock()
 600 |     static var _textToLatexSymbolName: [String: String]? = nil
     |                |- warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_textToLatexSymbolName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_textToLatexSymbolName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 601 |     public static var textToLatexSymbolName: [String: String] {
 602 |         get {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:641:16: warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
 639 |   //  public static let sharedInstance = MTMathAtomFactory()
 640 |
 641 |     static let fontStyles : [String: MTFontStyle] = [
     |                |- warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: add '@MainActor' to make static property 'fontStyles' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 642 |         "mathnormal" : .defaultStyle,
 643 |         "mathrm": .roman,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:126:13: note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 124 |  of type kMTMathAtomVariable and kMTMathAtomNumber. None of the other atom types change their font style.
 125 |  */
 126 | public enum MTFontStyle:Int {
     |             `- note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 127 |     /// The default latex rendering style. i.e. variables are italic and numbers are roman.
 128 |     case defaultStyle = 0,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListBuilder.swift:183:23: warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
 181 |     ]
 182 |
 183 |     public static let styleToCommands: [MTLineStyle: String] = [
     |                       |- warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'styleToCommands' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 184 |         .display: "displaystyle",
 185 |         .text: "textstyle",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:630:13: note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 628 |  Styling of a line of math
 629 |  */
 630 | public enum MTLineStyle:Int, Comparable {
     |             `- note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 631 |     /// Display style
 632 |     case display
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:41:16: warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
    |                |- warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'initialized' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     static var supported = false
 43 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:42:16: warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
 42 |     static var supported = false
    |                |- warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supported' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'supported' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /// Draws itself in the given graphics context.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTTypesetter.swift:23:5: warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  21 | }
  22 |
  23 | var interElementSpaceArray = [[InterElementSpaceType]]()
     |     |- warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'interElementSpaceArray' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'interElementSpaceArray' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  24 | private let interElementLock = NSLock()
  25 |
[6/34] Compiling SwiftMath MTLineFitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:87:53: warning: immutable value 't' was never used; consider replacing with '_' or removing it
 85 |             // Check if element fits on current line
 86 |             if !lines.last!.isEmpty && currentWidth + element.width > maxWidth - margin {
 87 |                 if debugPunctuation, case .text(let t) = element.content {
    |                                                     `- warning: immutable value 't' was never used; consider replacing with '_' or removing it
 88 |                     print("    Doesn't fit (width=\(currentWidth) + \(element.width) > \(maxWidth)), current line has \(lines.last!.count) elements")
 89 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:215:13: warning: initialization of immutable value 'debugFit' was never used; consider replacing with assignment to '_' or removing it
213 |
214 |         let debugBreak = false  // Enable to debug break point selection
215 |         let debugFit = false
    |             `- warning: initialization of immutable value 'debugFit' was never used; consider replacing with assignment to '_' or removing it
216 |
217 |         // Scan from right to left to prefer breaking later in the line
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:252:19: warning: will never be executed
249 |         }
250 |
251 |         if debugBreak {
    |            `- note: condition always evaluates to false
252 |             print("  Best break: index=\(bestIndex ?? -1), penalty=\(lowestPenalty)")
    |                   `- warning: will never be executed
253 |         }
254 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:38:19: warning: will never be executed
 35 |         let debugPunctuation = false  // Enable to debug line breaking issues
 36 |
 37 |         if debugPunctuation {
    |            `- note: condition always evaluates to false
 38 |             print("\n=== MTLineFitter: fitting \(elements.count) elements, maxWidth=\(maxWidth) ===")
    |                   `- warning: will never be executed
 39 |             for (idx, elem) in elements.enumerated() {
 40 |                 if case .text(let t) = elem.content {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:53:62: warning: will never be executed
 51 |             let element = elements[i]
 52 |
 53 |             if debugPunctuation, case .text(let t) = element.content {
    |                |                                             `- warning: will never be executed
    |                `- note: condition always evaluates to false
 54 |                 print("\n  Processing element[\(i)]: '\(t)' breakBefore=\(element.isBreakBefore)")
 55 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:87:66: warning: will never be executed
 85 |             // Check if element fits on current line
 86 |             if !lines.last!.isEmpty && currentWidth + element.width > maxWidth - margin {
 87 |                 if debugPunctuation, case .text(let t) = element.content {
    |                    |                                             `- warning: will never be executed
    |                    `- note: condition always evaluates to false
 88 |                     print("    Doesn't fit (width=\(currentWidth) + \(element.width) > \(maxWidth)), current line has \(lines.last!.count) elements")
 89 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:93:31: warning: will never be executed
 90 |                 // Element doesn't fit - find best break point in current line
 91 |                 if let breakIndex = findBestBreak(in: lines[lines.count - 1]) {
 92 |                     if debugPunctuation {
    |                        `- note: condition always evaluates to false
 93 |                         print("    Found break at index \(breakIndex) out of \(lines.last!.count) elements")
    |                               `- warning: will never be executed
 94 |                         if breakIndex < lines.last!.count {
 95 |                             if case .text(let t) = lines.last![breakIndex].content {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:113:74: warning: will never be executed
111 |
112 |                         // Now check if current element should go on new line or stay with old line
113 |                         if debugPunctuation, case .text(let t) = element.content {
    |                            |                                             `- warning: will never be executed
    |                            `- note: condition always evaluates to false
114 |                             print("      Checking element '\(t)' (i=\(i)): breakBefore=\(element.isBreakBefore)")
115 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:122:78: warning: will never be executed
120 |                             // Example: "matrices" breaks before 'm', so 'm','a','t','r','i' move to new line.
121 |                             // When we process 'c', it can't start a line, so it must join the new line.
122 |                             if debugPunctuation, case .text(let t) = element.content {
    |                                |                                             `- warning: will never be executed
    |                                `- note: condition always evaluates to false
123 |                                 print("      -> Adding '\(t)' to new line (part of unbreakable sequence)")
124 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:130:78: warning: will never be executed
128 |                             continue
129 |                         } else {
130 |                             if debugPunctuation, case .text(let t) = element.content {
    |                                |                                             `- warning: will never be executed
    |                                `- note: condition always evaluates to false
131 |                                 print("      -> Adding '\(t)' to new line (can start line)")
132 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:169:19: warning: will never be executed
166 |         let finalLines = lines.filter { !$0.isEmpty }
167 |
168 |         if debugPunctuation {
    |            `- note: condition always evaluates to false
169 |             print("\n=== Final lines: ===")
    |                   `- warning: will never be executed
170 |             for (lineIdx, line) in finalLines.enumerated() {
171 |                 print("Line \(lineIdx):")
[7/34] Compiling SwiftMath resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:87:53: warning: immutable value 't' was never used; consider replacing with '_' or removing it
 85 |             // Check if element fits on current line
 86 |             if !lines.last!.isEmpty && currentWidth + element.width > maxWidth - margin {
 87 |                 if debugPunctuation, case .text(let t) = element.content {
    |                                                     `- warning: immutable value 't' was never used; consider replacing with '_' or removing it
 88 |                     print("    Doesn't fit (width=\(currentWidth) + \(element.width) > \(maxWidth)), current line has \(lines.last!.count) elements")
 89 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:215:13: warning: initialization of immutable value 'debugFit' was never used; consider replacing with assignment to '_' or removing it
213 |
214 |         let debugBreak = false  // Enable to debug break point selection
215 |         let debugFit = false
    |             `- warning: initialization of immutable value 'debugFit' was never used; consider replacing with assignment to '_' or removing it
216 |
217 |         // Scan from right to left to prefer breaking later in the line
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:252:19: warning: will never be executed
249 |         }
250 |
251 |         if debugBreak {
    |            `- note: condition always evaluates to false
252 |             print("  Best break: index=\(bestIndex ?? -1), penalty=\(lowestPenalty)")
    |                   `- warning: will never be executed
253 |         }
254 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:38:19: warning: will never be executed
 35 |         let debugPunctuation = false  // Enable to debug line breaking issues
 36 |
 37 |         if debugPunctuation {
    |            `- note: condition always evaluates to false
 38 |             print("\n=== MTLineFitter: fitting \(elements.count) elements, maxWidth=\(maxWidth) ===")
    |                   `- warning: will never be executed
 39 |             for (idx, elem) in elements.enumerated() {
 40 |                 if case .text(let t) = elem.content {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:53:62: warning: will never be executed
 51 |             let element = elements[i]
 52 |
 53 |             if debugPunctuation, case .text(let t) = element.content {
    |                |                                             `- warning: will never be executed
    |                `- note: condition always evaluates to false
 54 |                 print("\n  Processing element[\(i)]: '\(t)' breakBefore=\(element.isBreakBefore)")
 55 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:87:66: warning: will never be executed
 85 |             // Check if element fits on current line
 86 |             if !lines.last!.isEmpty && currentWidth + element.width > maxWidth - margin {
 87 |                 if debugPunctuation, case .text(let t) = element.content {
    |                    |                                             `- warning: will never be executed
    |                    `- note: condition always evaluates to false
 88 |                     print("    Doesn't fit (width=\(currentWidth) + \(element.width) > \(maxWidth)), current line has \(lines.last!.count) elements")
 89 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:93:31: warning: will never be executed
 90 |                 // Element doesn't fit - find best break point in current line
 91 |                 if let breakIndex = findBestBreak(in: lines[lines.count - 1]) {
 92 |                     if debugPunctuation {
    |                        `- note: condition always evaluates to false
 93 |                         print("    Found break at index \(breakIndex) out of \(lines.last!.count) elements")
    |                               `- warning: will never be executed
 94 |                         if breakIndex < lines.last!.count {
 95 |                             if case .text(let t) = lines.last![breakIndex].content {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:113:74: warning: will never be executed
111 |
112 |                         // Now check if current element should go on new line or stay with old line
113 |                         if debugPunctuation, case .text(let t) = element.content {
    |                            |                                             `- warning: will never be executed
    |                            `- note: condition always evaluates to false
114 |                             print("      Checking element '\(t)' (i=\(i)): breakBefore=\(element.isBreakBefore)")
115 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:122:78: warning: will never be executed
120 |                             // Example: "matrices" breaks before 'm', so 'm','a','t','r','i' move to new line.
121 |                             // When we process 'c', it can't start a line, so it must join the new line.
122 |                             if debugPunctuation, case .text(let t) = element.content {
    |                                |                                             `- warning: will never be executed
    |                                `- note: condition always evaluates to false
123 |                                 print("      -> Adding '\(t)' to new line (part of unbreakable sequence)")
124 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:130:78: warning: will never be executed
128 |                             continue
129 |                         } else {
130 |                             if debugPunctuation, case .text(let t) = element.content {
    |                                |                                             `- warning: will never be executed
    |                                `- note: condition always evaluates to false
131 |                                 print("      -> Adding '\(t)' to new line (can start line)")
132 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTLineFitter.swift:169:19: warning: will never be executed
166 |         let finalLines = lines.filter { !$0.isEmpty }
167 |
168 |         if debugPunctuation {
    |            `- note: condition always evaluates to false
169 |             print("\n=== Final lines: ===")
    |                   `- warning: will never be executed
170 |             for (lineIdx, line) in finalLines.enumerated() {
171 |                 print("Line \(lineIdx):")
[8/34] Compiling SwiftMath MTDisplayGenerator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:122:25: warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
120 |                 case .display(let preRenderedDisplay):
121 |                     // Use pre-rendered display (fraction, radical, etc.)
122 |                     var mutableDisplay = preRenderedDisplay
    |                         `- warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
123 |                     mutableDisplay.position = elementPosition
124 |                     displays.append(mutableDisplay)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:180:25: warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
178 |                     displays.append(display)
179 |                 case .display(let preRenderedDisplay):
180 |                     var mutableDisplay = preRenderedDisplay
    |                         `- warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
181 |                     mutableDisplay.position = basePosition
182 |                     displays.append(mutableDisplay)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:308:21: warning: variable 'mutableScript' was never mutated; consider changing to 'let' constant
306 |
307 |                 // Reset the scriptDisplay's position to (0, 0) since it will be positioned by the wrapper
308 |                 var mutableScript = scriptDisplay
    |                     `- warning: variable 'mutableScript' was never mutated; consider changing to 'let' constant
309 |                 mutableScript.position = CGPoint.zero
310 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:348:17: warning: variable 'baseDisplay' was never mutated; consider changing to 'let' constant
346 |             // Update the first base display's dimensions to reflect the full extent
347 |             // Width should be base + script, without the spaceAfterScript (that's for cursor advancement)
348 |             var baseDisplay = displays[baseDisplayStartIndex]
    |                 `- warning: variable 'baseDisplay' was never mutated; consider changing to 'let' constant
349 |             baseDisplay.ascent = maxAscent
350 |             baseDisplay.descent = maxDescent
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayPreRenderer.swift:53:42: warning: conditional cast from 'MTMathListDisplay' to 'MTMathListDisplay' always succeeds
51 |         // If the result is a MTMathListDisplay with a single subdisplay, unwrap it
52 |         // This matches the behavior of the legacy typesetter
53 |         if let mathListDisplay = display as? MTMathListDisplay,
   |                                          `- warning: conditional cast from 'MTMathListDisplay' to 'MTMathListDisplay' always succeeds
54 |            mathListDisplay.subDisplays.count == 1 {
55 |             return mathListDisplay.subDisplays[0]
[9/34] Compiling SwiftMath MTDisplayPreRenderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:122:25: warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
120 |                 case .display(let preRenderedDisplay):
121 |                     // Use pre-rendered display (fraction, radical, etc.)
122 |                     var mutableDisplay = preRenderedDisplay
    |                         `- warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
123 |                     mutableDisplay.position = elementPosition
124 |                     displays.append(mutableDisplay)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:180:25: warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
178 |                     displays.append(display)
179 |                 case .display(let preRenderedDisplay):
180 |                     var mutableDisplay = preRenderedDisplay
    |                         `- warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
181 |                     mutableDisplay.position = basePosition
182 |                     displays.append(mutableDisplay)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:308:21: warning: variable 'mutableScript' was never mutated; consider changing to 'let' constant
306 |
307 |                 // Reset the scriptDisplay's position to (0, 0) since it will be positioned by the wrapper
308 |                 var mutableScript = scriptDisplay
    |                     `- warning: variable 'mutableScript' was never mutated; consider changing to 'let' constant
309 |                 mutableScript.position = CGPoint.zero
310 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:348:17: warning: variable 'baseDisplay' was never mutated; consider changing to 'let' constant
346 |             // Update the first base display's dimensions to reflect the full extent
347 |             // Width should be base + script, without the spaceAfterScript (that's for cursor advancement)
348 |             var baseDisplay = displays[baseDisplayStartIndex]
    |                 `- warning: variable 'baseDisplay' was never mutated; consider changing to 'let' constant
349 |             baseDisplay.ascent = maxAscent
350 |             baseDisplay.descent = maxDescent
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayPreRenderer.swift:53:42: warning: conditional cast from 'MTMathListDisplay' to 'MTMathListDisplay' always succeeds
51 |         // If the result is a MTMathListDisplay with a single subdisplay, unwrap it
52 |         // This matches the behavior of the legacy typesetter
53 |         if let mathListDisplay = display as? MTMathListDisplay,
   |                                          `- warning: conditional cast from 'MTMathListDisplay' to 'MTMathListDisplay' always succeeds
54 |            mathListDisplay.subDisplays.count == 1 {
55 |             return mathListDisplay.subDisplays[0]
[10/34] Compiling SwiftMath MTElementWidthCalculator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:122:25: warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
120 |                 case .display(let preRenderedDisplay):
121 |                     // Use pre-rendered display (fraction, radical, etc.)
122 |                     var mutableDisplay = preRenderedDisplay
    |                         `- warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
123 |                     mutableDisplay.position = elementPosition
124 |                     displays.append(mutableDisplay)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:180:25: warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
178 |                     displays.append(display)
179 |                 case .display(let preRenderedDisplay):
180 |                     var mutableDisplay = preRenderedDisplay
    |                         `- warning: variable 'mutableDisplay' was never mutated; consider changing to 'let' constant
181 |                     mutableDisplay.position = basePosition
182 |                     displays.append(mutableDisplay)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:308:21: warning: variable 'mutableScript' was never mutated; consider changing to 'let' constant
306 |
307 |                 // Reset the scriptDisplay's position to (0, 0) since it will be positioned by the wrapper
308 |                 var mutableScript = scriptDisplay
    |                     `- warning: variable 'mutableScript' was never mutated; consider changing to 'let' constant
309 |                 mutableScript.position = CGPoint.zero
310 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayGenerator.swift:348:17: warning: variable 'baseDisplay' was never mutated; consider changing to 'let' constant
346 |             // Update the first base display's dimensions to reflect the full extent
347 |             // Width should be base + script, without the spaceAfterScript (that's for cursor advancement)
348 |             var baseDisplay = displays[baseDisplayStartIndex]
    |                 `- warning: variable 'baseDisplay' was never mutated; consider changing to 'let' constant
349 |             baseDisplay.ascent = maxAscent
350 |             baseDisplay.descent = maxDescent
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTDisplayPreRenderer.swift:53:42: warning: conditional cast from 'MTMathListDisplay' to 'MTMathListDisplay' always succeeds
51 |         // If the result is a MTMathListDisplay with a single subdisplay, unwrap it
52 |         // This matches the behavior of the legacy typesetter
53 |         if let mathListDisplay = display as? MTMathListDisplay,
   |                                          `- warning: conditional cast from 'MTMathListDisplay' to 'MTMathListDisplay' always succeeds
54 |            mathListDisplay.subDisplays.count == 1 {
55 |             return mathListDisplay.subDisplays[0]
[11/34] Compiling SwiftMath MathImage.swift
[12/34] Compiling SwiftMath MTBezierPath.swift
[13/34] Compiling SwiftMath MTColor.swift
[14/34] Compiling SwiftMath MTFontMathTableV2.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:101:25: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
 97 |     }
 98 | }
 99 | private class BundleManager {
    |               `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
100 |     //Note: below should be lightweight and without threadsafe problem.
101 |     static internal let manager = BundleManager()
    |                         |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private var cgFonts = [MathFont: CGFont]()
[15/34] Compiling SwiftMath MTFontV2.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:101:25: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
 97 |     }
 98 | }
 99 | private class BundleManager {
    |               `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
100 |     //Note: below should be lightweight and without threadsafe problem.
101 |     static internal let manager = BundleManager()
    |                         |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private var cgFonts = [MathFont: CGFont]()
[16/34] Compiling SwiftMath MathFont.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:101:25: warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
 97 |     }
 98 | }
 99 | private class BundleManager {
    |               `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
100 |     //Note: below should be lightweight and without threadsafe problem.
101 |     static internal let manager = BundleManager()
    |                         |- warning: static property 'manager' is not concurrency-safe because non-'Sendable' type 'BundleManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 |     private var cgFonts = [MathFont: CGFont]()
[17/34] Compiling SwiftMath MTTypesetter+Tokenization.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTTypesetter.swift:23:5: warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  21 | }
  22 |
  23 | var interElementSpaceArray = [[InterElementSpaceType]]()
     |     |- warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'interElementSpaceArray' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'interElementSpaceArray' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  24 | private let interElementLock = NSLock()
  25 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTTypesetter.swift:1507:13: warning: variable 'accentee' was never mutated; consider changing to 'let' constant
1505 |         guard let accent = accent else { return nil }
1506 |
1507 |         var accentee = MTTypesetter.createLineForMathList(accent.innerList, font:font, style:style, cramped:true)
     |             `- warning: variable 'accentee' was never mutated; consider changing to 'let' constant
1508 |         if accent.nucleus.isEmpty {
1509 |             // no accent!
[18/34] Compiling SwiftMath MTTypesetter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTTypesetter.swift:23:5: warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  21 | }
  22 |
  23 | var interElementSpaceArray = [[InterElementSpaceType]]()
     |     |- warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'interElementSpaceArray' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'interElementSpaceArray' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  24 | private let interElementLock = NSLock()
  25 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTTypesetter.swift:1507:13: warning: variable 'accentee' was never mutated; consider changing to 'let' constant
1505 |         guard let accent = accent else { return nil }
1506 |
1507 |         var accentee = MTTypesetter.createLineForMathList(accent.innerList, font:font, style:style, cramped:true)
     |             `- warning: variable 'accentee' was never mutated; consider changing to 'let' constant
1508 |         if accent.nucleus.isEmpty {
1509 |             // no accent!
[19/34] Compiling SwiftMath MTUnicode.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTTypesetter.swift:23:5: warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  21 | }
  22 |
  23 | var interElementSpaceArray = [[InterElementSpaceType]]()
     |     |- warning: var 'interElementSpaceArray' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |     |- note: convert 'interElementSpaceArray' to a 'let' constant to make 'Sendable' shared state immutable
     |     |- note: add '@MainActor' to make var 'interElementSpaceArray' part of global actor 'MainActor'
     |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  24 | private let interElementLock = NSLock()
  25 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTTypesetter.swift:1507:13: warning: variable 'accentee' was never mutated; consider changing to 'let' constant
1505 |         guard let accent = accent else { return nil }
1506 |
1507 |         var accentee = MTTypesetter.createLineForMathList(accent.innerList, font:font, style:style, cramped:true)
     |             `- warning: variable 'accentee' was never mutated; consider changing to 'let' constant
1508 |         if accent.nucleus.isEmpty {
1509 |             // no accent!
[20/34] Compiling SwiftMath MTMathImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListBuilder.swift:183:23: warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
 181 |     ]
 182 |
 183 |     public static let styleToCommands: [MTLineStyle: String] = [
     |                       |- warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'styleToCommands' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 184 |         .display: "displaystyle",
 185 |         .text: "textstyle",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:630:13: note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 628 |  Styling of a line of math
 629 |  */
 630 | public enum MTLineStyle:Int, Comparable {
     |             `- note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 631 |     /// Display style
 632 |     case display
[21/34] Compiling SwiftMath MTMathList.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListBuilder.swift:183:23: warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
 181 |     ]
 182 |
 183 |     public static let styleToCommands: [MTLineStyle: String] = [
     |                       |- warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'styleToCommands' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 184 |         .display: "displaystyle",
 185 |         .text: "textstyle",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:630:13: note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 628 |  Styling of a line of math
 629 |  */
 630 | public enum MTLineStyle:Int, Comparable {
     |             `- note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 631 |     /// Display style
 632 |     case display
[22/34] Compiling SwiftMath MTMathListBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListBuilder.swift:183:23: warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
 181 |     ]
 182 |
 183 |     public static let styleToCommands: [MTLineStyle: String] = [
     |                       |- warning: static property 'styleToCommands' is not concurrency-safe because non-'Sendable' type '[MTLineStyle : String]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                       |- note: add '@MainActor' to make static property 'styleToCommands' part of global actor 'MainActor'
     |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 184 |         .display: "displaystyle",
 185 |         .text: "textstyle",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:630:13: note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 628 |  Styling of a line of math
 629 |  */
 630 | public enum MTLineStyle:Int, Comparable {
     |             `- note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
 631 |     /// Display style
 632 |     case display
[23/34] Compiling SwiftMath MTConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTFontManager.swift:14:36: warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class MTFontManager {
13 |
14 |     static public private(set) var manager: MTFontManager = {
   |                                    |- warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'manager' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         MTFontManager()
16 |     }()
[24/34] Compiling SwiftMath MTFont.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTFontManager.swift:14:36: warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class MTFontManager {
13 |
14 |     static public private(set) var manager: MTFontManager = {
   |                                    |- warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'manager' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         MTFontManager()
16 |     }()
[25/34] Compiling SwiftMath MTFontManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTFontManager.swift:14:36: warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 | public class MTFontManager {
13 |
14 |     static public private(set) var manager: MTFontManager = {
   |                                    |- warning: static property 'manager' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                                    |- note: convert 'manager' to a 'let' constant to make 'Sendable' shared state immutable
   |                                    |- note: add '@MainActor' to make static property 'manager' part of global actor 'MainActor'
   |                                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |         MTFontManager()
16 |     }()
[26/34] Compiling SwiftMath MTFontMathTable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:74:16: warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  72 |
  73 |     private static let delimValueLock = NSLock()
  74 |     static var _delimValueToName = [String: String]()
     |                |- warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_delimValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_delimValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  75 |     public static var delimValueToName: [String: String] {
  76 |         if _delimValueToName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:119:16: warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 117 |
 118 |     private static let accentValueLock = NSLock()
 119 |     static var _accentValueToName: [String: String]? = nil
     |                |- warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_accentValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_accentValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 120 |     public static var accentValueToName: [String: String] {
 121 |         if _accentValueToName == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:151:16: warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 149 |     }
 150 |
 151 |     static var supportedLatexSymbols: [String: MTMathAtom] = [
     |                |- warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'supportedLatexSymbols' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'supportedLatexSymbols' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 152 |         "square" : MTMathAtomFactory.placeholder(),
 153 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:556:13: warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 554 |     ]
 555 |
 556 | 	static var supportedAccentedCharacters: [Character: (String, String)] = [
     |             |- warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |             |- note: convert 'supportedAccentedCharacters' to a 'let' constant to make 'Sendable' shared state immutable
     |             |- note: add '@MainActor' to make static property 'supportedAccentedCharacters' part of global actor 'MainActor'
     |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 557 | 		// Acute accents
 558 | 		"á": ("acute", "a"), "é": ("acute", "e"), "í": ("acute", "i"),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:600:16: warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 598 |
 599 |     private static let textToLatexLock = NSLock()
 600 |     static var _textToLatexSymbolName: [String: String]? = nil
     |                |- warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_textToLatexSymbolName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_textToLatexSymbolName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 601 |     public static var textToLatexSymbolName: [String: String] {
 602 |         get {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:641:16: warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
 639 |   //  public static let sharedInstance = MTMathAtomFactory()
 640 |
 641 |     static let fontStyles : [String: MTFontStyle] = [
     |                |- warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: add '@MainActor' to make static property 'fontStyles' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 642 |         "mathnormal" : .defaultStyle,
 643 |         "mathrm": .roman,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:126:13: note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 124 |  of type kMTMathAtomVariable and kMTMathAtomNumber. None of the other atom types change their font style.
 125 |  */
 126 | public enum MTFontStyle:Int {
     |             `- note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 127 |     /// The default latex rendering style. i.e. variables are italic and numbers are roman.
 128 |     case defaultStyle = 0,
[27/34] Compiling SwiftMath MTLabel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:74:16: warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  72 |
  73 |     private static let delimValueLock = NSLock()
  74 |     static var _delimValueToName = [String: String]()
     |                |- warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_delimValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_delimValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  75 |     public static var delimValueToName: [String: String] {
  76 |         if _delimValueToName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:119:16: warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 117 |
 118 |     private static let accentValueLock = NSLock()
 119 |     static var _accentValueToName: [String: String]? = nil
     |                |- warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_accentValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_accentValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 120 |     public static var accentValueToName: [String: String] {
 121 |         if _accentValueToName == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:151:16: warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 149 |     }
 150 |
 151 |     static var supportedLatexSymbols: [String: MTMathAtom] = [
     |                |- warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'supportedLatexSymbols' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'supportedLatexSymbols' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 152 |         "square" : MTMathAtomFactory.placeholder(),
 153 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:556:13: warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 554 |     ]
 555 |
 556 | 	static var supportedAccentedCharacters: [Character: (String, String)] = [
     |             |- warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |             |- note: convert 'supportedAccentedCharacters' to a 'let' constant to make 'Sendable' shared state immutable
     |             |- note: add '@MainActor' to make static property 'supportedAccentedCharacters' part of global actor 'MainActor'
     |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 557 | 		// Acute accents
 558 | 		"á": ("acute", "a"), "é": ("acute", "e"), "í": ("acute", "i"),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:600:16: warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 598 |
 599 |     private static let textToLatexLock = NSLock()
 600 |     static var _textToLatexSymbolName: [String: String]? = nil
     |                |- warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_textToLatexSymbolName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_textToLatexSymbolName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 601 |     public static var textToLatexSymbolName: [String: String] {
 602 |         get {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:641:16: warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
 639 |   //  public static let sharedInstance = MTMathAtomFactory()
 640 |
 641 |     static let fontStyles : [String: MTFontStyle] = [
     |                |- warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: add '@MainActor' to make static property 'fontStyles' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 642 |         "mathnormal" : .defaultStyle,
 643 |         "mathrm": .roman,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:126:13: note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 124 |  of type kMTMathAtomVariable and kMTMathAtomNumber. None of the other atom types change their font style.
 125 |  */
 126 | public enum MTFontStyle:Int {
     |             `- note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 127 |     /// The default latex rendering style. i.e. variables are italic and numbers are roman.
 128 |     case defaultStyle = 0,
[28/34] Compiling SwiftMath MTMathAtomFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:74:16: warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  72 |
  73 |     private static let delimValueLock = NSLock()
  74 |     static var _delimValueToName = [String: String]()
     |                |- warning: static property '_delimValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_delimValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_delimValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  75 |     public static var delimValueToName: [String: String] {
  76 |         if _delimValueToName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:119:16: warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 117 |
 118 |     private static let accentValueLock = NSLock()
 119 |     static var _accentValueToName: [String: String]? = nil
     |                |- warning: static property '_accentValueToName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_accentValueToName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_accentValueToName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 120 |     public static var accentValueToName: [String: String] {
 121 |         if _accentValueToName == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:151:16: warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 149 |     }
 150 |
 151 |     static var supportedLatexSymbols: [String: MTMathAtom] = [
     |                |- warning: static property 'supportedLatexSymbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert 'supportedLatexSymbols' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property 'supportedLatexSymbols' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 152 |         "square" : MTMathAtomFactory.placeholder(),
 153 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:556:13: warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 554 |     ]
 555 |
 556 | 	static var supportedAccentedCharacters: [Character: (String, String)] = [
     |             |- warning: static property 'supportedAccentedCharacters' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |             |- note: convert 'supportedAccentedCharacters' to a 'let' constant to make 'Sendable' shared state immutable
     |             |- note: add '@MainActor' to make static property 'supportedAccentedCharacters' part of global actor 'MainActor'
     |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 557 | 		// Acute accents
 558 | 		"á": ("acute", "a"), "é": ("acute", "e"), "í": ("acute", "i"),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:600:16: warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 598 |
 599 |     private static let textToLatexLock = NSLock()
 600 |     static var _textToLatexSymbolName: [String: String]? = nil
     |                |- warning: static property '_textToLatexSymbolName' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: convert '_textToLatexSymbolName' to a 'let' constant to make 'Sendable' shared state immutable
     |                |- note: add '@MainActor' to make static property '_textToLatexSymbolName' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 601 |     public static var textToLatexSymbolName: [String: String] {
 602 |         get {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:641:16: warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
 639 |   //  public static let sharedInstance = MTMathAtomFactory()
 640 |
 641 |     static let fontStyles : [String: MTFontStyle] = [
     |                |- warning: static property 'fontStyles' is not concurrency-safe because non-'Sendable' type '[String : MTFontStyle]' may have shared mutable state; this is an error in the Swift 6 language mode
     |                |- note: add '@MainActor' to make static property 'fontStyles' part of global actor 'MainActor'
     |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 642 |         "mathnormal" : .defaultStyle,
 643 |         "mathrm": .roman,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:126:13: note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 124 |  of type kMTMathAtomVariable and kMTMathAtomNumber. None of the other atom types change their font style.
 125 |  */
 126 | public enum MTFontStyle:Int {
     |             `- note: consider making enum 'MTFontStyle' conform to the 'Sendable' protocol
 127 |     /// The default latex rendering style. i.e. variables are italic and numbers are roman.
 128 |     case defaultStyle = 0,
[29/34] Compiling SwiftMath RWLock.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTAtomTokenizer.swift:272:19: warning: will never be executed
 269 |
 270 |         let debugTokenization = false  // Enable to debug text tokenization
 271 |         if debugTokenization {
     |            `- note: condition always evaluates to false
 272 |             print("\n=== Tokenizing multi-char text: '\(text)' ===")
     |                   `- warning: will never be executed
 273 |         }
 274 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTAtomTokenizer.swift:320:23: warning: will never be executed
 317 |             )
 318 |
 319 |             if debugTokenization {
     |                `- note: condition always evaluates to false
 320 |                 print("  [\(charIndex)] '\(charString)' breakBefore=\(isBreakBefore) breakAfter=\(isBreakAfter) penaltyBefore=\(penaltyBefore) penaltyAfter=\(penaltyAfter) width=\(width)")
     |                       `- warning: will never be executed
 321 |             }
 322 |
[30/34] Compiling SwiftMath MTAtomTokenizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTAtomTokenizer.swift:272:19: warning: will never be executed
 269 |
 270 |         let debugTokenization = false  // Enable to debug text tokenization
 271 |         if debugTokenization {
     |            `- note: condition always evaluates to false
 272 |             print("\n=== Tokenizing multi-char text: '\(text)' ===")
     |                   `- warning: will never be executed
 273 |         }
 274 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTAtomTokenizer.swift:320:23: warning: will never be executed
 317 |             )
 318 |
 319 |             if debugTokenization {
     |                `- note: condition always evaluates to false
 320 |                 print("  [\(charIndex)] '\(charString)' breakBefore=\(isBreakBefore) breakAfter=\(isBreakAfter) penaltyBefore=\(penaltyBefore) penaltyAfter=\(penaltyAfter) width=\(width)")
     |                       `- warning: will never be executed
 321 |             }
 322 |
[31/34] Compiling SwiftMath MTBreakableElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTAtomTokenizer.swift:272:19: warning: will never be executed
 269 |
 270 |         let debugTokenization = false  // Enable to debug text tokenization
 271 |         if debugTokenization {
     |            `- note: condition always evaluates to false
 272 |             print("\n=== Tokenizing multi-char text: '\(text)' ===")
     |                   `- warning: will never be executed
 273 |         }
 274 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/Tokenization/MTAtomTokenizer.swift:320:23: warning: will never be executed
 317 |             )
 318 |
 319 |             if debugTokenization {
     |                `- note: condition always evaluates to false
 320 |                 print("  [\(charIndex)] '\(charString)' breakBefore=\(isBreakBefore) breakAfter=\(isBreakAfter) penaltyBefore=\(penaltyBefore) penaltyAfter=\(penaltyAfter) width=\(width)")
     |                       `- warning: will never be executed
 321 |             }
 322 |
[32/34] Compiling SwiftMath MTMathListDisplay.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:41:16: warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
    |                |- warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'initialized' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     static var supported = false
 43 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:42:16: warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
 42 |     static var supported = false
    |                |- warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supported' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'supported' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /// Draws itself in the given graphics context.
[33/34] Compiling SwiftMath MTMathListIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:41:16: warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
    |                |- warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'initialized' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     static var supported = false
 43 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:42:16: warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
 42 |     static var supported = false
    |                |- warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supported' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'supported' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /// Draws itself in the given graphics context.
[34/34] Compiling SwiftMath MTMathUILabel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:41:16: warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
    |                |- warning: static property 'initialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'initialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'initialized' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 42 |     static var supported = false
 43 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListDisplay.swift:42:16: warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 40 |     // needed for isIos6Supported() func above
 41 |     static var initialized = false
 42 |     static var supported = false
    |                |- warning: static property 'supported' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'supported' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'supported' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |
 44 |     /// Draws itself in the given graphics context.
Build complete! (9.13s)
Build complete.
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftMath",
  "name" : "SwiftMath",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftMath",
      "targets" : [
        "SwiftMath"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftMathTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMathTests",
      "path" : "Tests/SwiftMathTests",
      "sources" : [
        "AccentSpacingComparisonTest.swift",
        "ArrowStretchingTest.swift",
        "ConcurrencyThreadsafeTests.swift",
        "DebugOverlapTest.swift",
        "DotlessIJAccentTests.swift",
        "GlyphBoundsTest.swift",
        "LimitOperatorRegressionTests.swift",
        "MTFontMathTableV2Tests.swift",
        "MTFontV2Tests.swift",
        "MTMathListBuilderTests.swift",
        "MTMathListTests.swift",
        "MTMathUILabelLineWrappingTests.swift",
        "MTTypesetterTests.swift",
        "MathDelimiterTests.swift",
        "MathFontTests.swift",
        "MathImageTests.swift",
        "MatricesLineBreakingTest.swift",
        "RelationOperatorSpacingTests.swift",
        "Tokenization/MTAtomTokenizerTests.swift",
        "Tokenization/MTBreakableElementTests.swift",
        "Tokenization/MTDisplayGeneratorTests.swift",
        "Tokenization/MTDisplayPreRendererTests.swift",
        "Tokenization/MTElementWidthCalculatorTests.swift",
        "Tokenization/MTLineFitterTests.swift",
        "Tokenization/MTTokenizationImprovementTests.swift",
        "Tokenization/MTTokenizationRealWorldTests.swift",
        "Tokenization/MTTypesetter+TokenizationTests.swift",
        "WidehatGlyphTest.swift",
        "WidehatTests.swift"
      ],
      "target_dependencies" : [
        "SwiftMath"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftMath",
      "module_type" : "SwiftTarget",
      "name" : "SwiftMath",
      "path" : "Sources/SwiftMath",
      "product_memberships" : [
        "SwiftMath"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/mathFonts.bundle",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "MathBundle/MTFontMathTableV2.swift",
        "MathBundle/MTFontV2.swift",
        "MathBundle/MathFont.swift",
        "MathBundle/MathImage.swift",
        "MathRender/MTBezierPath.swift",
        "MathRender/MTColor.swift",
        "MathRender/MTConfig.swift",
        "MathRender/MTFont.swift",
        "MathRender/MTFontManager.swift",
        "MathRender/MTFontMathTable.swift",
        "MathRender/MTLabel.swift",
        "MathRender/MTMathAtomFactory.swift",
        "MathRender/MTMathImage.swift",
        "MathRender/MTMathList.swift",
        "MathRender/MTMathListBuilder.swift",
        "MathRender/MTMathListDisplay.swift",
        "MathRender/MTMathListIndex.swift",
        "MathRender/MTMathUILabel.swift",
        "MathRender/MTTypesetter+Tokenization.swift",
        "MathRender/MTTypesetter.swift",
        "MathRender/MTUnicode.swift",
        "MathRender/RWLock.swift",
        "MathRender/Tokenization/MTAtomTokenizer.swift",
        "MathRender/Tokenization/MTBreakableElement.swift",
        "MathRender/Tokenization/MTDisplayGenerator.swift",
        "MathRender/Tokenization/MTDisplayPreRenderer.swift",
        "MathRender/Tokenization/MTElementWidthCalculator.swift",
        "MathRender/Tokenization/MTLineFitter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.