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 ZNSTextAttachment, reference main (ba46fc), with Swift 6.0 for macOS (SPM) on 4 Mar 2025 17:41:05 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZhgChgLi/ZNSTextAttachment.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ZhgChgLi/ZNSTextAttachment
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ba46fc3 Update README.md
Cloned https://github.com/ZhgChgLi/ZNSTextAttachment.git
Revision (git rev-parse @):
ba46fc3acd30af7fc01924341ad6d4e0384e7bee
SUCCESS checkout https://github.com/ZhgChgLi/ZNSTextAttachment.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": "znstextattachment",
      "name": "ZNSTextAttachment",
      "url": "https://github.com/ZhgChgLi/ZNSTextAttachment.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ZNSTextAttachment",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/ZhgChgLi/ZNSTextAttachment.git
[1/227] Fetching znstextattachment
Fetched https://github.com/ZhgChgLi/ZNSTextAttachment.git from cache (1.01s)
Creating working copy for https://github.com/ZhgChgLi/ZNSTextAttachment.git
Working copy of https://github.com/ZhgChgLi/ZNSTextAttachment.git resolved at main (ba46fc3)
warning: '.resolve-product-dependencies': dependency 'znstextattachment' 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/ZhgChgLi/ZNSTextAttachment.git
https://github.com/ZhgChgLi/ZNSTextAttachment.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ZNSTextAttachment",
  "name" : "ZNSTextAttachment",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    }
  ],
  "products" : [
    {
      "name" : "ZNSTextAttachment",
      "targets" : [
        "ZNSTextAttachment"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZNSTextAttachment",
      "module_type" : "SwiftTarget",
      "name" : "ZNSTextAttachment",
      "path" : "Sources",
      "product_memberships" : [
        "ZNSTextAttachment"
      ],
      "sources" : [
        "UIExtensions/UILabel+Extenstion.swift",
        "UIExtensions/ZNSTextAttachmentLabel.swift",
        "ZNSTextAttachment/NSTextStorage+Extension.swift",
        "ZNSTextAttachment/WeakZNSTextAttachmentable.swift",
        "ZNSTextAttachment/ZNSTextAttachment.swift",
        "ZNSTextAttachment/ZNSTextAttachmentDataSource.swift",
        "ZNSTextAttachment/ZNSTextAttachmentDelegate.swift",
        "ZNSTextAttachment/ZNSTextAttachmentHandler.swift",
        "ZNSTextAttachment/ZNSTextAttachmentable.swift",
        "ZNSTextAttachment/ZResizableNSTextAttachment.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/12] Compiling ZNSTextAttachment ZNSTextAttachmentable.swift
[4/13] Compiling ZNSTextAttachment ZNSTextAttachmentHandler.swift
[5/13] Compiling ZNSTextAttachment ZNSTextAttachmentDelegate.swift
[6/13] Compiling ZNSTextAttachment ZResizableNSTextAttachment.swift
[7/13] Compiling ZNSTextAttachment ZNSTextAttachmentDataSource.swift
[8/13] Compiling ZNSTextAttachment NSTextStorage+Extension.swift
[9/13] Compiling ZNSTextAttachment WeakZNSTextAttachmentable.swift
[10/13] Compiling ZNSTextAttachment ZNSTextAttachmentLabel.swift
[11/13] Compiling ZNSTextAttachment UILabel+Extenstion.swift
[12/13] Emitting module ZNSTextAttachment
[13/13] Compiling ZNSTextAttachment ZNSTextAttachment.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZNSTextAttachment/ZNSTextAttachment.swift:102:21: warning: capture of 'self' with non-sendable type 'ZNSTextAttachment' in a `@Sendable` closure
 16 | import UniformTypeIdentifiers
 17 |
 18 | public class ZNSTextAttachment: NSTextAttachment {
    |              `- note: class 'ZNSTextAttachment' does not conform to the 'Sendable' protocol
 19 |
 20 |     public let imageURL: URL
    :
100 |
101 |
102 |                     self.dataDownloaded(data, mimeType: response?.mimeType)
    |                     `- warning: capture of 'self' with non-sendable type 'ZNSTextAttachment' in a `@Sendable` closure
103 |                     self.isLoading = false
104 |                     self.urlSessionDataTask = nil
/Users/admin/builder/spi-builder-workspace/Sources/ZNSTextAttachment/ZNSTextAttachment.swift:165:89: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
163 |
164 |         DispatchQueue.main.async {
165 |             let loaded = ZResizableNSTextAttachment(imageSize: image?.size, fixedWidth: self.imageWidth, fixedHeight: self.imageHeight, data: data, type: fileType)
    |                                                                                         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                                                                         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
166 |             self.sources.forEach { source in
167 |                 source.value?.replace(attachment: self, to: loaded)
Build complete! (12.82s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ZNSTextAttachment",
  "name" : "ZNSTextAttachment",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    }
  ],
  "products" : [
    {
      "name" : "ZNSTextAttachment",
      "targets" : [
        "ZNSTextAttachment"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZNSTextAttachment",
      "module_type" : "SwiftTarget",
      "name" : "ZNSTextAttachment",
      "path" : "Sources",
      "product_memberships" : [
        "ZNSTextAttachment"
      ],
      "sources" : [
        "UIExtensions/UILabel+Extenstion.swift",
        "UIExtensions/ZNSTextAttachmentLabel.swift",
        "ZNSTextAttachment/NSTextStorage+Extension.swift",
        "ZNSTextAttachment/WeakZNSTextAttachmentable.swift",
        "ZNSTextAttachment/ZNSTextAttachment.swift",
        "ZNSTextAttachment/ZNSTextAttachmentDataSource.swift",
        "ZNSTextAttachment/ZNSTextAttachmentDelegate.swift",
        "ZNSTextAttachment/ZNSTextAttachmentHandler.swift",
        "ZNSTextAttachment/ZNSTextAttachmentable.swift",
        "ZNSTextAttachment/ZResizableNSTextAttachment.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.