The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of AttributedTextUI, reference main (2ffc80), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 11:57:19 UTC.

Swift 6 data race errors: 1

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/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
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.57s)
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.51s)
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)
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)
========================================
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": "attributedtextui",
      "name": "AttributedTextUI",
      "url": "https://github.com/Everything-as-UI/AttributedTextUI.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AttributedTextUI",
      "dependencies": [
        {
          "identity": "documentui",
          "name": "DocumentUI",
          "url": "https://github.com/Everything-as-UI/DocumentUI.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DocumentUI",
          "dependencies": [
            {
              "identity": "coreui",
              "name": "CoreUI",
              "url": "https://github.com/Everything-as-UI/CoreUI.git",
              "version": "unspecified",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CoreUI",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Everything-as-UI/AttributedTextUI.git
[1/29] Fetching attributedtextui
Fetched https://github.com/Everything-as-UI/AttributedTextUI.git from cache (0.65s)
Fetching https://github.com/Everything-as-UI/DocumentUI.git from cache
Fetched https://github.com/Everything-as-UI/DocumentUI.git from cache (0.52s)
Fetching https://github.com/Everything-as-UI/CoreUI.git from cache
Fetched https://github.com/Everything-as-UI/CoreUI.git from cache (0.50s)
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)
Creating working copy for https://github.com/Everything-as-UI/AttributedTextUI.git
Working copy of https://github.com/Everything-as-UI/AttributedTextUI.git resolved at main (2ffc808)
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)
warning: '.resolve-product-dependencies': dependency 'attributedtextui' is not used by any target
Found 1 product dependencies
  - DocumentUI
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Everything-as-UI/AttributedTextUI.git
https://github.com/Everything-as-UI/AttributedTextUI.git
{
  "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"
}
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/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/7] Emitting module CoreUI
[7/7] Compiling CoreUI CoreUI.swift
[8/9] Compiling CommonUI CommonUI.swift
[9/9] Emitting module CommonUI
[10/17] Compiling DocumentUI TupleDocument.swift
[11/17] Compiling DocumentUI TextDocument.swift
[12/17] Compiling DocumentUI TextDocumentBuilders.swift
[13/17] Compiling DocumentUI Joined.swift
[14/17] Compiling DocumentUI AnyTextDocument.swift
[15/17] Compiling DocumentUI Modifiers.swift
[16/17] Emitting module DocumentUI
[17/17] Compiling DocumentUI DocumentUI.swift
[18/20] Compiling AttributedTextUI AttributedTextBuilders.swift
[19/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:103:1: note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
101 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
102 | - (instancetype)initTextCell:(NSString *)string NS_DESIGNATED_INITIALIZER;
103 | - (instancetype)initImageCell:(nullable NSImage *)image NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSCell'
104 | - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
105 |
/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
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCell.h:103:1: note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
101 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
102 | - (instancetype)initTextCell:(NSString *)string NS_DESIGNATED_INITIALIZER;
103 | - (instancetype)initImageCell:(nullable NSImage *)image NS_DESIGNATED_INITIALIZER;
    | |- note: calls to initializer 'init(imageCell:)' from outside of its actor context are implicitly asynchronous
    | `- note: main actor isolation inferred from inheritance from class 'NSCell'
104 | - (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
105 |
/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
[20/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 {
Build complete! (9.88s)
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.