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.0 for macOS (SPM) on 29 Nov 2024 09:38:30 UTC.

Swift 6 data race errors: 1

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 -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.58.1
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.69s)
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.58s)
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)
========================================
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.71s)
Fetching https://github.com/Everything-as-UI/DocumentUI.git from cache
Fetched https://github.com/Everything-as-UI/DocumentUI.git from cache (0.48s)
Fetching https://github.com/Everything-as-UI/CoreUI.git from cache
Fetched https://github.com/Everything-as-UI/CoreUI.git from cache (0.49s)
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/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/DocumentUI.git
Working copy of https://github.com/Everything-as-UI/DocumentUI.git resolved at main (7178a86)
warning: '.resolve-product-dependencies': dependency 'attributedtextui' is not used by any target
Found 1 product dependencies
  - DocumentUI
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
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.1.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--7754E27361AE5C74.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 Joined.swift
[11/17] Compiling DocumentUI DocumentUI.swift
[12/17] Compiling DocumentUI TextDocument.swift
[13/17] Compiling DocumentUI TupleDocument.swift
[14/17] Compiling DocumentUI AnyTextDocument.swift
[15/17] Emitting module DocumentUI
[16/17] Compiling DocumentUI TextDocumentBuilders.swift
[17/17] Compiling DocumentUI Modifiers.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! (11.60s)
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.