Build Information
Successful build of LaTeXSwiftUI with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 16
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/colinc86/LaTeXSwiftUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/colinc86/LaTeXSwiftUI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 766be13 Merge pull request #33 from colinc86/develop
Cloned https://github.com/colinc86/LaTeXSwiftUI.git
Revision (git rev-parse @):
766be13e75a901cd0097122be189bac88b5b1963
SUCCESS checkout https://github.com/colinc86/LaTeXSwiftUI.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/colinc86/LaTeXSwiftUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[4/7] Copying Preview Assets.xcassets
[5/7] Copying mjn
[6/7] Write swift-version-6F35C1178C84523A.txt
[8/103] Compiling HTMLEntities Utilities.swift
[9/103] Compiling HTMLEntities String+HTMLEntities.swift
[10/103] Compiling HTMLEntities ParseError.swift
[11/103] Emitting module HTMLEntities
[12/103] Compiling HTMLEntities Constants.swift
[13/103] Compiling MathJaxSwift SafeProtocols.swift
[14/103] Compiling MathJaxSwift SafeStyles.swift
[15/103] Compiling MathJaxSwift AMInputProcessorOptions.swift
[16/103] Compiling SVGView SVGParserPrimitives.swift
[17/107] Compiling MathJaxSwift ColorOptions.swift
[18/107] Compiling MathJaxSwift MathtoolsOptions.swift
[19/107] Compiling MathJaxSwift NoundefinedOptions.swift
[20/107] Compiling MathJaxSwift PhysicsOptions.swift
[21/107] Compiling SVGView SVGCircle.swift
[22/107] Compiling SVGView SVGEllipse.swift
[23/107] Compiling SVGView SVGDataImage.swift
[24/107] Compiling SVGView SVGURLImage.swift
[25/107] Compiling SVGView SVGGroup.swift
[26/107] Compiling SVGView SVGLength.swift
[27/107] Compiling SVGView SVGPaint.swift
[28/107] Compiling SVGView SVGPreserveAspectRatio.swift
[29/107] Compiling SVGView SVGStroke.swift
[30/107] Emitting module MathJaxSwift
[31/107] Compiling SVGView SVGLine.swift
[32/107] Compiling SVGView SVGPath.swift
[33/107] Compiling SVGView SVGPolygon.swift
[34/107] Compiling SVGView SVGPolyline.swift
[35/107] Compiling MathJaxSwift PackageLock.swift
[36/107] Compiling MathJaxSwift HTMLParser.swift
[37/107] Compiling MathJaxSwift MMLParser.swift
[38/107] Compiling SVGView SVGShapeParser.swift
[39/107] Compiling SVGView SVGStructureParsers.swift
[40/107] Compiling MathJaxSwift MathJax.swift
[41/107] Compiling MathJaxSwift ConversionOptions.swift
[42/107] Compiling MathJaxSwift A11YOptions.swift
[43/107] Compiling SVGView SVGAttribute.swift
[44/107] Compiling SVGView SVGFontSizeAttribute.swift
[45/107] Compiling SVGView SVGImage.swift
[46/107] Compiling SVGView SVGNode.swift
[47/107] Compiling SVGView SVGShape.swift
[48/107] Compiling SVGView SVGText.swift
[49/107] Compiling SVGView SVGUserSpaceNode.swift
[50/107] Compiling SVGView SVGViewport.swift
[51/107] Compiling SVGView SVGColor.swift
[52/107] Compiling SVGView SVGFont.swift
[53/107] Compiling SVGView SVGGradient.swift
[54/107] Compiling MathJaxSwift CHTMLOutputProcessorOptions.swift
[55/107] Compiling MathJaxSwift OutputProcessorOptions.swift
[56/107] Compiling MathJaxSwift SVGOutputProcessorOptions.swift
[57/107] Compiling MathJaxSwift resource_bundle_accessor.swift
[58/107] Emitting module SVGView
[59/112] Compiling SVGView SVGScreen.swift
[60/112] Compiling SVGView SVGSettings.swift
[61/112] Compiling SVGView DOMParser.swift
[62/112] Compiling SVGView XMLNode.swift
[63/112] Compiling SVGView Serializable.swift
[108/112] Compiling SVGView Serializations.swift
[109/112] Compiling SVGView Serializer.swift
[110/112] Compiling SVGView MBezierPath+Extension_macOS.swift
[111/112] Compiling SVGView UIExtensions.swift
[112/112] Compiling SVGView resource_bundle_accessor.swift
[113/139] Compiling LaTeXSwiftUI DefaultLaTeXStyle.swift
[114/139] Compiling LaTeXSwiftUI LaTeXStyle.swift
[115/139] Compiling LaTeXSwiftUI StandardLaTeXStyle.swift
[116/141] Compiling LaTeXSwiftUI Image+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/MathJax+Extensions.swift:31:14: warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | internal extension MathJax {
30 |
31 | static var svgRenderer: MathJax? = {
| |- warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'svgRenderer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'svgRenderer' 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
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
[117/141] Compiling LaTeXSwiftUI ImageRenderer+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/MathJax+Extensions.swift:31:14: warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | internal extension MathJax {
30 |
31 | static var svgRenderer: MathJax? = {
| |- warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'svgRenderer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'svgRenderer' 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
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
[118/141] Compiling LaTeXSwiftUI MathJax+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/MathJax+Extensions.swift:31:14: warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | internal extension MathJax {
30 |
31 | static var svgRenderer: MathJax? = {
| |- warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'svgRenderer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'svgRenderer' 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
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
[119/141] Emitting module LaTeXSwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/CGRect+Extensions.swift:29:1: warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
27 | import CoreGraphics
28 |
29 | extension CGRect: Hashable {
| |- warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
30 |
31 | public func hash(into hasher: inout Hasher) {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:34:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | private struct ErrorModeKey: EnvironmentKey {
34 | static let defaultValue: LaTeX.ErrorMode = .original
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:67:15: note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
65 |
66 | /// The view's error mode.
67 | public enum ErrorMode {
| `- note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
68 |
69 | /// The rendered image should be displayed (if available).
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:42:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | private struct ParsingModeKey: EnvironmentKey {
42 | static let defaultValue: LaTeX.ParsingMode = .onlyEquations
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:80:15: note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
78 |
79 | /// The view's rendering mode.
80 | public enum ParsingMode {
| `- note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
81 |
82 | /// Render the entire text as the equation.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:46:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | private struct BlockModeKey: EnvironmentKey {
46 | static let defaultValue: LaTeX.BlockMode = .blockViews
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:41:15: note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
39 |
40 | /// The view's block rendering mode.
41 | public enum BlockMode {
| `- note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
42 |
43 | /// Block equations are ignored and always rendered inline.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:54:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | private struct EquationNumberModeKey: EnvironmentKey {
54 | static let defaultValue: LaTeX.EquationNumberMode = .none
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:54:15: note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
52 |
53 | /// The view's equation number mode.
54 | public enum EquationNumberMode {
| `- note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
55 |
56 | /// The view should not number named block equations.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:66:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | private struct FormatEquationNumberKey: EnvironmentKey {
66 | static let defaultValue: LaTeX.FormatEquationNumber = { "(\($0))" }
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:70:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | private struct RenderingStyleKey: EnvironmentKey {
70 | static let defaultValue: LaTeX.RenderingStyle = .wait
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:90:15: note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
88 |
89 | /// The view's rendering style.
90 | public enum RenderingStyle {
| `- note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
91 |
92 | /// The view remains empty until its finished rendering.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/MathJax+Extensions.swift:31:14: warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | internal extension MathJax {
30 |
31 | static var svgRenderer: MathJax? = {
| |- warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'svgRenderer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'svgRenderer' 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
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:80:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
78 |
79 | /// The shared cache.
80 | static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
81 |
82 | // MARK: Public properties
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:43:14: warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
41 |
42 | /// An inline equation component.
43 | static let inline = EquationComponent(
| |- warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inline' 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
44 | regex: #/\$(.*?)\$/#,
45 | terminatingRegex: #/\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:49:14: warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
47 |
48 | /// An TeX-style block equation component.
49 | static let tex = EquationComponent(
| |- warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tex' 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
50 | regex: #/\$\$\s*(.*?)\s*\$\$/#,
51 | terminatingRegex: #/\$\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:55:14: warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
53 |
54 | /// A block equation.
55 | static let block = EquationComponent(
| |- warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'block' 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
56 | regex: #/\\\[\s*(.*?)\s*\\\]/#,
57 | terminatingRegex: #/\\\]/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:61:14: warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
59 |
60 | /// A named equation component.
61 | static let named = EquationComponent(
| |- warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'named' 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
62 | regex: #/\\begin{equation}\s*(.*?)\s*\\end{equation}/#,
63 | terminatingRegex: #/\\end{equation}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:67:14: warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
65 |
66 | /// A named no number equation component.
67 | static let namedNoNumber = EquationComponent(
| |- warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'namedNoNumber' 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
68 | regex: #/\\begin{equation\*}\s*(.*?)\s*\\end{equation\*}/#,
69 | terminatingRegex: #/\\end{equation\*}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:73:14: warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
71 |
72 | // Order matters
73 | static let allEquations: [EquationComponent] = [
| |- warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEquations' 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
74 | inline,
75 | tex,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:47:22: warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | /// The SVG element regex.
47 | private static let svgRegex = #/<svg.*?>/#
| |- warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'svgRegex' 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
48 |
49 | /// The attribute regex.
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:50:22: warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// The attribute regex.
50 | private static let attributeRegex = #/\w*:*\w+=".*?"/#
| |- warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeRegex' 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
51 |
52 | // MARK: Public properties
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[120/141] Compiling LaTeXSwiftUI Range+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:51:13: warning: call to main actor-isolated instance method 'preload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | ///
48 | /// - Returns: A preloaded view.
49 | func preload() -> some View {
| `- note: add '@MainActor' to make instance method 'preload()' part of global actor 'MainActor'
50 | if let latex = self as? LaTeX {
51 | latex.preload()
| `- warning: call to main actor-isolated instance method 'preload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 | return self
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:214:15: note: calls to instance method 'preload()' from outside of its actor context are implicitly asynchronous
212 |
213 | /// Preloads the view's SVG and image data.
214 | public func preload() {
| `- note: calls to instance method 'preload()' from outside of its actor context are implicitly asynchronous
215 | preloadTask?.cancel()
216 | preloadTask = Task { await renderAsync() }
[121/141] Compiling LaTeXSwiftUI TeXInputProcessorOptions+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:51:13: warning: call to main actor-isolated instance method 'preload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | ///
48 | /// - Returns: A preloaded view.
49 | func preload() -> some View {
| `- note: add '@MainActor' to make instance method 'preload()' part of global actor 'MainActor'
50 | if let latex = self as? LaTeX {
51 | latex.preload()
| `- warning: call to main actor-isolated instance method 'preload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 | return self
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:214:15: note: calls to instance method 'preload()' from outside of its actor context are implicitly asynchronous
212 |
213 | /// Preloads the view's SVG and image data.
214 | public func preload() {
| `- note: calls to instance method 'preload()' from outside of its actor context are implicitly asynchronous
215 | preloadTask?.cancel()
216 | preloadTask = Task { await renderAsync() }
[122/141] Compiling LaTeXSwiftUI View+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:51:13: warning: call to main actor-isolated instance method 'preload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | ///
48 | /// - Returns: A preloaded view.
49 | func preload() -> some View {
| `- note: add '@MainActor' to make instance method 'preload()' part of global actor 'MainActor'
50 | if let latex = self as? LaTeX {
51 | latex.preload()
| `- warning: call to main actor-isolated instance method 'preload()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 | return self
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:214:15: note: calls to instance method 'preload()' from outside of its actor context are implicitly asynchronous
212 |
213 | /// Preloads the view's SVG and image data.
214 | public func preload() {
| `- note: calls to instance method 'preload()' from outside of its actor context are implicitly asynchronous
215 | preloadTask?.cancel()
216 | preloadTask = Task { await renderAsync() }
[123/141] Compiling LaTeXSwiftUI EquationNumber.swift
[124/141] Compiling LaTeXSwiftUI HorizontalImageScroller.swift
[125/141] Compiling LaTeXSwiftUI LaTeX_Previews+Modes.swift
[126/141] Compiling LaTeXSwiftUI LaTeX_Previews+Numbers.swift
[127/141] Compiling LaTeXSwiftUI LaTeX_Previews+Styles.swift
[128/141] Compiling LaTeXSwiftUI CGRect+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/CGRect+Extensions.swift:29:1: warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
27 | import CoreGraphics
28 |
29 | extension CGRect: Hashable {
| |- warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
30 |
31 | public func hash(into hasher: inout Hasher) {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:34:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | private struct ErrorModeKey: EnvironmentKey {
34 | static let defaultValue: LaTeX.ErrorMode = .original
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:67:15: note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
65 |
66 | /// The view's error mode.
67 | public enum ErrorMode {
| `- note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
68 |
69 | /// The rendered image should be displayed (if available).
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:42:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | private struct ParsingModeKey: EnvironmentKey {
42 | static let defaultValue: LaTeX.ParsingMode = .onlyEquations
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:80:15: note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
78 |
79 | /// The view's rendering mode.
80 | public enum ParsingMode {
| `- note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
81 |
82 | /// Render the entire text as the equation.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:46:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | private struct BlockModeKey: EnvironmentKey {
46 | static let defaultValue: LaTeX.BlockMode = .blockViews
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:41:15: note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
39 |
40 | /// The view's block rendering mode.
41 | public enum BlockMode {
| `- note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
42 |
43 | /// Block equations are ignored and always rendered inline.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:54:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | private struct EquationNumberModeKey: EnvironmentKey {
54 | static let defaultValue: LaTeX.EquationNumberMode = .none
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:54:15: note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
52 |
53 | /// The view's equation number mode.
54 | public enum EquationNumberMode {
| `- note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
55 |
56 | /// The view should not number named block equations.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:66:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | private struct FormatEquationNumberKey: EnvironmentKey {
66 | static let defaultValue: LaTeX.FormatEquationNumber = { "(\($0))" }
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:70:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | private struct RenderingStyleKey: EnvironmentKey {
70 | static let defaultValue: LaTeX.RenderingStyle = .wait
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:90:15: note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
88 |
89 | /// The view's rendering style.
90 | public enum RenderingStyle {
| `- note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
91 |
92 | /// The view remains empty until its finished rendering.
[129/141] Compiling LaTeXSwiftUI EnvironmentValues+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/CGRect+Extensions.swift:29:1: warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
27 | import CoreGraphics
28 |
29 | extension CGRect: Hashable {
| |- warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
30 |
31 | public func hash(into hasher: inout Hasher) {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:34:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | private struct ErrorModeKey: EnvironmentKey {
34 | static let defaultValue: LaTeX.ErrorMode = .original
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:67:15: note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
65 |
66 | /// The view's error mode.
67 | public enum ErrorMode {
| `- note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
68 |
69 | /// The rendered image should be displayed (if available).
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:42:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | private struct ParsingModeKey: EnvironmentKey {
42 | static let defaultValue: LaTeX.ParsingMode = .onlyEquations
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:80:15: note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
78 |
79 | /// The view's rendering mode.
80 | public enum ParsingMode {
| `- note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
81 |
82 | /// Render the entire text as the equation.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:46:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | private struct BlockModeKey: EnvironmentKey {
46 | static let defaultValue: LaTeX.BlockMode = .blockViews
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:41:15: note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
39 |
40 | /// The view's block rendering mode.
41 | public enum BlockMode {
| `- note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
42 |
43 | /// Block equations are ignored and always rendered inline.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:54:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | private struct EquationNumberModeKey: EnvironmentKey {
54 | static let defaultValue: LaTeX.EquationNumberMode = .none
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:54:15: note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
52 |
53 | /// The view's equation number mode.
54 | public enum EquationNumberMode {
| `- note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
55 |
56 | /// The view should not number named block equations.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:66:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | private struct FormatEquationNumberKey: EnvironmentKey {
66 | static let defaultValue: LaTeX.FormatEquationNumber = { "(\($0))" }
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:70:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | private struct RenderingStyleKey: EnvironmentKey {
70 | static let defaultValue: LaTeX.RenderingStyle = .wait
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:90:15: note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
88 |
89 | /// The view's rendering style.
90 | public enum RenderingStyle {
| `- note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
91 |
92 | /// The view remains empty until its finished rendering.
[130/141] Compiling LaTeXSwiftUI Font+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/CGRect+Extensions.swift:29:1: warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
27 | import CoreGraphics
28 |
29 | extension CGRect: Hashable {
| |- warning: extension declares a conformance of imported type 'CGRect' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
30 |
31 | public func hash(into hasher: inout Hasher) {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:34:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | private struct ErrorModeKey: EnvironmentKey {
34 | static let defaultValue: LaTeX.ErrorMode = .original
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ErrorMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:67:15: note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
65 |
66 | /// The view's error mode.
67 | public enum ErrorMode {
| `- note: consider making enum 'ErrorMode' conform to the 'Sendable' protocol
68 |
69 | /// The rendered image should be displayed (if available).
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:42:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | private struct ParsingModeKey: EnvironmentKey {
42 | static let defaultValue: LaTeX.ParsingMode = .onlyEquations
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.ParsingMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:80:15: note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
78 |
79 | /// The view's rendering mode.
80 | public enum ParsingMode {
| `- note: consider making enum 'ParsingMode' conform to the 'Sendable' protocol
81 |
82 | /// Render the entire text as the equation.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:46:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | private struct BlockModeKey: EnvironmentKey {
46 | static let defaultValue: LaTeX.BlockMode = .blockViews
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.BlockMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:41:15: note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
39 |
40 | /// The view's block rendering mode.
41 | public enum BlockMode {
| `- note: consider making enum 'BlockMode' conform to the 'Sendable' protocol
42 |
43 | /// Block equations are ignored and always rendered inline.
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:54:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
52 |
53 | private struct EquationNumberModeKey: EnvironmentKey {
54 | static let defaultValue: LaTeX.EquationNumberMode = .none
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.EquationNumberMode' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:54:15: note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
52 |
53 | /// The view's equation number mode.
54 | public enum EquationNumberMode {
| `- note: consider making enum 'EquationNumberMode' conform to the 'Sendable' protocol
55 |
56 | /// The view should not number named block equations.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:66:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | private struct FormatEquationNumberKey: EnvironmentKey {
66 | static let defaultValue: LaTeX.FormatEquationNumber = { "(\($0))" }
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.FormatEquationNumber' (aka '(Int) -> String') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/EnvironmentValues+Extensions.swift:70:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
68 |
69 | private struct RenderingStyleKey: EnvironmentKey {
70 | static let defaultValue: LaTeX.RenderingStyle = .wait
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'LaTeX.RenderingStyle' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' 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
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:90:15: note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
88 |
89 | /// The view's rendering style.
90 | public enum RenderingStyle {
| `- note: consider making enum 'RenderingStyle' conform to the 'Sendable' protocol
91 |
92 | /// The view remains empty until its finished rendering.
[131/141] Compiling LaTeXSwiftUI Component.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:43:14: warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
41 |
42 | /// An inline equation component.
43 | static let inline = EquationComponent(
| |- warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inline' 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
44 | regex: #/\$(.*?)\$/#,
45 | terminatingRegex: #/\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:49:14: warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
47 |
48 | /// An TeX-style block equation component.
49 | static let tex = EquationComponent(
| |- warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tex' 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
50 | regex: #/\$\$\s*(.*?)\s*\$\$/#,
51 | terminatingRegex: #/\$\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:55:14: warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
53 |
54 | /// A block equation.
55 | static let block = EquationComponent(
| |- warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'block' 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
56 | regex: #/\\\[\s*(.*?)\s*\\\]/#,
57 | terminatingRegex: #/\\\]/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:61:14: warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
59 |
60 | /// A named equation component.
61 | static let named = EquationComponent(
| |- warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'named' 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
62 | regex: #/\\begin{equation}\s*(.*?)\s*\\end{equation}/#,
63 | terminatingRegex: #/\\end{equation}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:67:14: warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
65 |
66 | /// A named no number equation component.
67 | static let namedNoNumber = EquationComponent(
| |- warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'namedNoNumber' 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
68 | regex: #/\\begin{equation\*}\s*(.*?)\s*\\end{equation\*}/#,
69 | terminatingRegex: #/\\end{equation\*}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:73:14: warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
71 |
72 | // Order matters
73 | static let allEquations: [EquationComponent] = [
| |- warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEquations' 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
74 | inline,
75 | tex,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:157:23: warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'isRendering' cannot cross actor boundary; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
155 | displayScale: CGFloat
156 | ) async {
157 | let isRen = await isRendering
| `- warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'isRendering' cannot cross actor boundary; this is an error in the Swift 6 language mode
158 | let ren = await rendered
159 | guard !isRen && !ren else {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:158:21: warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'rendered' cannot cross actor boundary; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
156 | ) async {
157 | let isRen = await isRendering
158 | let ren = await rendered
| `- warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'rendered' cannot cross actor boundary; this is an error in the Swift 6 language mode
159 | guard !isRen && !ren else {
160 | return
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:163:7: warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
161 | }
162 | await MainActor.run {
163 | isRendering = true
| `- warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | }
165 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:174:7: warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
172 |
173 | await MainActor.run {
174 | blocks = renderedBlocks
| `- warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | isRendering = false
176 | rendered = true
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:80:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
78 |
79 | /// The shared cache.
80 | static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
81 |
82 | // MARK: Public properties
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/MathJax+Extensions.swift:31:14: warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | internal extension MathJax {
30 |
31 | static var svgRenderer: MathJax? = {
| |- warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'svgRenderer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'svgRenderer' 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
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:163:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
161 | }
162 | await MainActor.run {
163 | isRendering = true
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
164 | }
165 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:174:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
172 |
173 | await MainActor.run {
174 | blocks = renderedBlocks
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
175 | isRendering = false
176 | rendered = true
[132/141] Compiling LaTeXSwiftUI Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:43:14: warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
41 |
42 | /// An inline equation component.
43 | static let inline = EquationComponent(
| |- warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inline' 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
44 | regex: #/\$(.*?)\$/#,
45 | terminatingRegex: #/\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:49:14: warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
47 |
48 | /// An TeX-style block equation component.
49 | static let tex = EquationComponent(
| |- warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tex' 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
50 | regex: #/\$\$\s*(.*?)\s*\$\$/#,
51 | terminatingRegex: #/\$\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:55:14: warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
53 |
54 | /// A block equation.
55 | static let block = EquationComponent(
| |- warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'block' 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
56 | regex: #/\\\[\s*(.*?)\s*\\\]/#,
57 | terminatingRegex: #/\\\]/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:61:14: warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
59 |
60 | /// A named equation component.
61 | static let named = EquationComponent(
| |- warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'named' 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
62 | regex: #/\\begin{equation}\s*(.*?)\s*\\end{equation}/#,
63 | terminatingRegex: #/\\end{equation}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:67:14: warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
65 |
66 | /// A named no number equation component.
67 | static let namedNoNumber = EquationComponent(
| |- warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'namedNoNumber' 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
68 | regex: #/\\begin{equation\*}\s*(.*?)\s*\\end{equation\*}/#,
69 | terminatingRegex: #/\\end{equation\*}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:73:14: warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
71 |
72 | // Order matters
73 | static let allEquations: [EquationComponent] = [
| |- warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEquations' 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
74 | inline,
75 | tex,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:157:23: warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'isRendering' cannot cross actor boundary; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
155 | displayScale: CGFloat
156 | ) async {
157 | let isRen = await isRendering
| `- warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'isRendering' cannot cross actor boundary; this is an error in the Swift 6 language mode
158 | let ren = await rendered
159 | guard !isRen && !ren else {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:158:21: warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'rendered' cannot cross actor boundary; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
156 | ) async {
157 | let isRen = await isRendering
158 | let ren = await rendered
| `- warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'rendered' cannot cross actor boundary; this is an error in the Swift 6 language mode
159 | guard !isRen && !ren else {
160 | return
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:163:7: warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
161 | }
162 | await MainActor.run {
163 | isRendering = true
| `- warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | }
165 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:174:7: warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
172 |
173 | await MainActor.run {
174 | blocks = renderedBlocks
| `- warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | isRendering = false
176 | rendered = true
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:80:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
78 |
79 | /// The shared cache.
80 | static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
81 |
82 | // MARK: Public properties
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/MathJax+Extensions.swift:31:14: warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | internal extension MathJax {
30 |
31 | static var svgRenderer: MathJax? = {
| |- warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'svgRenderer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'svgRenderer' 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
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:163:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
161 | }
162 | await MainActor.run {
163 | isRendering = true
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
164 | }
165 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:174:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
172 |
173 | await MainActor.run {
174 | blocks = renderedBlocks
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
175 | isRendering = false
176 | rendered = true
[133/141] Compiling LaTeXSwiftUI Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:43:14: warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
41 |
42 | /// An inline equation component.
43 | static let inline = EquationComponent(
| |- warning: static property 'inline' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inline' 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
44 | regex: #/\$(.*?)\$/#,
45 | terminatingRegex: #/\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:49:14: warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
47 |
48 | /// An TeX-style block equation component.
49 | static let tex = EquationComponent(
| |- warning: static property 'tex' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'tex' 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
50 | regex: #/\$\$\s*(.*?)\s*\$\$/#,
51 | terminatingRegex: #/\$\$/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:55:14: warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
53 |
54 | /// A block equation.
55 | static let block = EquationComponent(
| |- warning: static property 'block' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'block' 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
56 | regex: #/\\\[\s*(.*?)\s*\\\]/#,
57 | terminatingRegex: #/\\\]/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:61:14: warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
59 |
60 | /// A named equation component.
61 | static let named = EquationComponent(
| |- warning: static property 'named' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'named' 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
62 | regex: #/\\begin{equation}\s*(.*?)\s*\\end{equation}/#,
63 | terminatingRegex: #/\\end{equation}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:67:14: warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
65 |
66 | /// A named no number equation component.
67 | static let namedNoNumber = EquationComponent(
| |- warning: static property 'namedNoNumber' is not concurrency-safe because non-'Sendable' type 'Parser.EquationComponent<(Substring, Substring), Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'namedNoNumber' 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
68 | regex: #/\\begin{equation\*}\s*(.*?)\s*\\end{equation\*}/#,
69 | terminatingRegex: #/\\end{equation\*}/#,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Parser.swift:73:14: warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// An equation component.
34 | struct EquationComponent<T, U> {
| `- note: consider making generic struct 'EquationComponent' conform to the 'Sendable' protocol
35 | let regex: Regex<T>
36 | let terminatingRegex: Regex<U>
:
71 |
72 | // Order matters
73 | static let allEquations: [EquationComponent] = [
| |- warning: static property 'allEquations' is not concurrency-safe because non-'Sendable' type '[Parser.EquationComponent<(Substring, Substring), Substring>]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEquations' 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
74 | inline,
75 | tex,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:157:23: warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'isRendering' cannot cross actor boundary; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
155 | displayScale: CGFloat
156 | ) async {
157 | let isRen = await isRendering
| `- warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'isRendering' cannot cross actor boundary; this is an error in the Swift 6 language mode
158 | let ren = await rendered
159 | guard !isRen && !ren else {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:158:21: warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'rendered' cannot cross actor boundary; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
156 | ) async {
157 | let isRen = await isRendering
158 | let ren = await rendered
| `- warning: non-sendable type 'Renderer' passed in implicitly asynchronous call to main actor-isolated property 'rendered' cannot cross actor boundary; this is an error in the Swift 6 language mode
159 | guard !isRen && !ren else {
160 | return
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:163:7: warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
161 | }
162 | await MainActor.run {
163 | isRendering = true
| `- warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | }
165 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:174:7: warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | /// Renders equation components and updates their rendered image and offset
38 | /// values.
39 | internal class Renderer: ObservableObject {
| `- note: class 'Renderer' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: Types
:
172 |
173 | await MainActor.run {
174 | blocks = renderedBlocks
| `- warning: capture of 'self' with non-sendable type 'Renderer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | isRendering = false
176 | rendered = true
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:80:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
78 |
79 | /// The shared cache.
80 | static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
81 |
82 | // MARK: Public properties
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/MathJax+Extensions.swift:31:14: warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
29 | internal extension MathJax {
30 |
31 | static var svgRenderer: MathJax? = {
| |- warning: static property 'svgRenderer' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'svgRenderer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'svgRenderer' 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
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:163:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
161 | }
162 | await MainActor.run {
163 | isRendering = true
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
164 | }
165 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:174:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
172 |
173 | await MainActor.run {
174 | blocks = renderedBlocks
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
175 | isRendering = false
176 | rendered = true
[134/141] Compiling LaTeXSwiftUI ComponentBlocksText.swift
[135/141] Compiling LaTeXSwiftUI ComponentBlocksViews.swift
[136/141] Compiling LaTeXSwiftUI SVG.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:47:22: warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | /// The SVG element regex.
47 | private static let svgRegex = #/<svg.*?>/#
| |- warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'svgRegex' 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
48 |
49 | /// The attribute regex.
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:50:22: warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// The attribute regex.
50 | private static let attributeRegex = #/\w*:*\w+=".*?"/#
| |- warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeRegex' 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
51 |
52 | // MARK: Public properties
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[137/141] Compiling LaTeXSwiftUI SVGGeometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:47:22: warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | /// The SVG element regex.
47 | private static let svgRegex = #/<svg.*?>/#
| |- warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'svgRegex' 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
48 |
49 | /// The attribute regex.
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:50:22: warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// The attribute regex.
50 | private static let attributeRegex = #/\w*:*\w+=".*?"/#
| |- warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeRegex' 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
51 |
52 | // MARK: Public properties
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[138/141] Compiling LaTeXSwiftUI LaTeX_Previews+Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:47:22: warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
45 |
46 | /// The SVG element regex.
47 | private static let svgRegex = #/<svg.*?>/#
| |- warning: static property 'svgRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'svgRegex' 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
48 |
49 | /// The attribute regex.
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/SVGGeometry.swift:50:22: warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// The attribute regex.
50 | private static let attributeRegex = #/\w*:*\w+=".*?"/#
| |- warning: static property 'attributeRegex' is not concurrency-safe because non-'Sendable' type 'Regex<Substring>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'attributeRegex' 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
51 |
52 | // MARK: Public properties
_StringProcessing.Regex:2:15: note: generic struct 'Regex' does not conform to the 'Sendable' protocol
1 | @available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
2 | public struct Regex<Output> : RegexComponent {
| `- note: generic struct 'Regex' does not conform to the 'Sendable' protocol
3 | public var regex: Regex<Output> { get }
4 | @available(iOS 16.0, tvOS 16.0, watchOS 9.0, macOS 13.0, *)
[139/141] Compiling LaTeXSwiftUI LaTeX.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:80:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
78 |
79 | /// The shared cache.
80 | static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
81 |
82 | // MARK: Public properties
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.parsingMode' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.errorMode' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.renderer' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
[140/141] Compiling LaTeXSwiftUI Aliases.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:80:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
78 |
79 | /// The shared cache.
80 | static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
81 |
82 | // MARK: Public properties
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.parsingMode' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.errorMode' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.renderer' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
[141/141] Compiling LaTeXSwiftUI Cache.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:80:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
78 |
79 | /// The shared cache.
80 | static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' 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
81 |
82 | // MARK: Public properties
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.parsingMode' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.errorMode' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:254:20: warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
252 | /// Renders the view's components.
253 | private func renderAsync() async {
254 | await renderer.render(
| |- warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'self.renderer' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
255 | latex: latex,
256 | unencodeHTML: unencodeHTML,
Build complete! (46.03s)
Fetching https://github.com/Kitura/swift-html-entities
Fetching https://github.com/exyte/SVGView
Fetching https://github.com/colinc86/MathJaxSwift
[1/663] Fetching swift-html-entities
[81/2088] Fetching swift-html-entities, mathjaxswift
[123/4509] Fetching swift-html-entities, mathjaxswift, svgview
Fetched https://github.com/colinc86/MathJaxSwift from cache (1.49s)
Fetched https://github.com/Kitura/swift-html-entities from cache (1.49s)
Fetched https://github.com/exyte/SVGView from cache (1.49s)
Computing version for https://github.com/Kitura/swift-html-entities
Computed https://github.com/Kitura/swift-html-entities at 4.0.1 (0.67s)
Computing version for https://github.com/exyte/SVGView
Computed https://github.com/exyte/SVGView at 1.0.4 (0.71s)
Computing version for https://github.com/colinc86/MathJaxSwift
Computed https://github.com/colinc86/MathJaxSwift at 3.4.0 (0.66s)
Creating working copy for https://github.com/Kitura/swift-html-entities
Working copy of https://github.com/Kitura/swift-html-entities resolved at 4.0.1
Creating working copy for https://github.com/colinc86/MathJaxSwift
Working copy of https://github.com/colinc86/MathJaxSwift resolved at 3.4.0
Creating working copy for https://github.com/exyte/SVGView
Working copy of https://github.com/exyte/SVGView resolved at 1.0.4
Build complete.
{
"dependencies" : [
{
"identity" : "mathjaxswift",
"requirement" : {
"range" : [
{
"lower_bound" : "3.4.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/colinc86/MathJaxSwift"
},
{
"identity" : "svgview",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/exyte/SVGView"
},
{
"identity" : "swift-html-entities",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.1",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/swift-html-entities"
}
],
"manifest_display_name" : "LaTeXSwiftUI",
"name" : "LaTeXSwiftUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "LaTeXSwiftUI",
"targets" : [
"LaTeXSwiftUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LaTeXSwiftUITests",
"module_type" : "SwiftTarget",
"name" : "LaTeXSwiftUITests",
"path" : "Tests/LaTeXSwiftUITests",
"sources" : [
"GeometryTests.swift",
"ParserTests.swift"
],
"target_dependencies" : [
"LaTeXSwiftUI"
],
"type" : "test"
},
{
"c99name" : "LaTeXSwiftUI",
"module_type" : "SwiftTarget",
"name" : "LaTeXSwiftUI",
"path" : "Sources/LaTeXSwiftUI",
"product_dependencies" : [
"MathJaxSwift",
"SVGView",
"HTMLEntities"
],
"product_memberships" : [
"LaTeXSwiftUI"
],
"sources" : [
"Extensions/CGRect+Extensions.swift",
"Extensions/EnvironmentValues+Extensions.swift",
"Extensions/Font+Extensions.swift",
"Extensions/Image+Extensions.swift",
"Extensions/ImageRenderer+Extensions.swift",
"Extensions/MathJax+Extensions.swift",
"Extensions/Range+Extensions.swift",
"Extensions/TeXInputProcessorOptions+Extensions.swift",
"Extensions/View+Extensions.swift",
"LaTeX.swift",
"Models/Aliases.swift",
"Models/Cache.swift",
"Models/Component.swift",
"Models/Parser.swift",
"Models/Renderer.swift",
"Models/SVG.swift",
"Models/SVGGeometry.swift",
"Previews/LaTeX_Previews+Color.swift",
"Previews/LaTeX_Previews+Modes.swift",
"Previews/LaTeX_Previews+Numbers.swift",
"Previews/LaTeX_Previews+Styles.swift",
"Styles/DefaultLaTeXStyle.swift",
"Styles/LaTeXStyle.swift",
"Styles/StandardLaTeXStyle.swift",
"Views/ComponentBlocksText.swift",
"Views/ComponentBlocksViews.swift",
"Views/EquationNumber.swift",
"Views/HorizontalImageScroller.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.