This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 AttributedTextUI with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Everything-as-UI/AttributedTextUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Everything-as-UI/AttributedTextUI
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2ffc808 Last changes.
Cloned https://github.com/Everything-as-UI/AttributedTextUI.git
Revision (git rev-parse @):
2ffc808e262861d7716083ddadca67a03e610950
SUCCESS checkout https://github.com/Everything-as-UI/AttributedTextUI.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/Everything-as-UI/AttributedTextUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-6F35C1178C84523A.txt
[6/7] Compiling CoreUI CoreUI.swift
[7/7] Emitting module CoreUI
[8/9] Compiling CommonUI CommonUI.swift
[9/9] Emitting module CommonUI
[10/17] Compiling DocumentUI TextDocumentBuilders.swift
[11/17] Compiling DocumentUI Modifiers.swift
[12/17] Compiling DocumentUI TextDocument.swift
[13/17] Compiling DocumentUI TupleDocument.swift
[14/17] Compiling DocumentUI Joined.swift
[15/17] Compiling DocumentUI DocumentUI.swift
[16/17] Emitting module DocumentUI
[17/17] Compiling DocumentUI AnyTextDocument.swift
[18/20] Compiling AttributedTextUI AttributedTextBuilders.swift
[19/20] Emitting module AttributedTextUI
/Users/admin/builder/spi-builder-workspace/Sources/AttributedTextUI/AttributedText.swift:186:1: warning: non-final class 'NSImage' cannot safely conform to protocol 'AttributedText', which requires that 'Self.AttributedTextInterpolation.View' is exactly equal to 'Self'; this is an error in the Swift 6 language mode
184 | #if canImport(UIKit) || canImport(AppKit)
185 | @_spi(AttributedText)
186 | extension Image: AttributedText {
    | `- warning: non-final class 'NSImage' cannot safely conform to protocol 'AttributedText', which requires that 'Self.AttributedTextInterpolation.View' is exactly equal to 'Self'; this is an error in the Swift 6 language mode
187 |     public var textBody: Never { fatalError() }
188 |     public struct AttributedTextInterpolation: ViewInterpolationProtocol {
[20/20] Compiling AttributedTextUI AttributedText.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedTextUI/AttributedText.swift:186:1: warning: non-final class 'NSImage' cannot safely conform to protocol 'AttributedText', which requires that 'Self.AttributedTextInterpolation.View' is exactly equal to 'Self'; this is an error in the Swift 6 language mode
184 | #if canImport(UIKit) || canImport(AppKit)
185 | @_spi(AttributedText)
186 | extension Image: AttributedText {
    | `- warning: non-final class 'NSImage' cannot safely conform to protocol 'AttributedText', which requires that 'Self.AttributedTextInterpolation.View' is exactly equal to 'Self'; this is an error in the Swift 6 language mode
187 |     public var textBody: Never { fatalError() }
188 |     public struct AttributedTextInterpolation: ViewInterpolationProtocol {
/Users/admin/builder/spi-builder-workspace/Sources/AttributedTextUI/AttributedText.swift:355:60: warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
343 | }
344 | extension NSMutableAttributedString {
345 |     public func append(_ aContent: AttributedContent) {
    |                 `- note: add '@MainActor' to make instance method 'append' part of global actor 'MainActor'
346 |         let location = mutableString.length
347 |         for nested in aContent.nestedContent {
    :
353 |                 let attachment = NSTextAttachment()
354 |                 #if os(macOS)
355 |                 let attachmentCell: NSTextAttachmentCell = NSTextAttachmentCell(imageCell: img)
    |                                                            `- warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
356 |                 attachment.attachmentCell = attachmentCell
357 |                 #else
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/AttributedTextUI/AttributedText.swift:379:60: warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
367 | @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
368 | extension AttributedString {
369 |     public mutating func append(_ aContent: AttributedContent) {
    |                          `- note: add '@MainActor' to make instance method 'append' part of global actor 'MainActor'
370 |         let location = endIndex
371 |         for nested in aContent.nestedContent {
    :
377 |                 let attachment = NSTextAttachment()
378 |                 #if os(macOS)
379 |                 let attachmentCell: NSTextAttachmentCell = NSTextAttachmentCell(imageCell: img)
    |                                                            `- warning: call to main actor-isolated initializer 'init(imageCell:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
380 |                 attachment.attachmentCell = attachmentCell
381 |                 #else
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/AttributedTextUI/AttributedText.swift:355:60: warning: sending 'img.some' risks causing data races; this is an error in the Swift 6 language mode
353 |                 let attachment = NSTextAttachment()
354 |                 #if os(macOS)
355 |                 let attachmentCell: NSTextAttachmentCell = NSTextAttachmentCell(imageCell: img)
    |                                                            |- warning: sending 'img.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                                            `- note: sending task-isolated 'img.some' to main actor-isolated initializer 'init(imageCell:)' risks causing data races between main actor-isolated and task-isolated uses
356 |                 attachment.attachmentCell = attachmentCell
357 |                 #else
/Users/admin/builder/spi-builder-workspace/Sources/AttributedTextUI/AttributedText.swift:379:60: warning: sending 'img.some' risks causing data races; this is an error in the Swift 6 language mode
377 |                 let attachment = NSTextAttachment()
378 |                 #if os(macOS)
379 |                 let attachmentCell: NSTextAttachmentCell = NSTextAttachmentCell(imageCell: img)
    |                                                            |- warning: sending 'img.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                                            `- note: sending task-isolated 'img.some' to main actor-isolated initializer 'init(imageCell:)' risks causing data races between main actor-isolated and task-isolated uses
380 |                 attachment.attachmentCell = attachmentCell
381 |                 #else
Build complete! (30.53s)
Fetching https://github.com/Everything-as-UI/DocumentUI.git
[1/58] Fetching documentui
Fetched https://github.com/Everything-as-UI/DocumentUI.git from cache (0.75s)
Fetching https://github.com/Everything-as-UI/CoreUI.git
[1/29] Fetching coreui
Fetched https://github.com/Everything-as-UI/CoreUI.git from cache (0.65s)
Creating working copy for https://github.com/Everything-as-UI/CoreUI.git
Working copy of https://github.com/Everything-as-UI/CoreUI.git resolved at main (a6e8a3c)
Creating working copy for https://github.com/Everything-as-UI/DocumentUI.git
Working copy of https://github.com/Everything-as-UI/DocumentUI.git resolved at main (7178a86)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "documentui",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Everything-as-UI/DocumentUI.git"
    }
  ],
  "manifest_display_name" : "AttributedTextUI",
  "name" : "AttributedTextUI",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "AttributedTextUI",
      "targets" : [
        "AttributedTextUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AttributedTextUITests",
      "module_type" : "SwiftTarget",
      "name" : "AttributedTextUITests",
      "path" : "Tests/AttributedTextUITests",
      "sources" : [
        "AttributedTextUITests.swift"
      ],
      "target_dependencies" : [
        "AttributedTextUI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AttributedTextUI",
      "module_type" : "SwiftTarget",
      "name" : "AttributedTextUI",
      "path" : "Sources/AttributedTextUI",
      "product_dependencies" : [
        "DocumentUI"
      ],
      "product_memberships" : [
        "AttributedTextUI"
      ],
      "sources" : [
        "AttributedText.swift",
        "AttributedTextBuilders.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.