Build Information
Successful build of SwiftMath, reference main (71da5a
), with Swift 6.0 for macOS (SPM) on 26 Oct 2024 15:35:51 UTC.
Swift 6 data race errors: 11
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.55.3
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 71da5ae Merge pull request #32 from petersktang/main
Cloned https://github.com/mgriebling/SwiftMath.git
Revision (git rev-parse @):
71da5ae9604eca163e500ebbf45b52dac8f5b864
SUCCESS checkout https://github.com/mgriebling/SwiftMath.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftmath",
"name": "SwiftMath",
"url": "https://github.com/mgriebling/SwiftMath.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftMath",
"dependencies": [
]
}
]
}
Fetching https://github.com/mgriebling/SwiftMath.git
[1/1045] Fetching swiftmath
Fetched https://github.com/mgriebling/SwiftMath.git from cache (1.33s)
Creating working copy for https://github.com/mgriebling/SwiftMath.git
Working copy of https://github.com/mgriebling/SwiftMath.git resolved at main (71da5ae)
warning: '.resolve-product-dependencies': dependency 'swiftmath' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/mgriebling/SwiftMath.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[0/4] Copying Info.plist
[2/4] Copying mathFonts.bundle
[3/4] Write swift-version--4A847ED0836F2485.txt
[5/24] Compiling SwiftMath MTMathList.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListBuilder.swift:124: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
122 | ]
123 |
124 | 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: annotate 'styleToCommands' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | .display: "displaystyle",
126 | .text: "textstyle",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:609:13: note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
607 | Styling of a line of math
608 | */
609 | public enum MTLineStyle:Int, Comparable {
| `- note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
610 | /// Display style
611 | case display
[6/24] Compiling SwiftMath MTMathListBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathListBuilder.swift:124: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
122 | ]
123 |
124 | 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: annotate 'styleToCommands' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | .display: "displaystyle",
126 | .text: "textstyle",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:609:13: note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
607 | Styling of a line of math
608 | */
609 | public enum MTLineStyle:Int, Comparable {
| `- note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
610 | /// Display style
611 | case display
[7/24] Compiling SwiftMath MTMathUILabel.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: annotate 'interElementSpaceArray' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | private let interElementLock = NSLock()
25 |
[8/24] 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: annotate 'interElementSpaceArray' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | private let interElementLock = NSLock()
25 |
[9/24] Compiling SwiftMath MTMathAtomFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:66: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
64 |
65 | private static let delimValueLock = NSLock()
66 | 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: annotate '_delimValueToName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | public static var delimValueToName: [String: String] {
68 | if _delimValueToName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:108: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
106 |
107 | private static let accentValueLock = NSLock()
108 | 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: annotate '_accentValueToName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public static var accentValueToName: [String: String] {
110 | if _accentValueToName == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:140: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
138 | }
139 |
140 | 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: annotate 'supportedLatexSymbols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 | "square" : MTMathAtomFactory.placeholder(),
142 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:406: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
404 |
405 | private static let textToLatexLock = NSLock()
406 | 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: annotate '_textToLatexSymbolName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
407 | public static var textToLatexSymbolName: [String: String] {
408 | get {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:447: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
445 | // public static let sharedInstance = MTMathAtomFactory()
446 |
447 | 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: annotate 'fontStyles' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 | "mathnormal" : .defaultStyle,
449 | "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,
[10/24] Compiling SwiftMath MTMathImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:66: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
64 |
65 | private static let delimValueLock = NSLock()
66 | 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: annotate '_delimValueToName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | public static var delimValueToName: [String: String] {
68 | if _delimValueToName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:108: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
106 |
107 | private static let accentValueLock = NSLock()
108 | 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: annotate '_accentValueToName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public static var accentValueToName: [String: String] {
110 | if _accentValueToName == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:140: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
138 | }
139 |
140 | 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: annotate 'supportedLatexSymbols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 | "square" : MTMathAtomFactory.placeholder(),
142 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:406: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
404 |
405 | private static let textToLatexLock = NSLock()
406 | 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: annotate '_textToLatexSymbolName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
407 | public static var textToLatexSymbolName: [String: String] {
408 | get {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:447: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
445 | // public static let sharedInstance = MTMathAtomFactory()
446 |
447 | 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: annotate 'fontStyles' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 | "mathnormal" : .defaultStyle,
449 | "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,
[11/26] Compiling SwiftMath MTUnicode.swift
[12/26] Compiling SwiftMath resource_bundle_accessor.swift
[13/26] Compiling SwiftMath MTColor.swift
[14/26] Compiling SwiftMath MTConfig.swift
[15/26] Emitting module SwiftMath
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:97: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
93 | }
94 | }
95 | private class BundleManager {
| `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
96 | //Note: below should be lightweight and without threadsafe problem.
97 | 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: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | 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: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | MTFontManager()
16 | }()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:66: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
64 |
65 | private static let delimValueLock = NSLock()
66 | 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: annotate '_delimValueToName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 | public static var delimValueToName: [String: String] {
68 | if _delimValueToName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:108: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
106 |
107 | private static let accentValueLock = NSLock()
108 | 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: annotate '_accentValueToName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
109 | public static var accentValueToName: [String: String] {
110 | if _accentValueToName == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:140: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
138 | }
139 |
140 | 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: annotate 'supportedLatexSymbols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 | "square" : MTMathAtomFactory.placeholder(),
142 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:406: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
404 |
405 | private static let textToLatexLock = NSLock()
406 | 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: annotate '_textToLatexSymbolName' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
407 | public static var textToLatexSymbolName: [String: String] {
408 | get {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathAtomFactory.swift:447: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
445 | // public static let sharedInstance = MTMathAtomFactory()
446 |
447 | 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: annotate 'fontStyles' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 | "mathnormal" : .defaultStyle,
449 | "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:124: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
122 | ]
123 |
124 | 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: annotate 'styleToCommands' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | .display: "displaystyle",
126 | .text: "textstyle",
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathRender/MTMathList.swift:609:13: note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
607 | Styling of a line of math
608 | */
609 | public enum MTLineStyle:Int, Comparable {
| `- note: consider making enum 'MTLineStyle' conform to the 'Sendable' protocol
610 | /// Display style
611 | 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: annotate 'initialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'supported' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'interElementSpaceArray' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | private let interElementLock = NSLock()
25 |
[16/26] Compiling SwiftMath MTFontMathTableV2.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:97: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
93 | }
94 | }
95 | private class BundleManager {
| `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
96 | //Note: below should be lightweight and without threadsafe problem.
97 | 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: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private var cgFonts = [MathFont: CGFont]()
[17/26] Compiling SwiftMath MTFontV2.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:97: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
93 | }
94 | }
95 | private class BundleManager {
| `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
96 | //Note: below should be lightweight and without threadsafe problem.
97 | 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: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private var cgFonts = [MathFont: CGFont]()
[18/26] Compiling SwiftMath MathFont.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMath/MathBundle/MathFont.swift:97: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
93 | }
94 | }
95 | private class BundleManager {
| `- note: class 'BundleManager' does not conform to the 'Sendable' protocol
96 | //Note: below should be lightweight and without threadsafe problem.
97 | 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: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private var cgFonts = [MathFont: CGFont]()
[19/26] Compiling SwiftMath MTFontMathTable.swift
[20/26] Compiling SwiftMath MTLabel.swift
[21/26] Compiling SwiftMath MathImage.swift
[22/26] Compiling SwiftMath MTBezierPath.swift
[23/26] 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: annotate 'initialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'supported' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Draws itself in the given graphics context.
[24/26] 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: annotate 'initialized' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'supported' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Draws itself in the given graphics context.
[25/26] 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: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | MTFontManager()
16 | }()
[26/26] 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: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | MTFontManager()
16 | }()
Build complete! (19.87s)
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" : [
"ConcurrencyThreadsafeTests.swift",
"MTFontMathTableV2Tests.swift",
"MTFontV2Tests.swift",
"MTMathListBuilderTests.swift",
"MTMathListTests.swift",
"MTTypesetterTests.swift",
"MathFontTests.swift",
"MathImageTests.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.swift",
"MathRender/MTUnicode.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.