Build Information
Successful build of SwiftRichString, reference master (e0b72d
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 18:35:06 UTC.
Swift 6 data race errors: 13
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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/malcommac/SwiftRichString.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/malcommac/SwiftRichString
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e0b72d5 Updated logo
Cloned https://github.com/malcommac/SwiftRichString.git
Revision (git rev-parse @):
e0b72d5c96968d7802856d2be096202c9798e8d1
SUCCESS checkout https://github.com/malcommac/SwiftRichString.git at master
========================================
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": "swiftrichstring",
"name": "SwiftRichString",
"url": "https://github.com/malcommac/SwiftRichString.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftRichString",
"dependencies": [
]
}
]
}
Fetching https://github.com/malcommac/SwiftRichString.git
[1/2762] Fetching swiftrichstring
Fetched https://github.com/malcommac/SwiftRichString.git from cache (1.15s)
Creating working copy for https://github.com/malcommac/SwiftRichString.git
Working copy of https://github.com/malcommac/SwiftRichString.git resolved at master (e0b72d5)
warning: '.resolve-product-dependencies': dependency 'swiftrichstring' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/malcommac/SwiftRichString.git
https://github.com/malcommac/SwiftRichString.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRichString",
"name" : "SwiftRichString",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftRichString",
"targets" : [
"SwiftRichString"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftRichStringTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRichStringTests",
"path" : "Tests/SwiftRichStringTests",
"sources" : [
"SwiftRichStringTests.swift"
],
"target_dependencies" : [
"SwiftRichString"
],
"type" : "test"
},
{
"c99name" : "SwiftRichString",
"module_type" : "SwiftTarget",
"name" : "SwiftRichString",
"path" : "Sources/SwiftRichString",
"product_memberships" : [
"SwiftRichString"
],
"sources" : [
"Attributes/ColorConvertible.swift",
"Attributes/CommonsAttributes.swift",
"Attributes/DynamicText.swift",
"Attributes/FontConvertible.swift",
"Attributes/FontData.swift",
"Attributes/FontInfoAttribute.swift",
"Attributes/TextTransform.swift",
"Attributes/URLRepresentable.swift",
"Extensions/AttributedString+Attachments.swift",
"Extensions/AttributedString+Extension.swift",
"Extensions/AttributedString+FunctionBuilder.swift",
"Extensions/String+Ext.swift",
"Extensions/String+Subscript.swift",
"Extensions/SystemFonts.swift",
"Extensions/UIKit+Extras.swift",
"Style/Style.swift",
"Style/StyleGroup.swift",
"Style/StyleProtocol.swift",
"Style/StyleRegEx.swift",
"Style/StylesManager.swift",
"Support/AssociatedValues.swift",
"Support/AsyncTextAttachment.swift",
"Support/Compatibility.swift",
"Support/Extensions.swift",
"Support/OrderedDictionary.swift",
"Support/XMLDynamicAttributesResolver.swift",
"Support/XMLStringBuilder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/28] Emitting module SwiftRichString
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift:33:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
31 | import Foundation
32 |
33 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
34 | public class AttributedStringBuilder {
35 | public static func buildBlock(_ components: AttributedString...) -> AttributedString {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:141:20: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
140 | /// The font typestyle is italic
141 | public static let italic = TraitVariant(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 |
143 | /// The font typestyle is boldface
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:144:20: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
142 |
143 | /// The font typestyle is boldface
144 | public static let bold = TraitVariant(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:147:20: warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
147 | public static let expanded = TraitVariant(rawValue: 1 << 2)
| |- warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'expanded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:150:20: warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
150 | public static let condensed = TraitVariant(rawValue: 1 << 3)
| |- warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'condensed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 |
152 | /// The font uses vertical glyph variants and metrics.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:153:20: warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
151 |
152 | /// The font uses vertical glyph variants and metrics.
153 | public static let vertical = TraitVariant(rawValue: 1 << 4)
| |- warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:156:20: warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
156 | public static let uiOptimized = TraitVariant(rawValue: 1 << 5)
| |- warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'uiOptimized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// The font use a tigher line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:159:20: warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
157 |
158 | /// The font use a tigher line spacing variant.
159 | public static let tightLineSpacing = TraitVariant(rawValue: 1 << 6)
| |- warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tightLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// The font use a loose line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:162:20: warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
160 |
161 | /// The font use a loose line spacing variant.
162 | public static let looseLineSpacing = TraitVariant(rawValue: 1 << 7)
| |- warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'looseLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontData.swift:48:21: warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | public struct FontData {
47 |
48 | private static var DefaultFont = Font.systemFont(ofSize: 12.0)
| |- warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'DefaultFont' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'DefaultFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Font object
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontInfoAttribute.swift:49:40: warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
47 | public extension FontInfoAttribute {
48 |
49 | func attributes() -> [[FontDescriptor.FeatureKey: Any]] {
| `- warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
50 | let featureSettings = self.featureSettings()
51 | return featureSettings.map {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:54:20: note: struct declared here
52 | typedef NSString * NSFontDescriptorTraitKey NS_TYPED_ENUM;
53 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
54 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
| `- note: struct declared here
55 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
56 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StyleProtocol.swift:35:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | public typealias AttributedString = NSMutableAttributedString
34 |
35 | public protocol StyleProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
36 |
37 | /// Return the attributes of the style in form of dictionary `NSAttributedStringKey`/`Any`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:34:12: warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// Shortcut to singleton of the `StylesManager`
34 | public let Styles: StylesManager = StylesManager.shared
| |- warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'Styles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:41:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
41 | public static let shared: StylesManager = StylesManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' 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
42 |
43 | /// You can defeer the creation of a style to the first time its required.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Support/XMLStringBuilder.swift:53:23: warning: static property 'doNotWrapXML' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
41 | // MARK: - XMLParsingOptions
42 |
43 | public struct XMLParsingOptions: OptionSet {
| `- note: consider making struct 'XMLParsingOptions' conform to the 'Sendable' protocol
44 | public let rawValue: Int
45 |
:
51 | /// cause a copy of the entire XML string, so for very large strings, it is
52 | /// recommended that you include a root node yourself and pass this option.
53 | public static let doNotWrapXML = XMLParsingOptions(rawValue: 1)
| |- warning: static property 'doNotWrapXML' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doNotWrapXML' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Perform string escaping to replace all characters which is not supported by NSXMLParser
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Support/XMLStringBuilder.swift:59:23: warning: static property 'escapeString' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
41 | // MARK: - XMLParsingOptions
42 |
43 | public struct XMLParsingOptions: OptionSet {
| `- note: consider making struct 'XMLParsingOptions' conform to the 'Sendable' protocol
44 | public let rawValue: Int
45 |
:
57 | /// For example if your string contains '&' character parser will break the style.
58 | /// This option is active by default.
59 | public static let escapeString = XMLParsingOptions(rawValue: 2)
| |- warning: static property 'escapeString' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'escapeString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | }
[4/30] Compiling SwiftRichString XMLDynamicAttributesResolver.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Support/XMLStringBuilder.swift:53:23: warning: static property 'doNotWrapXML' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
41 | // MARK: - XMLParsingOptions
42 |
43 | public struct XMLParsingOptions: OptionSet {
| `- note: consider making struct 'XMLParsingOptions' conform to the 'Sendable' protocol
44 | public let rawValue: Int
45 |
:
51 | /// cause a copy of the entire XML string, so for very large strings, it is
52 | /// recommended that you include a root node yourself and pass this option.
53 | public static let doNotWrapXML = XMLParsingOptions(rawValue: 1)
| |- warning: static property 'doNotWrapXML' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doNotWrapXML' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Perform string escaping to replace all characters which is not supported by NSXMLParser
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Support/XMLStringBuilder.swift:59:23: warning: static property 'escapeString' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
41 | // MARK: - XMLParsingOptions
42 |
43 | public struct XMLParsingOptions: OptionSet {
| `- note: consider making struct 'XMLParsingOptions' conform to the 'Sendable' protocol
44 | public let rawValue: Int
45 |
:
57 | /// For example if your string contains '&' character parser will break the style.
58 | /// This option is active by default.
59 | public static let escapeString = XMLParsingOptions(rawValue: 2)
| |- warning: static property 'escapeString' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'escapeString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | }
[5/30] Compiling SwiftRichString XMLStringBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Support/XMLStringBuilder.swift:53:23: warning: static property 'doNotWrapXML' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
41 | // MARK: - XMLParsingOptions
42 |
43 | public struct XMLParsingOptions: OptionSet {
| `- note: consider making struct 'XMLParsingOptions' conform to the 'Sendable' protocol
44 | public let rawValue: Int
45 |
:
51 | /// cause a copy of the entire XML string, so for very large strings, it is
52 | /// recommended that you include a root node yourself and pass this option.
53 | public static let doNotWrapXML = XMLParsingOptions(rawValue: 1)
| |- warning: static property 'doNotWrapXML' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doNotWrapXML' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Perform string escaping to replace all characters which is not supported by NSXMLParser
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Support/XMLStringBuilder.swift:59:23: warning: static property 'escapeString' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
41 | // MARK: - XMLParsingOptions
42 |
43 | public struct XMLParsingOptions: OptionSet {
| `- note: consider making struct 'XMLParsingOptions' conform to the 'Sendable' protocol
44 | public let rawValue: Int
45 |
:
57 | /// For example if your string contains '&' character parser will break the style.
58 | /// This option is active by default.
59 | public static let escapeString = XMLParsingOptions(rawValue: 2)
| |- warning: static property 'escapeString' is not concurrency-safe because non-'Sendable' type 'XMLParsingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'escapeString' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | }
[6/30] Compiling SwiftRichString AsyncTextAttachment.swift
[7/30] Compiling SwiftRichString Compatibility.swift
[8/30] Compiling SwiftRichString ColorConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:141:20: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
140 | /// The font typestyle is italic
141 | public static let italic = TraitVariant(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 |
143 | /// The font typestyle is boldface
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:144:20: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
142 |
143 | /// The font typestyle is boldface
144 | public static let bold = TraitVariant(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:147:20: warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
147 | public static let expanded = TraitVariant(rawValue: 1 << 2)
| |- warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'expanded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:150:20: warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
150 | public static let condensed = TraitVariant(rawValue: 1 << 3)
| |- warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'condensed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 |
152 | /// The font uses vertical glyph variants and metrics.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:153:20: warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
151 |
152 | /// The font uses vertical glyph variants and metrics.
153 | public static let vertical = TraitVariant(rawValue: 1 << 4)
| |- warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:156:20: warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
156 | public static let uiOptimized = TraitVariant(rawValue: 1 << 5)
| |- warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'uiOptimized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// The font use a tigher line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:159:20: warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
157 |
158 | /// The font use a tigher line spacing variant.
159 | public static let tightLineSpacing = TraitVariant(rawValue: 1 << 6)
| |- warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tightLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// The font use a loose line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:162:20: warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
160 |
161 | /// The font use a loose line spacing variant.
162 | public static let looseLineSpacing = TraitVariant(rawValue: 1 << 7)
| |- warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'looseLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | public init(rawValue: Int) {
[9/30] Compiling SwiftRichString CommonsAttributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:141:20: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
140 | /// The font typestyle is italic
141 | public static let italic = TraitVariant(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 |
143 | /// The font typestyle is boldface
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:144:20: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
142 |
143 | /// The font typestyle is boldface
144 | public static let bold = TraitVariant(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:147:20: warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
147 | public static let expanded = TraitVariant(rawValue: 1 << 2)
| |- warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'expanded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:150:20: warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
150 | public static let condensed = TraitVariant(rawValue: 1 << 3)
| |- warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'condensed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 |
152 | /// The font uses vertical glyph variants and metrics.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:153:20: warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
151 |
152 | /// The font uses vertical glyph variants and metrics.
153 | public static let vertical = TraitVariant(rawValue: 1 << 4)
| |- warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:156:20: warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
156 | public static let uiOptimized = TraitVariant(rawValue: 1 << 5)
| |- warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'uiOptimized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// The font use a tigher line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:159:20: warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
157 |
158 | /// The font use a tigher line spacing variant.
159 | public static let tightLineSpacing = TraitVariant(rawValue: 1 << 6)
| |- warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tightLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// The font use a loose line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:162:20: warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
160 |
161 | /// The font use a loose line spacing variant.
162 | public static let looseLineSpacing = TraitVariant(rawValue: 1 << 7)
| |- warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'looseLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | public init(rawValue: Int) {
[10/30] Compiling SwiftRichString DynamicText.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:141:20: warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
140 | /// The font typestyle is italic
141 | public static let italic = TraitVariant(rawValue: 1 << 0)
| |- warning: static property 'italic' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'italic' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 |
143 | /// The font typestyle is boldface
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:144:20: warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
142 |
143 | /// The font typestyle is boldface
144 | public static let bold = TraitVariant(rawValue: 1 << 1)
| |- warning: static property 'bold' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bold' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:147:20: warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
145 |
146 | // The font typestyle is expanded. Expanded and condensed traits are mutually exclusive.
147 | public static let expanded = TraitVariant(rawValue: 1 << 2)
| |- warning: static property 'expanded' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'expanded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:150:20: warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
148 |
149 | /// The font typestyle is condensed. Expanded and condensed traits are mutually exclusive
150 | public static let condensed = TraitVariant(rawValue: 1 << 3)
| |- warning: static property 'condensed' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'condensed' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
151 |
152 | /// The font uses vertical glyph variants and metrics.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:153:20: warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
151 |
152 | /// The font uses vertical glyph variants and metrics.
153 | public static let vertical = TraitVariant(rawValue: 1 << 4)
| |- warning: static property 'vertical' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'vertical' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:156:20: warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
154 |
155 | /// The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.
156 | public static let uiOptimized = TraitVariant(rawValue: 1 << 5)
| |- warning: static property 'uiOptimized' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'uiOptimized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// The font use a tigher line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:159:20: warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
157 |
158 | /// The font use a tigher line spacing variant.
159 | public static let tightLineSpacing = TraitVariant(rawValue: 1 << 6)
| |- warning: static property 'tightLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'tightLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// The font use a loose line spacing variant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/CommonsAttributes.swift:162:20: warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
135 |
136 | /// Describe a trait variant for font
137 | public struct TraitVariant: OptionSet {
| `- note: consider making struct 'TraitVariant' conform to the 'Sendable' protocol
138 | public var rawValue: Int
139 |
:
160 |
161 | /// The font use a loose line spacing variant.
162 | public static let looseLineSpacing = TraitVariant(rawValue: 1 << 7)
| |- warning: static property 'looseLineSpacing' is not concurrency-safe because non-'Sendable' type 'TraitVariant' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'looseLineSpacing' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
163 |
164 | public init(rawValue: Int) {
[11/30] Compiling SwiftRichString StyleRegEx.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:34:12: warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// Shortcut to singleton of the `StylesManager`
34 | public let Styles: StylesManager = StylesManager.shared
| |- warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'Styles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:41:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
41 | public static let shared: StylesManager = StylesManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' 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
42 |
43 | /// You can defeer the creation of a style to the first time its required.
[12/30] Compiling SwiftRichString StylesManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:34:12: warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// Shortcut to singleton of the `StylesManager`
34 | public let Styles: StylesManager = StylesManager.shared
| |- warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'Styles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:41:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
41 | public static let shared: StylesManager = StylesManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' 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
42 |
43 | /// You can defeer the creation of a style to the first time its required.
[13/30] Compiling SwiftRichString AssociatedValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:34:12: warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | /// Shortcut to singleton of the `StylesManager`
34 | public let Styles: StylesManager = StylesManager.shared
| |- warning: let 'Styles' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'Styles' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StylesManager.swift:41:20: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' may have shared mutable state; this is an error in the Swift 6 language mode
36 | /// StylesManager act as a central repository where you can register your own style and use
37 | /// globally in your app.
38 | public class StylesManager {
| `- note: class 'StylesManager' does not conform to the 'Sendable' protocol
39 |
40 | /// Singleton instance.
41 | public static let shared: StylesManager = StylesManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'StylesManager' 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
42 |
43 | /// You can defeer the creation of a style to the first time its required.
[14/30] Compiling SwiftRichString Style.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StyleProtocol.swift:35:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | public typealias AttributedString = NSMutableAttributedString
34 |
35 | public protocol StyleProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
36 |
37 | /// Return the attributes of the style in form of dictionary `NSAttributedStringKey`/`Any`.
[15/30] Compiling SwiftRichString StyleGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StyleProtocol.swift:35:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | public typealias AttributedString = NSMutableAttributedString
34 |
35 | public protocol StyleProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
36 |
37 | /// Return the attributes of the style in form of dictionary `NSAttributedStringKey`/`Any`.
[16/30] Compiling SwiftRichString StyleProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Style/StyleProtocol.swift:35:32: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
33 | public typealias AttributedString = NSMutableAttributedString
34 |
35 | public protocol StyleProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
36 |
37 | /// Return the attributes of the style in form of dictionary `NSAttributedStringKey`/`Any`.
[17/30] Compiling SwiftRichString AttributedString+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift:33:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
31 | import Foundation
32 |
33 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
34 | public class AttributedStringBuilder {
35 | public static func buildBlock(_ components: AttributedString...) -> AttributedString {
[18/30] Compiling SwiftRichString AttributedString+FunctionBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift:33:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
31 | import Foundation
32 |
33 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
34 | public class AttributedStringBuilder {
35 | public static func buildBlock(_ components: AttributedString...) -> AttributedString {
[19/30] Compiling SwiftRichString String+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift:33:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
31 | import Foundation
32 |
33 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
34 | public class AttributedStringBuilder {
35 | public static func buildBlock(_ components: AttributedString...) -> AttributedString {
[20/30] Compiling SwiftRichString FontConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontData.swift:48:21: warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | public struct FontData {
47 |
48 | private static var DefaultFont = Font.systemFont(ofSize: 12.0)
| |- warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'DefaultFont' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'DefaultFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Font object
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontInfoAttribute.swift:49:40: warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
47 | public extension FontInfoAttribute {
48 |
49 | func attributes() -> [[FontDescriptor.FeatureKey: Any]] {
| `- warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
50 | let featureSettings = self.featureSettings()
51 | return featureSettings.map {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:54:20: note: struct declared here
52 | typedef NSString * NSFontDescriptorTraitKey NS_TYPED_ENUM;
53 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
54 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
| `- note: struct declared here
55 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
56 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
[21/30] Compiling SwiftRichString FontData.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontData.swift:48:21: warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | public struct FontData {
47 |
48 | private static var DefaultFont = Font.systemFont(ofSize: 12.0)
| |- warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'DefaultFont' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'DefaultFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Font object
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontInfoAttribute.swift:49:40: warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
47 | public extension FontInfoAttribute {
48 |
49 | func attributes() -> [[FontDescriptor.FeatureKey: Any]] {
| `- warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
50 | let featureSettings = self.featureSettings()
51 | return featureSettings.map {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:54:20: note: struct declared here
52 | typedef NSString * NSFontDescriptorTraitKey NS_TYPED_ENUM;
53 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
54 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
| `- note: struct declared here
55 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
56 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
[22/30] Compiling SwiftRichString FontInfoAttribute.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontData.swift:48:21: warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
46 | public struct FontData {
47 |
48 | private static var DefaultFont = Font.systemFont(ofSize: 12.0)
| |- warning: static property 'DefaultFont' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'DefaultFont' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'DefaultFont' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | /// Font object
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontInfoAttribute.swift:49:40: warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
47 | public extension FontInfoAttribute {
48 |
49 | func attributes() -> [[FontDescriptor.FeatureKey: Any]] {
| `- warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
50 | let featureSettings = self.featureSettings()
51 | return featureSettings.map {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:54:20: note: struct declared here
52 | typedef NSString * NSFontDescriptorTraitKey NS_TYPED_ENUM;
53 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
54 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
| `- note: struct declared here
55 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
56 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
[23/30] Compiling SwiftRichString String+Subscript.swift
[24/30] Compiling SwiftRichString SystemFonts.swift
[25/30] Compiling SwiftRichString UIKit+Extras.swift
[26/30] Compiling SwiftRichString Extensions.swift
[27/30] Compiling SwiftRichString OrderedDictionary.swift
[28/30] Compiling SwiftRichString TextTransform.swift
[29/30] Compiling SwiftRichString URLRepresentable.swift
[30/30] Compiling SwiftRichString AttributedString+Attachments.swift
Build complete! (8.26s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRichString",
"name" : "SwiftRichString",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftRichString",
"targets" : [
"SwiftRichString"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftRichStringTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRichStringTests",
"path" : "Tests/SwiftRichStringTests",
"sources" : [
"SwiftRichStringTests.swift"
],
"target_dependencies" : [
"SwiftRichString"
],
"type" : "test"
},
{
"c99name" : "SwiftRichString",
"module_type" : "SwiftTarget",
"name" : "SwiftRichString",
"path" : "Sources/SwiftRichString",
"product_memberships" : [
"SwiftRichString"
],
"sources" : [
"Attributes/ColorConvertible.swift",
"Attributes/CommonsAttributes.swift",
"Attributes/DynamicText.swift",
"Attributes/FontConvertible.swift",
"Attributes/FontData.swift",
"Attributes/FontInfoAttribute.swift",
"Attributes/TextTransform.swift",
"Attributes/URLRepresentable.swift",
"Extensions/AttributedString+Attachments.swift",
"Extensions/AttributedString+Extension.swift",
"Extensions/AttributedString+FunctionBuilder.swift",
"Extensions/String+Ext.swift",
"Extensions/String+Subscript.swift",
"Extensions/SystemFonts.swift",
"Extensions/UIKit+Extras.swift",
"Style/Style.swift",
"Style/StyleGroup.swift",
"Style/StyleProtocol.swift",
"Style/StyleRegEx.swift",
"Style/StylesManager.swift",
"Support/AssociatedValues.swift",
"Support/AsyncTextAttachment.swift",
"Support/Compatibility.swift",
"Support/Extensions.swift",
"Support/OrderedDictionary.swift",
"Support/XMLDynamicAttributesResolver.swift",
"Support/XMLStringBuilder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.