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 v1.1.9 (8c6c34), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 12:37:36 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 -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/ZhgChgLi/ZNSTextAttachment.git
Reference: v1.1.9
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ZhgChgLi/ZNSTextAttachment
 * tag               v1.1.9     -> FETCH_HEAD
HEAD is now at 8c6c34e [Fix] base 64 mime type
Cloned https://github.com/ZhgChgLi/ZNSTextAttachment.git
Revision (git rev-parse @):
8c6c34e82eb31ad373b209cb88c2a2aff76c6cdf
SUCCESS checkout https://github.com/ZhgChgLi/ZNSTextAttachment.git at v1.1.9
========================================
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/224] Fetching znstextattachment
Fetched https://github.com/ZhgChgLi/ZNSTextAttachment.git from cache (0.97s)
Creating working copy for https://github.com/ZhgChgLi/ZNSTextAttachment.git
Working copy of https://github.com/ZhgChgLi/ZNSTextAttachment.git resolved at v1.1.9 (8c6c34e)
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
{
  "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.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling ZNSTextAttachment ZNSTextAttachmentable.swift
[4/12] Compiling ZNSTextAttachment ZNSTextAttachmentHandler.swift
[5/12] Compiling ZNSTextAttachment ZNSTextAttachmentDelegate.swift
[6/12] Compiling ZNSTextAttachment ZNSTextAttachmentDataSource.swift
[7/12] Compiling ZNSTextAttachment WeakZNSTextAttachmentable.swift
[8/12] Compiling ZNSTextAttachment ZNSTextAttachmentLabel.swift
[9/12] Compiling ZNSTextAttachment UILabel+Extenstion.swift
[10/12] 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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
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)
[11/12] Compiling ZNSTextAttachment NSTextStorage+Extension.swift
[12/12] Emitting module ZNSTextAttachment
[13/13] Compiling ZNSTextAttachment ZResizableNSTextAttachment.swift
Build complete! (17.25s)
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.