Build Information
Successful build of LaTeXSwiftUI, reference v1.5.0 (c45e0f
), with Swift 6.1 for macOS (SPM) on 1 May 2025 08:08:43 UTC.
Swift 6 data race errors: 9
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/colinc86/LaTeXSwiftUI.git
Reference: v1.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/colinc86/LaTeXSwiftUI
* tag v1.5.0 -> FETCH_HEAD
HEAD is now at c45e0fd Update README version.
Cloned https://github.com/colinc86/LaTeXSwiftUI.git
Revision (git rev-parse @):
c45e0fd45f64923c49c5904a9f9626bc8939f05f
SUCCESS checkout https://github.com/colinc86/LaTeXSwiftUI.git at v1.5.0
Fetching https://github.com/swhitty/SwiftDraw
Fetching https://github.com/colinc86/MathJaxSwift
Fetching https://github.com/Kitura/swift-html-entities
[1/1431] Fetching mathjaxswift
[73/7734] Fetching mathjaxswift, swiftdraw
[74/8397] Fetching mathjaxswift, swiftdraw, swift-html-entities
[1808/2094] Fetching mathjaxswift, swift-html-entities
Fetched https://github.com/swhitty/SwiftDraw from cache (1.16s)
Fetched https://github.com/Kitura/swift-html-entities from cache (1.23s)
Fetched https://github.com/colinc86/MathJaxSwift from cache (1.23s)
Computing version for https://github.com/Kitura/swift-html-entities
Computed https://github.com/Kitura/swift-html-entities at 4.0.1 (1.87s)
Computing version for https://github.com/swhitty/SwiftDraw
Computed https://github.com/swhitty/SwiftDraw at 0.20.1 (0.63s)
Computing version for https://github.com/colinc86/MathJaxSwift
Computed https://github.com/colinc86/MathJaxSwift at 3.4.0 (0.68s)
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/swhitty/SwiftDraw
Working copy of https://github.com/swhitty/SwiftDraw resolved at 0.20.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "latexswiftui",
"name": "LaTeXSwiftUI",
"url": "https://github.com/colinc86/LaTeXSwiftUI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LaTeXSwiftUI",
"dependencies": [
{
"identity": "mathjaxswift",
"name": "MathJaxSwift",
"url": "https://github.com/colinc86/MathJaxSwift",
"version": "3.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MathJaxSwift",
"dependencies": [
]
},
{
"identity": "swiftdraw",
"name": "SwiftDraw",
"url": "https://github.com/swhitty/SwiftDraw",
"version": "0.21.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftDraw",
"dependencies": [
]
},
{
"identity": "swift-html-entities",
"name": "HTMLEntities",
"url": "https://github.com/Kitura/swift-html-entities",
"version": "4.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-html-entities",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/colinc86/LaTeXSwiftUI.git
[1/1160] Fetching latexswiftui
Fetched https://github.com/colinc86/LaTeXSwiftUI.git from cache (0.99s)
Fetching https://github.com/colinc86/MathJaxSwift from cache
Fetching https://github.com/Kitura/swift-html-entities from cache
Fetching https://github.com/swhitty/SwiftDraw from cache
Fetched https://github.com/colinc86/MathJaxSwift from cache (0.47s)
Fetched https://github.com/Kitura/swift-html-entities from cache (0.47s)
Fetched https://github.com/swhitty/SwiftDraw from cache (0.47s)
Computing version for https://github.com/Kitura/swift-html-entities
Computed https://github.com/Kitura/swift-html-entities at 4.0.1 (0.54s)
Computing version for https://github.com/colinc86/MathJaxSwift
Computed https://github.com/colinc86/MathJaxSwift at 3.4.0 (0.03s)
Computing version for https://github.com/swhitty/SwiftDraw
Computed https://github.com/swhitty/SwiftDraw at 0.21.0 (0.53s)
Creating working copy for https://github.com/swhitty/SwiftDraw
Working copy of https://github.com/swhitty/SwiftDraw resolved at 0.21.0
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/colinc86/LaTeXSwiftUI.git
Working copy of https://github.com/colinc86/LaTeXSwiftUI.git resolved at v1.5.0 (c45e0fd)
warning: '.resolve-product-dependencies': dependency 'latexswiftui' is not used by any target
Found 3 product dependencies
- MathJaxSwift
- SwiftDraw
- HTMLEntities
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/colinc86/LaTeXSwiftUI.git
https://github.com/colinc86/LaTeXSwiftUI.git
{
"dependencies" : [
{
"identity" : "mathjaxswift",
"requirement" : {
"range" : [
{
"lower_bound" : "3.4.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/colinc86/MathJaxSwift"
},
{
"identity" : "swiftdraw",
"requirement" : {
"range" : [
{
"lower_bound" : "0.20.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swhitty/SwiftDraw"
},
{
"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" : "15.0"
},
{
"name" : "macos",
"version" : "12.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",
"SwiftDraw",
"HTMLEntities"
],
"product_memberships" : [
"LaTeXSwiftUI"
],
"sources" : [
"Extensions/EnvironmentValues+Extensions.swift",
"Extensions/Font+Extensions.swift",
"Extensions/Image+Extensions.swift",
"Extensions/MathJax+Extensions.swift",
"Extensions/NSImage+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/ComponentBlock.swift",
"Models/HashableCGRect.swift",
"Models/HashableCGSize.swift",
"Models/ImageContainer.swift",
"Models/Parser.swift",
"Models/Renderer.swift",
"Models/SVG.swift",
"Models/SVGGeometry.swift",
"Previews/LaTeX_Previews+Color.swift",
"Previews/LaTeX_Previews+Fonts.swift",
"Previews/LaTeX_Previews+Modes.swift",
"Previews/LaTeX_Previews+Numbers.swift",
"Previews/LaTeX_Previews+Special.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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[4/6] Copying mjn
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/130] Compiling HTMLEntities Utilities.swift
[8/130] Compiling HTMLEntities String+HTMLEntities.swift
[9/130] Compiling HTMLEntities ParseError.swift
[10/130] Emitting module HTMLEntities
[11/130] Compiling HTMLEntities Constants.swift
[12/130] Compiling SwiftDraw CGImage+Mask.swift
[13/130] Compiling SwiftDraw CGPath+Segment.swift
[14/130] Compiling SwiftDraw CGPattern+Closure.swift
[15/130] Compiling SwiftDraw CGTextRenderer+Code.swift
[16/130] Compiling SwiftDraw CommandLine+Process.swift
[17/134] Compiling SwiftDraw LayerTree.CommandGenerator.swift
[18/134] Compiling SwiftDraw LayerTree.CommandOptimizer.swift
[19/134] Compiling SwiftDraw LayerTree.Gradient.swift
[20/134] Compiling SwiftDraw LayerTree.Image.swift
[21/134] Compiling SwiftDraw LayerTree.Layer.swift
[22/134] Compiling SwiftDraw LayerTree.Path+Bounds.swift
[23/134] Compiling SwiftDraw LayerTree.Path+Reversed.swift
[24/134] Compiling SwiftDraw LayerTree.Path+Subpath.swift
[25/134] Compiling SwiftDraw LayerTree.Path.swift
[26/134] Emitting module MathJaxSwift
[27/134] Compiling SwiftDraw DOM.Use.swift
[28/134] Compiling SwiftDraw DOM.swift
[29/134] Compiling SwiftDraw LayerTree.Builder.Layer.swift
[30/134] Compiling SwiftDraw LayerTree.Builder.Path.Arc.swift
[31/134] Compiling SwiftDraw LayerTree.Builder.Path.swift
[32/134] Compiling SwiftDraw LayerTree.Builder.Shape.swift
[33/134] Compiling SwiftDraw LayerTree.Builder.Text.swift
[34/134] Compiling SwiftDraw LayerTree.Builder.swift
[35/134] Compiling SwiftDraw LayerTree.Color.swift
[36/134] Compiling SwiftDraw DOM.Color.swift
[37/134] Compiling SwiftDraw DOM.Element.swift
[38/134] Compiling SwiftDraw DOM.Filter.swift
[39/134] Compiling SwiftDraw DOM.Image.swift
[40/134] Compiling SwiftDraw CommandLine.Arguments.swift
[41/134] Compiling SwiftDraw CommandLine.Configuration.swift
[42/134] Compiling SwiftDraw CommandLine.swift
[43/134] Compiling SwiftDraw CoordinateFormatter.swift
[44/134] Compiling SwiftDraw DOM.LinearGradient.swift
[45/134] Compiling SwiftDraw DOM.Path.swift
[46/134] Compiling SwiftDraw DOM.Pattern.swift
[47/134] Compiling SwiftDraw DOM.PresentationAttributes.swift
[48/134] Compiling SwiftDraw DOM.RadialGradient.swift
[49/134] Compiling SwiftDraw DOM.SVG+Parse.swift
[50/134] Compiling SwiftDraw DOM.SVG.swift
[51/134] Compiling SwiftDraw DOM.Switch.swift
[52/134] Compiling SwiftDraw DOM.Text.swift
[53/134] Compiling MathJaxSwift CHTMLOutputProcessorOptions.swift
[54/134] Compiling MathJaxSwift OutputProcessorOptions.swift
[55/134] Compiling MathJaxSwift SVGOutputProcessorOptions.swift
[56/134] Compiling MathJaxSwift resource_bundle_accessor.swift
[57/134] Emitting module SwiftDraw
[58/142] Compiling SwiftDraw Parser.XML.Attributes.swift
[59/142] Compiling SwiftDraw Parser.XML.Color.swift
[60/142] Compiling SwiftDraw Parser.XML.Element.swift
[61/142] Compiling SwiftDraw Parser.XML.Filter.swift
[62/142] Compiling SwiftDraw Parser.XML.Image.swift
[63/142] Compiling SwiftDraw Parser.XML.LinearGradient.swift
[64/142] Compiling SwiftDraw Parser.XML.Path.swift
[65/142] Compiling SwiftDraw Parser.XML.Pattern.swift
[93/142] Compiling SwiftDraw URL+Data.swift
[94/142] Compiling SwiftDraw URL+Fragment.swift
[95/142] Compiling SwiftDraw PairedSequence.swift
[96/142] Compiling SwiftDraw TextOutputStream+StandardError.swift
[97/142] Compiling SwiftDraw XML.Element.swift
[98/142] Compiling SwiftDraw XML.Formatter.SVG.swift
[99/142] Compiling SwiftDraw XML.Formatter.swift
[100/142] Compiling SwiftDraw XML.SAXParser.swift
[109/142] Compiling SwiftDraw NSImage+SVG.swift
[119/142] Compiling SwiftDraw Parser.XML.RadialGradient.swift
[120/142] Compiling SwiftDraw Parser.XML.SVG.swift
[121/142] Compiling SwiftDraw Parser.XML.Scanner.swift
[122/142] Compiling SwiftDraw Parser.XML.StyleSheet.swift
[123/142] Compiling SwiftDraw Parser.XML.Text.swift
[124/142] Compiling SwiftDraw Parser.XML.Transform.swift
[125/142] Compiling SwiftDraw Parser.XML.Use.swift
[126/142] Compiling SwiftDraw Parser.XML.swift
[127/142] Compiling SwiftDraw Renderer.CGText+Path.swift
[128/142] Compiling SwiftDraw Renderer.CGText.swift
[129/142] Compiling SwiftDraw Renderer.CoreGraphics.swift
[130/142] Compiling SwiftDraw Renderer.LayerTree.swift
[131/142] Compiling SwiftDraw Renderer.SFSymbol+CGPath.swift
[132/142] Compiling SwiftDraw Renderer.SFSymbol.swift
[133/142] Compiling SwiftDraw Renderer.SVG.swift
[134/142] Compiling SwiftDraw Renderer.swift
[135/142] Compiling SwiftDraw SVG+CoreGraphics.swift
[136/142] Compiling SwiftDraw SVG+Deprecated.swift
[137/142] Compiling SwiftDraw SVG+Hashable.swift
[138/142] Compiling SwiftDraw SVG+Insets.swift
[139/142] Compiling SwiftDraw SVG.swift
[140/142] Compiling SwiftDraw SVGView.swift
[141/142] Compiling SwiftDraw Stack.swift
[142/142] Compiling SwiftDraw UIImage+SVG.swift
[143/173] Emitting module LaTeXSwiftUI
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/EnvironmentValues+Extensions.swift:82:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
80 |
81 | private struct PlatformFontKey: EnvironmentKey {
82 | static let defaultValue: _Font? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | }
84 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'svgRenderer' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | // MARK: Public properties
[144/176] Compiling LaTeXSwiftUI LaTeXStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:36:8: warning: call to main actor-isolated instance method 'formatEquationNumber' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
35 | .equationNumberMode(.right)
36 | .formatEquationNumber { n in
| `- warning: call to main actor-isolated instance method 'formatEquationNumber' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | "(\(n))"
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:145:8: note: calls to instance method 'formatEquationNumber' from outside of its actor context are implicitly asynchronous
143 | /// - Parameter perform: The block that will format the equation number.
144 | /// - Returns: A view that formats its equation numbers.
145 | func formatEquationNumber(_ perform: @escaping LaTeX.FormatEquationNumber) -> some View {
| `- note: calls to instance method 'formatEquationNumber' from outside of its actor context are implicitly asynchronous
146 | environment(\.formatEquationNumber, perform)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:35:8: warning: call to main actor-isolated instance method 'equationNumberMode' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
35 | .equationNumberMode(.right)
| `- warning: call to main actor-isolated instance method 'equationNumberMode' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | .formatEquationNumber { n in
37 | "(\(n))"
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:120:8: note: calls to instance method 'equationNumberMode' from outside of its actor context are implicitly asynchronous
118 | /// - Parameter mode: The equation number mode.
119 | /// - Returns: A view that numbers its equations.
120 | func equationNumberMode(_ mode: LaTeX.EquationNumberMode) -> some View {
| `- note: calls to instance method 'equationNumberMode' from outside of its actor context are implicitly asynchronous
121 | environment(\.equationNumberMode, mode)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:34:8: warning: call to main actor-isolated instance method 'unencoded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
| `- warning: call to main actor-isolated instance method 'unencoded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | .equationNumberMode(.right)
36 | .formatEquationNumber { n in
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:77:8: note: calls to instance method 'unencoded' from outside of its actor context are implicitly asynchronous
75 | /// - Parameter unencode: Whether the variable should be set to true or false.
76 | /// - Returns: A view that displays unencoded text.
77 | func unencoded(_ unencode: Bool = true) -> some View {
| `- note: calls to instance method 'unencoded' from outside of its actor context are implicitly asynchronous
78 | environment(\.unencodeHTML, unencode)
79 | }
[145/176] Compiling LaTeXSwiftUI StandardLaTeXStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:36:8: warning: call to main actor-isolated instance method 'formatEquationNumber' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
35 | .equationNumberMode(.right)
36 | .formatEquationNumber { n in
| `- warning: call to main actor-isolated instance method 'formatEquationNumber' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | "(\(n))"
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:145:8: note: calls to instance method 'formatEquationNumber' from outside of its actor context are implicitly asynchronous
143 | /// - Parameter perform: The block that will format the equation number.
144 | /// - Returns: A view that formats its equation numbers.
145 | func formatEquationNumber(_ perform: @escaping LaTeX.FormatEquationNumber) -> some View {
| `- note: calls to instance method 'formatEquationNumber' from outside of its actor context are implicitly asynchronous
146 | environment(\.formatEquationNumber, perform)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:35:8: warning: call to main actor-isolated instance method 'equationNumberMode' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
35 | .equationNumberMode(.right)
| `- warning: call to main actor-isolated instance method 'equationNumberMode' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | .formatEquationNumber { n in
37 | "(\(n))"
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:120:8: note: calls to instance method 'equationNumberMode' from outside of its actor context are implicitly asynchronous
118 | /// - Parameter mode: The equation number mode.
119 | /// - Returns: A view that numbers its equations.
120 | func equationNumberMode(_ mode: LaTeX.EquationNumberMode) -> some View {
| `- note: calls to instance method 'equationNumberMode' from outside of its actor context are implicitly asynchronous
121 | environment(\.equationNumberMode, mode)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:34:8: warning: call to main actor-isolated instance method 'unencoded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
| `- warning: call to main actor-isolated instance method 'unencoded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | .equationNumberMode(.right)
36 | .formatEquationNumber { n in
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:77:8: note: calls to instance method 'unencoded' from outside of its actor context are implicitly asynchronous
75 | /// - Parameter unencode: Whether the variable should be set to true or false.
76 | /// - Returns: A view that displays unencoded text.
77 | func unencoded(_ unencode: Bool = true) -> some View {
| `- note: calls to instance method 'unencoded' from outside of its actor context are implicitly asynchronous
78 | environment(\.unencodeHTML, unencode)
79 | }
[146/176] Compiling LaTeXSwiftUI ComponentBlocksText.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:36:8: warning: call to main actor-isolated instance method 'formatEquationNumber' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
35 | .equationNumberMode(.right)
36 | .formatEquationNumber { n in
| `- warning: call to main actor-isolated instance method 'formatEquationNumber' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | "(\(n))"
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:145:8: note: calls to instance method 'formatEquationNumber' from outside of its actor context are implicitly asynchronous
143 | /// - Parameter perform: The block that will format the equation number.
144 | /// - Returns: A view that formats its equation numbers.
145 | func formatEquationNumber(_ perform: @escaping LaTeX.FormatEquationNumber) -> some View {
| `- note: calls to instance method 'formatEquationNumber' from outside of its actor context are implicitly asynchronous
146 | environment(\.formatEquationNumber, perform)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:35:8: warning: call to main actor-isolated instance method 'equationNumberMode' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
35 | .equationNumberMode(.right)
| `- warning: call to main actor-isolated instance method 'equationNumberMode' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | .formatEquationNumber { n in
37 | "(\(n))"
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:120:8: note: calls to instance method 'equationNumberMode' from outside of its actor context are implicitly asynchronous
118 | /// - Parameter mode: The equation number mode.
119 | /// - Returns: A view that numbers its equations.
120 | func equationNumberMode(_ mode: LaTeX.EquationNumberMode) -> some View {
| `- note: calls to instance method 'equationNumberMode' from outside of its actor context are implicitly asynchronous
121 | environment(\.equationNumberMode, mode)
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Styles/StandardLaTeXStyle.swift:34:8: warning: call to main actor-isolated instance method 'unencoded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
30 | public struct StandardLaTeXStyle: LaTeXStyle {
31 |
32 | public func makeBody(content: LaTeX) -> some View {
| `- note: add '@MainActor' to make instance method 'makeBody(content:)' part of global actor 'MainActor'
33 | content
34 | .unencoded()
| `- warning: call to main actor-isolated instance method 'unencoded' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | .equationNumberMode(.right)
36 | .formatEquationNumber { n in
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Extensions/View+Extensions.swift:77:8: note: calls to instance method 'unencoded' from outside of its actor context are implicitly asynchronous
75 | /// - Parameter unencode: Whether the variable should be set to true or false.
76 | /// - Returns: A view that displays unencoded text.
77 | func unencoded(_ unencode: Bool = true) -> some View {
| `- note: calls to instance method 'unencoded' from outside of its actor context are implicitly asynchronous
78 | environment(\.unencodeHTML, unencode)
79 | }
[147/176] Compiling LaTeXSwiftUI LaTeX_Previews+Special.swift
[148/176] Compiling LaTeXSwiftUI LaTeX_Previews+Styles.swift
[149/176] Compiling LaTeXSwiftUI DefaultLaTeXStyle.swift
[150/176] Compiling LaTeXSwiftUI ComponentBlocksViews.swift
[151/176] Compiling LaTeXSwiftUI EquationNumber.swift
[152/176] Compiling LaTeXSwiftUI HorizontalImageScroller.swift
[153/176] Compiling LaTeXSwiftUI EnvironmentValues+Extensions.swift
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/EnvironmentValues+Extensions.swift:82:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
80 |
81 | private struct PlatformFontKey: EnvironmentKey {
82 | static let defaultValue: _Font? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | }
84 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'svgRenderer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
[154/176] Compiling LaTeXSwiftUI Font+Extensions.swift
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/EnvironmentValues+Extensions.swift:82:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
80 |
81 | private struct PlatformFontKey: EnvironmentKey {
82 | static let defaultValue: _Font? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | }
84 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'svgRenderer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
[155/176] Compiling LaTeXSwiftUI Image+Extensions.swift
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/EnvironmentValues+Extensions.swift:82:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
80 |
81 | private struct PlatformFontKey: EnvironmentKey {
82 | static let defaultValue: _Font? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | }
84 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'svgRenderer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
[156/176] Compiling LaTeXSwiftUI MathJax+Extensions.swift
/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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/EnvironmentValues+Extensions.swift:82:14: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
80 |
81 | private struct PlatformFontKey: EnvironmentKey {
82 | static let defaultValue: _Font? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type '_Font?' (aka 'Optional<NSFont>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
83 | }
84 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'svgRenderer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | do {
33 | return try MathJax(preferredOutputFormat: .svg)
[157/176] Compiling LaTeXSwiftUI SVG.swift
[158/176] Compiling LaTeXSwiftUI SVGGeometry.swift
[159/176] Compiling LaTeXSwiftUI LaTeX_Previews+Color.swift
[160/176] Compiling LaTeXSwiftUI LaTeX_Previews+Fonts.swift
[161/176] Compiling LaTeXSwiftUI LaTeX_Previews+Modes.swift
[162/176] Compiling LaTeXSwiftUI LaTeX_Previews+Numbers.swift
[163/176] Compiling LaTeXSwiftUI ComponentBlock.swift
[164/176] Compiling LaTeXSwiftUI HashableCGRect.swift
[165/176] Compiling LaTeXSwiftUI HashableCGSize.swift
[166/176] Compiling LaTeXSwiftUI ImageContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:83:9: warning: capture of 'self' with non-sendable type 'Renderer?' in a '@Sendable' closure
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
:
81 | set {
82 | parsedBlocksQueue.async(flags: .barrier) { [weak self] in
83 | self?._parsedBlocks = newValue
| `- warning: capture of 'self' with non-sendable type 'Renderer?' in a '@Sendable' closure
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:190:23: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'isRendering'; 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
:
188 | renderingMode: SwiftUI.Image.TemplateRenderingMode
189 | ) async {
190 | let isRen = await isRendering
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'isRendering'; this is an error in the Swift 6 language mode
191 | let ren = await rendered
192 | let renSync = await syncRendered
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:191:21: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'rendered'; 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
:
189 | ) async {
190 | let isRen = await isRendering
191 | let ren = await rendered
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'rendered'; this is an error in the Swift 6 language mode
192 | let renSync = await syncRendered
193 | guard !isRen && !ren && !renSync else {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:192:25: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'syncRendered'; 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
:
190 | let isRen = await isRendering
191 | let ren = await rendered
192 | let renSync = await syncRendered
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'syncRendered'; this is an error in the Swift 6 language mode
193 | guard !isRen && !ren && !renSync else {
194 | return
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:197:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
195 | }
196 | await MainActor.run {
197 | 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
198 | }
199 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:209:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
207 |
208 | await MainActor.run {
209 | 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
210 | isRendering = false
211 | rendered = true
[167/176] Compiling LaTeXSwiftUI Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:83:9: warning: capture of 'self' with non-sendable type 'Renderer?' in a '@Sendable' closure
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
:
81 | set {
82 | parsedBlocksQueue.async(flags: .barrier) { [weak self] in
83 | self?._parsedBlocks = newValue
| `- warning: capture of 'self' with non-sendable type 'Renderer?' in a '@Sendable' closure
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:190:23: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'isRendering'; 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
:
188 | renderingMode: SwiftUI.Image.TemplateRenderingMode
189 | ) async {
190 | let isRen = await isRendering
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'isRendering'; this is an error in the Swift 6 language mode
191 | let ren = await rendered
192 | let renSync = await syncRendered
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:191:21: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'rendered'; 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
:
189 | ) async {
190 | let isRen = await isRendering
191 | let ren = await rendered
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'rendered'; this is an error in the Swift 6 language mode
192 | let renSync = await syncRendered
193 | guard !isRen && !ren && !renSync else {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:192:25: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'syncRendered'; 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
:
190 | let isRen = await isRendering
191 | let ren = await rendered
192 | let renSync = await syncRendered
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'syncRendered'; this is an error in the Swift 6 language mode
193 | guard !isRen && !ren && !renSync else {
194 | return
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:197:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
195 | }
196 | await MainActor.run {
197 | 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
198 | }
199 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:209:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
207 |
208 | await MainActor.run {
209 | 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
210 | isRendering = false
211 | rendered = true
[168/176] Compiling LaTeXSwiftUI Renderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:83:9: warning: capture of 'self' with non-sendable type 'Renderer?' in a '@Sendable' closure
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
:
81 | set {
82 | parsedBlocksQueue.async(flags: .barrier) { [weak self] in
83 | self?._parsedBlocks = newValue
| `- warning: capture of 'self' with non-sendable type 'Renderer?' in a '@Sendable' closure
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:190:23: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'isRendering'; 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
:
188 | renderingMode: SwiftUI.Image.TemplateRenderingMode
189 | ) async {
190 | let isRen = await isRendering
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'isRendering'; this is an error in the Swift 6 language mode
191 | let ren = await rendered
192 | let renSync = await syncRendered
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:191:21: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'rendered'; 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
:
189 | ) async {
190 | let isRen = await isRendering
191 | let ren = await rendered
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'rendered'; this is an error in the Swift 6 language mode
192 | let renSync = await syncRendered
193 | guard !isRen && !ren && !renSync else {
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:192:25: warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'syncRendered'; 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
:
190 | let isRen = await isRendering
191 | let ren = await rendered
192 | let renSync = await syncRendered
| `- warning: non-sendable type 'Renderer' cannot be sent into main actor-isolated context in call to property 'syncRendered'; this is an error in the Swift 6 language mode
193 | guard !isRen && !ren && !renSync else {
194 | return
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:197:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
195 | }
196 | await MainActor.run {
197 | 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
198 | }
199 |
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Renderer.swift:209:7: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
207 |
208 | await MainActor.run {
209 | 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
210 | isRendering = false
211 | rendered = true
[169/176] Compiling LaTeXSwiftUI NSImage+Extensions.swift
[170/176] Compiling LaTeXSwiftUI Range+Extensions.swift
[171/176] Compiling LaTeXSwiftUI TeXInputProcessorOptions+Extensions.swift
[172/176] Compiling LaTeXSwiftUI View+Extensions.swift
[173/176] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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/Cache.swift:122:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
120 | func setDataCacheValue(_ value: Data, for key: SVGCacheKey) {
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:123:57: warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
59 |
60 | /// An SVG cache key.
61 | struct SVGCacheKey: CacheKey {
| `- note: consider making struct 'SVGCacheKey' conform to the 'Sendable' protocol
62 | static let keyType: String = "svg"
63 | let componentText: String
:
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
| `- warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:145:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
143 | func setImageCacheValue(_ value: _Image, for key: ImageCacheKey) {
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:146:33: warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
| `- warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
147 | }
148 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
[174/176] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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/Cache.swift:122:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
120 | func setDataCacheValue(_ value: Data, for key: SVGCacheKey) {
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:123:57: warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
59 |
60 | /// An SVG cache key.
61 | struct SVGCacheKey: CacheKey {
| `- note: consider making struct 'SVGCacheKey' conform to the 'Sendable' protocol
62 | static let keyType: String = "svg"
63 | let componentText: String
:
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
| `- warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:145:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
143 | func setImageCacheValue(_ value: _Image, for key: ImageCacheKey) {
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:146:33: warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
| `- warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
147 | }
148 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
[175/176] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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/Cache.swift:122:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
120 | func setDataCacheValue(_ value: Data, for key: SVGCacheKey) {
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:123:57: warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
59 |
60 | /// An SVG cache key.
61 | struct SVGCacheKey: CacheKey {
| `- note: consider making struct 'SVGCacheKey' conform to the 'Sendable' protocol
62 | static let keyType: String = "svg"
63 | let componentText: String
:
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
| `- warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:145:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
143 | func setImageCacheValue(_ value: _Image, for key: ImageCacheKey) {
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:146:33: warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
| `- warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
147 | }
148 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
[176/176] Compiling LaTeXSwiftUI Component.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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- 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/Cache.swift:122:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
120 | func setDataCacheValue(_ value: Data, for key: SVGCacheKey) {
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:123:57: warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
59 |
60 | /// An SVG cache key.
61 | struct SVGCacheKey: CacheKey {
| `- note: consider making struct 'SVGCacheKey' conform to the 'Sendable' protocol
62 | static let keyType: String = "svg"
63 | let componentText: String
:
121 | dataCacheQueue.async(flags: .barrier) { [weak self] in
122 | guard let self = self else { return }
123 | self.dataCache.setObject(value as NSData, forKey: key.key() as NSString)
| `- warning: capture of 'key' with non-sendable type 'Cache.SVGCacheKey' in a '@Sendable' closure
124 | }
125 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:145:24: warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
54 | }
55 |
56 | internal class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
57 |
58 | // MARK: Types
:
143 | func setImageCacheValue(_ value: _Image, for key: ImageCacheKey) {
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Cache?' in a '@Sendable' closure
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
147 | }
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/Models/Cache.swift:146:33: warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
144 | imageCacheQueue.async(flags: .barrier) { [weak self] in
145 | guard let self = self else { return }
146 | self.imageCache.setObject(value, forKey: key.key() as NSString)
| `- warning: capture of 'value' with non-sendable type '_Image' (aka 'NSImage') in a '@Sendable' closure
147 | }
148 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
64 | __attribute__((objc_subclassing_restricted))
65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
66 | @interface NSImage : NSObject
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
67 |
68 | #pragma mark - Initialization
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.parsingMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.errorMode' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
/Users/admin/builder/spi-builder-workspace/Sources/LaTeXSwiftUI/LaTeX.swift:281:20: warning: sending 'self.renderer' risks causing data races; this is an error in the Swift 6 language mode
279 | /// Renders the view's components.
280 | private func renderAsync() async {
281 | 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
282 | latex: latex,
283 | unencodeHTML: unencodeHTML,
Build complete! (15.62s)
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" : "swiftdraw",
"requirement" : {
"range" : [
{
"lower_bound" : "0.20.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swhitty/SwiftDraw"
},
{
"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" : "15.0"
},
{
"name" : "macos",
"version" : "12.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",
"SwiftDraw",
"HTMLEntities"
],
"product_memberships" : [
"LaTeXSwiftUI"
],
"sources" : [
"Extensions/EnvironmentValues+Extensions.swift",
"Extensions/Font+Extensions.swift",
"Extensions/Image+Extensions.swift",
"Extensions/MathJax+Extensions.swift",
"Extensions/NSImage+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/ComponentBlock.swift",
"Models/HashableCGRect.swift",
"Models/HashableCGSize.swift",
"Models/ImageContainer.swift",
"Models/Parser.swift",
"Models/Renderer.swift",
"Models/SVG.swift",
"Models/SVGGeometry.swift",
"Previews/LaTeX_Previews+Color.swift",
"Previews/LaTeX_Previews+Fonts.swift",
"Previews/LaTeX_Previews+Modes.swift",
"Previews/LaTeX_Previews+Numbers.swift",
"Previews/LaTeX_Previews+Special.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.