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

Swift 6 data race errors: 2

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/danielsaidi/PrintingKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/danielsaidi/PrintingKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 36c6d12 Bump to 0.5.2
Cloned https://github.com/danielsaidi/PrintingKit.git
Revision (git rev-parse @):
36c6d121eefef73af44271b745a9793b8fca0c2e
SUCCESS checkout https://github.com/danielsaidi/PrintingKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/danielsaidi/PrintingKit.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/12] Compiling PrintingKit Printer+Error.swift
[4/12] Compiling PrintingKit PdfDataSource.swift
[5/12] Compiling PrintingKit PdfDataSource+NSAttributedString.swift
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource+NSAttributedString.swift:16:10: warning: main actor-isolated instance method 'pdfData()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | extension NSAttributedString: PdfDataSource {}
    |                               `- note: add '@preconcurrency' to the 'PdfDataSource' conformance to defer isolation checking to run time
 12 |
 13 | @MainActor
 14 | public extension NSAttributedString {
 15 |
 16 |     func pdfData() throws -> Data {
    |          |- warning: main actor-isolated instance method 'pdfData()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'pdfData()' to make this instance method not isolated to the actor
 17 |         try pdfData(withConfiguration: .standard)
 18 |     }
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource.swift:16:10: note: mark the protocol requirement 'pdfData()' 'async' to allow actor-isolated conformances
14 |
15 |     /// Generate PDF data.
16 |     func pdfData() throws -> Data
   |          `- note: mark the protocol requirement 'pdfData()' 'async' to allow actor-isolated conformances
17 |
18 |     /// Generate PDF data for the provided configuration.
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource+NSAttributedString.swift:20:10: warning: main actor-isolated instance method 'pdfData(withConfiguration:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 18 |     }
 19 |
 20 |     func pdfData(
    |          |- warning: main actor-isolated instance method 'pdfData(withConfiguration:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'pdfData(withConfiguration:)' to make this instance method not isolated to the actor
 21 |         withConfiguration config: Pdf.PageConfiguration
 22 |     ) throws -> Data {
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource.swift:19:10: note: mark the protocol requirement 'pdfData(withConfiguration:)' 'async' to allow actor-isolated conformances
17 |
18 |     /// Generate PDF data for the provided configuration.
19 |     func pdfData(
   |          `- note: mark the protocol requirement 'pdfData(withConfiguration:)' 'async' to allow actor-isolated conformances
20 |         withConfiguration config: Pdf.PageConfiguration
21 |     ) throws -> Data
[6/12] Compiling PrintingKit PrintItem.swift
[7/12] Compiling PrintingKit Pdf.swift
[8/12] Compiling PrintingKit Pdf+PageMargins.swift
[9/12] Compiling PrintingKit Pdf+PageConfiguration.swift
[10/12] Compiling PrintingKit Pdf+DataError.swift
[11/12] Emitting module PrintingKit
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource+NSAttributedString.swift:16:10: warning: main actor-isolated instance method 'pdfData()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | extension NSAttributedString: PdfDataSource {}
    |                               `- note: add '@preconcurrency' to the 'PdfDataSource' conformance to defer isolation checking to run time
 12 |
 13 | @MainActor
 14 | public extension NSAttributedString {
 15 |
 16 |     func pdfData() throws -> Data {
    |          |- warning: main actor-isolated instance method 'pdfData()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'pdfData()' to make this instance method not isolated to the actor
 17 |         try pdfData(withConfiguration: .standard)
 18 |     }
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource.swift:16:10: note: mark the protocol requirement 'pdfData()' 'async' to allow actor-isolated conformances
14 |
15 |     /// Generate PDF data.
16 |     func pdfData() throws -> Data
   |          `- note: mark the protocol requirement 'pdfData()' 'async' to allow actor-isolated conformances
17 |
18 |     /// Generate PDF data for the provided configuration.
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource+NSAttributedString.swift:20:10: warning: main actor-isolated instance method 'pdfData(withConfiguration:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
 18 |     }
 19 |
 20 |     func pdfData(
    |          |- warning: main actor-isolated instance method 'pdfData(withConfiguration:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'pdfData(withConfiguration:)' to make this instance method not isolated to the actor
 21 |         withConfiguration config: Pdf.PageConfiguration
 22 |     ) throws -> Data {
/Users/admin/builder/spi-builder-workspace/Sources/PrintingKit/Pdf/PdfDataSource.swift:19:10: note: mark the protocol requirement 'pdfData(withConfiguration:)' 'async' to allow actor-isolated conformances
17 |
18 |     /// Generate PDF data for the provided configuration.
19 |     func pdfData(
   |          `- note: mark the protocol requirement 'pdfData(withConfiguration:)' 'async' to allow actor-isolated conformances
20 |         withConfiguration config: Pdf.PageConfiguration
21 |     ) throws -> Data
[12/12] Compiling PrintingKit Printer.swift
Build complete! (35.46s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PrintingKit",
  "name" : "PrintingKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "PrintingKit",
      "targets" : [
        "PrintingKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrintingKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PrintingKitTests",
      "path" : "Tests/PrintingKitTests",
      "sources" : [
        "PrinterTests.swift"
      ],
      "target_dependencies" : [
        "PrintingKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PrintingKit",
      "module_type" : "SwiftTarget",
      "name" : "PrintingKit",
      "path" : "Sources/PrintingKit",
      "product_memberships" : [
        "PrintingKit"
      ],
      "sources" : [
        "Pdf/Pdf+DataError.swift",
        "Pdf/Pdf+PageConfiguration.swift",
        "Pdf/Pdf+PageMargins.swift",
        "Pdf/Pdf.swift",
        "Pdf/PdfDataSource+NSAttributedString.swift",
        "Pdf/PdfDataSource.swift",
        "PrintItem.swift",
        "Printer+Error.swift",
        "Printer.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.