The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of RichStringKit, reference main (ce9489), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 00:14:33 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/moyerr/RichStringKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/moyerr/RichStringKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ce94895 Fix failing build on watchOS due to unavailability of NSTextAttachment (#11)
Cloned https://github.com/moyerr/RichStringKit.git
Revision (git rev-parse @):
ce9489544ad1273fff393c91e41faf579e2e008f
SUCCESS checkout https://github.com/moyerr/RichStringKit.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "richstringkit",
      "name": "RichStringKit",
      "url": "https://github.com/moyerr/RichStringKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RichStringKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/moyerr/RichStringKit.git
[1/460] Fetching richstringkit
Fetched https://github.com/moyerr/RichStringKit.git from cache (0.80s)
Creating working copy for https://github.com/moyerr/RichStringKit.git
Working copy of https://github.com/moyerr/RichStringKit.git resolved at main (ce94895)
warning: '.resolve-product-dependencies': dependency 'richstringkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/moyerr/RichStringKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/31] Emitting module RichStringKit
[4/34] Compiling RichStringKit EmptyString.swift
[5/34] Compiling RichStringKit Format.swift
[6/34] Compiling RichStringKit Group.swift
[7/34] Compiling RichStringKit RichString+Disallowed.swift
[8/34] Compiling RichStringKit RichStringModifier+Disallowed.swift
[9/34] Compiling RichStringKit TransformMatches.swift
[10/34] Compiling RichStringKit Line.swift
[11/34] Compiling RichStringKit Link.swift
[12/34] Compiling RichStringKit NSAttributedString+RichString.swift
[13/34] Compiling RichStringKit RichString+Output.swift
[14/34] Compiling RichStringKit RichStringModifier+Output.swift
[15/34] Compiling RichStringKit RichStringOutput.swift
[16/34] Compiling RichStringKit RichString.swift
[17/34] Compiling RichStringKit RichStringBuilder.swift
[18/34] Compiling RichStringKit RichStringModifier.swift
[19/34] Compiling RichStringKit NSAttributedStringRenderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichStringKit/Rendering/NSAttributedStringRenderer.swift:54:24: warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 48 | extension RichStringOutput.Modifier {
 49 |     // swiftlint:disable:next cyclomatic_complexity
 50 |     fileprivate func makeAttributes() -> NSAttributedStringRenderer.Attributes {
    |                      `- note: add '@MainActor' to make instance method 'makeAttributes()' part of global actor 'MainActor'
 51 |         switch self {
 52 |         case .attachment(let image):
 53 |             #if os(macOS)
 54 |             let cell = NSTextAttachmentCell(imageCell: image)
    |                        `- warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 55 |             let attachment = NSTextAttachment()
 56 |             attachment.attachmentCell = cell
AppKit.NSTextAttachmentCell:4:23: note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
 2 |     public init()
 3 |     public init(textCell string: String)
 4 |     @MainActor public init(imageCell image: NSImage?)
   |                       `- note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
 5 |     public init(coder: NSCoder)
 6 |     @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/RichStringKit/Rendering/NSAttributedStringRenderer.swift:54:24: warning: sending 'image.some' risks causing data races; this is an error in the Swift 6 language mode
 52 |         case .attachment(let image):
 53 |             #if os(macOS)
 54 |             let cell = NSTextAttachmentCell(imageCell: image)
    |                        |- warning: sending 'image.some' risks causing data races; this is an error in the Swift 6 language mode
    |                        `- note: sending task-isolated 'image.some' to main actor-isolated initializer 'init(imageCell:)' risks causing data races between main actor-isolated and task-isolated uses
 55 |             let attachment = NSTextAttachment()
 56 |             attachment.attachmentCell = cell
[20/34] Compiling RichStringKit RichString+Render.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichStringKit/Rendering/NSAttributedStringRenderer.swift:54:24: warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 48 | extension RichStringOutput.Modifier {
 49 |     // swiftlint:disable:next cyclomatic_complexity
 50 |     fileprivate func makeAttributes() -> NSAttributedStringRenderer.Attributes {
    |                      `- note: add '@MainActor' to make instance method 'makeAttributes()' part of global actor 'MainActor'
 51 |         switch self {
 52 |         case .attachment(let image):
 53 |             #if os(macOS)
 54 |             let cell = NSTextAttachmentCell(imageCell: image)
    |                        `- warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 55 |             let attachment = NSTextAttachment()
 56 |             attachment.attachmentCell = cell
AppKit.NSTextAttachmentCell:4:23: note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
 2 |     public init()
 3 |     public init(textCell string: String)
 4 |     @MainActor public init(imageCell image: NSImage?)
   |                       `- note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
 5 |     public init(coder: NSCoder)
 6 |     @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/RichStringKit/Rendering/NSAttributedStringRenderer.swift:54:24: warning: sending 'image.some' risks causing data races; this is an error in the Swift 6 language mode
 52 |         case .attachment(let image):
 53 |             #if os(macOS)
 54 |             let cell = NSTextAttachmentCell(imageCell: image)
    |                        |- warning: sending 'image.some' risks causing data races; this is an error in the Swift 6 language mode
    |                        `- note: sending task-isolated 'image.some' to main actor-isolated initializer 'init(imageCell:)' risks causing data races between main actor-isolated and task-isolated uses
 55 |             let attachment = NSTextAttachment()
 56 |             attachment.attachmentCell = cell
[21/34] Compiling RichStringKit RichStringRenderer.swift
/Users/admin/builder/spi-builder-workspace/Sources/RichStringKit/Rendering/NSAttributedStringRenderer.swift:54:24: warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 48 | extension RichStringOutput.Modifier {
 49 |     // swiftlint:disable:next cyclomatic_complexity
 50 |     fileprivate func makeAttributes() -> NSAttributedStringRenderer.Attributes {
    |                      `- note: add '@MainActor' to make instance method 'makeAttributes()' part of global actor 'MainActor'
 51 |         switch self {
 52 |         case .attachment(let image):
 53 |             #if os(macOS)
 54 |             let cell = NSTextAttachmentCell(imageCell: image)
    |                        `- warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 55 |             let attachment = NSTextAttachment()
 56 |             attachment.attachmentCell = cell
AppKit.NSTextAttachmentCell:4:23: note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
 2 |     public init()
 3 |     public init(textCell string: String)
 4 |     @MainActor public init(imageCell image: NSImage?)
   |                       `- note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
 5 |     public init(coder: NSCoder)
 6 |     @available(macOS 10.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/RichStringKit/Rendering/NSAttributedStringRenderer.swift:54:24: warning: sending 'image.some' risks causing data races; this is an error in the Swift 6 language mode
 52 |         case .attachment(let image):
 53 |             #if os(macOS)
 54 |             let cell = NSTextAttachmentCell(imageCell: image)
    |                        |- warning: sending 'image.some' risks causing data races; this is an error in the Swift 6 language mode
    |                        `- note: sending task-isolated 'image.some' to main actor-isolated initializer 'init(imageCell:)' risks causing data races between main actor-isolated and task-isolated uses
 55 |             let attachment = NSTextAttachment()
 56 |             attachment.attachmentCell = cell
[22/34] Compiling RichStringKit Never+RichString.swift
[23/34] Compiling RichStringKit String.swift
[24/34] Compiling RichStringKit ModifierMap.swift
[25/34] Compiling RichStringKit Attachment.swift
[26/34] Compiling RichStringKit Concatenate.swift
[27/34] Compiling RichStringKit ConditionalContent.swift
[28/34] Compiling RichStringKit EmptyModifier.swift
[29/34] Compiling RichStringKit Font.swift
[30/34] Compiling RichStringKit Kern.swift
[31/34] Compiling RichStringKit AttributedString+RichString.swift
[32/34] Compiling RichStringKit ModifiedContent.swift
[33/34] Compiling RichStringKit BaselineOffset.swift
[34/34] Compiling RichStringKit Color.swift
Build complete! (18.91s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "RichStringKit",
  "name" : "RichStringKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "RichStringKit",
      "targets" : [
        "RichStringKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RichStringKitTests",
      "module_type" : "SwiftTarget",
      "name" : "RichStringKitTests",
      "path" : "Tests/RichStringKitTests",
      "sources" : [
        "NSAttributedStringRendererTests.swift",
        "RichStringBuilderOutputTests.swift",
        "RichStringBuilderTests.swift",
        "Utilities/Image+Helper.swift",
        "Utilities/NSTextAttachment+Helper.swift"
      ],
      "target_dependencies" : [
        "RichStringKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RichStringKit",
      "module_type" : "SwiftTarget",
      "name" : "RichStringKit",
      "path" : "Sources/RichStringKit",
      "product_memberships" : [
        "RichStringKit"
      ],
      "sources" : [
        "AttributedString+RichString.swift",
        "ModifiedContent.swift",
        "Modifiers/BaselineOffset.swift",
        "Modifiers/Color.swift",
        "Modifiers/EmptyModifier.swift",
        "Modifiers/Font.swift",
        "Modifiers/Kern.swift",
        "Modifiers/Line.swift",
        "Modifiers/Link.swift",
        "NSAttributedString+RichString.swift",
        "Output/RichString+Output.swift",
        "Output/RichStringModifier+Output.swift",
        "Output/RichStringOutput.swift",
        "Primitives/Attachment.swift",
        "Primitives/Concatenate.swift",
        "Primitives/ConditionalContent.swift",
        "Primitives/EmptyString.swift",
        "Primitives/Format.swift",
        "Primitives/Group.swift",
        "Primitives/Never+RichString.swift",
        "Primitives/String.swift",
        "Rendering/ModifierMap.swift",
        "Rendering/NSAttributedStringRenderer.swift",
        "Rendering/RichString+Render.swift",
        "Rendering/RichStringRenderer.swift",
        "RichString.swift",
        "RichStringBuilder.swift",
        "RichStringModifier.swift",
        "Utilities/RichString+Disallowed.swift",
        "Utilities/RichStringModifier+Disallowed.swift",
        "Utilities/TransformMatches.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.