The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftRichString, reference 4.0.0-alpha-6 (a9f74e), with Swift 6.4 for macOS (SPM) on 16 Sep 2026 22:35:27 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/malcommac/SwiftRichString.git
Reference: 4.0.0-alpha-6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/malcommac/SwiftRichString
 * tag               4.0.0-alpha-6 -> FETCH_HEAD
HEAD is now at a9f74e9 fix applying base style to xml string
Cloned https://github.com/malcommac/SwiftRichString.git
Revision (git rev-parse @):
a9f74e9728a51f9caf12f85d252dba2759fde6c5
SUCCESS checkout https://github.com/malcommac/SwiftRichString.git at 4.0.0-alpha-6
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/malcommac/SwiftRichString.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Pre-planning 1 / 96]
[Planning deferred tasks]
[21 / 33]
[23 / 34] CHTMLSAXParser
[28 / 45]
[31 / 45]
[34 / 45]
[36 / 45] SwiftRichString
[46 / 120]
[49 / 120]
[57 / 120]
[60 / 120]
[62 / 120]
[67 / 120]
[69 / 120]
[71 / 120]
[74 / 120]
[78 / 120]
[81 / 120]
[83 / 120]
[84 / 120]
[93 / 120]
[95 / 120]
[96 / 120]
[98 / 120]
[100 / 120]
[111 / 120] SwiftRichString
[112 / 120] SwiftRichString
[117 / 120] SwiftRichString
Build complete! (11.44 sec)
warning: /Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift:27:2 '@_functionBuilder' has been renamed to '@resultBuilder': FixIt(sourceRange: XCBuild.SwiftBuildMessage.DiagnosticInfo.SourceRange(path: "/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift", startLine: 27, startColumn: 2, endLine: 27, endColumn: 18), textToInsert: "resultBuilder")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift:27:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
25 | import Foundation
26 |
27 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
28 | public class AttributedStringBuilder {
29 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontInfoAttribute.swift:42:40: warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
 40 | public extension FontInfoAttribute {
 41 |
 42 | 	func attributes() -> [[FontDescriptor.FeatureKey: Any]] {
    |                                        `- warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
 43 | 		let featureSettings = self.featureSettings()
 44 | 		return featureSettings.map {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:57:20: note: struct declared here
 55 | typedef NSString * NSFontDescriptorTraitKey NS_TYPED_ENUM;
 56 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
 57 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
    |                    `- note: struct declared here
 58 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
 59 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/XMLParser/HTMLSAXParser/EscapeSpecialCharacters.swift:53:21: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 51 |                                              _ loop: inout Bool,
 52 |                                              _ bufferGrowthFactor: Double) -> Data? {
 53 |         return self.withUnsafeBytes { (inputBytes: UnsafePointer<UInt8>) -> Data? in
    |                     `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 54 |             let outputBufferCapacity = outputLength
 55 |             let outputBuffer = UnsafeMutablePointer<UInt8>.allocate(capacity: outputBufferCapacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/XMLParser/HTMLSAXParser/HTMLSAXParser+libxml2.swift:38:18: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 36 |             charEncoding = convert(from: encoding)
 37 |         } else {
 38 |             data.withUnsafeBytes { (dataBytes: UnsafePointer<UInt8>) -> Void in
    |                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 39 |                 charEncoding = xmlDetectCharEncoding(dataBytes, Int32(dataLength))
 40 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/XMLParser/HTMLSAXParser/HTMLSAXParser+libxml2.swift:47:18: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 45 |         }
 46 |
 47 |         try data.withUnsafeBytes { (dataBytes: UnsafePointer<Int8>) -> Void in
    |                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 48 |             let handlerContext = HandlerContext(handler: handler)
 49 |             let handlerContextPtr = Unmanaged<HandlerContext>.passUnretained(handlerContext).toOpaque()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Support/Extensions.swift:132:22: warning: 'init(focusedViewRect:)' was deprecated in macOS 10.14: Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view. [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
130 |     func pngData() -> Data? {
131 |         lockFocus()
132 |         let bitmap = NSBitmapImageRep(focusedViewRect: NSRect(x: 0, y: 0, width: size.width, height: size.height))
    |                      `- warning: 'init(focusedViewRect:)' was deprecated in macOS 10.14: Use -[NSView cacheDisplayInRect:toBitmapImageRep:] to snapshot a view. [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
133 |         let pngData = bitmap!.representation(using: .png, properties: [:])
134 |         unlockFocus()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Extensions/AttributedString+FunctionBuilder.swift:27:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
25 | import Foundation
26 |
27 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
28 | public class AttributedStringBuilder {
29 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/FontInfoAttribute.swift:42:40: warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
 40 | public extension FontInfoAttribute {
 41 |
 42 | 	func attributes() -> [[FontDescriptor.FeatureKey: Any]] {
    |                                        `- warning: cannot use struct 'FeatureKey' here; 'AppKit' was not imported by this file
 43 | 		let featureSettings = self.featureSettings()
 44 | 		return featureSettings.map {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSFontDescriptor.h:57:20: note: struct declared here
 55 | typedef NSString * NSFontDescriptorTraitKey NS_TYPED_ENUM;
 56 | typedef NSString * NSFontDescriptorVariationKey NS_TYPED_ENUM;
 57 | typedef NSString * NSFontDescriptorFeatureKey NS_TYPED_EXTENSIBLE_ENUM;
    |                    `- note: struct declared here
 58 | typedef CGFloat NSFontWeight NS_TYPED_EXTENSIBLE_ENUM;
 59 | typedef CGFloat NSFontWidth NS_TYPED_EXTENSIBLE_ENUM;
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/ColorConvertible.swift:60:12: warning: 'scanLocation' was deprecated in macOS 10.15 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 58 |
 59 | 		if hexString.hasPrefix("#") {
 60 | 			scanner.scanLocation = 1
    |            `- warning: 'scanLocation' was deprecated in macOS 10.15 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 61 | 		}
 62 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRichString/Attributes/ColorConvertible.swift:65:14: warning: 'scanHexInt32' was deprecated in macOS 10.15 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 63 | 		var color: UInt32 = 0
 64 |
 65 | 		if scanner.scanHexInt32(&color) {
    |              `- warning: 'scanHexInt32' was deprecated in macOS 10.15 [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 66 | 			self.init(hex: color, useAlpha: hexString.count > 7)
 67 | 		} else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
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",
        "XCTestManifests.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/FontInfoAttribute.swift",
        "Attributes/FontStyle.swift",
        "Attributes/TextTransform.swift",
        "Attributes/URLRepresentable.swift",
        "Extensions/AttributedString+Attachments.swift",
        "Extensions/AttributedString+Extension.swift",
        "Extensions/AttributedString+FunctionBuilder.swift",
        "Extensions/String+Extension.swift",
        "Extensions/String+Subscript.swift",
        "Extensions/SystemFonts.swift",
        "Extensions/UIKit+Extras.swift",
        "Style/StyleDecorator.swift",
        "Style/Styles/Style.swift",
        "Style/Styles/StyleProtocol.swift",
        "Style/Styles/StyleRegEx.swift",
        "Style/Styles/StyleXML.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",
        "XMLParser/HTMLSAXParser/EscapeSpecialCharacters.swift",
        "XMLParser/HTMLSAXParser/HTMLSAXParser+libxml2.swift",
        "XMLParser/HTMLSAXParser/HTMLSAXParser.swift"
      ],
      "target_dependencies" : [
        "CHTMLSAXParser"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CHTMLSAXParser",
      "module_type" : "ClangTarget",
      "name" : "CHTMLSAXParser",
      "path" : "Sources/CHTMLSAXParser",
      "product_memberships" : [
        "SwiftRichString"
      ],
      "sources" : [
        "CHTMLSAXParser.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.