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

Swift 6 data race errors: 0

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/sochalewski/SwiftCompressor.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sochalewski/SwiftCompressor
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at af8cb04 Add asynchronous methods
Cloned https://github.com/sochalewski/SwiftCompressor.git
Revision (git rev-parse @):
af8cb043f646849d67bf6310c7bf6a9ab3c0dd07
SUCCESS checkout https://github.com/sochalewski/SwiftCompressor.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/sochalewski/SwiftCompressor.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/4] Compiling SwiftCompressor Data+Compressor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:115:32: warning: capture of 'algorithm' with non-sendable type 'CompressionAlgorithm' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 |  */
 18 | @available(iOS 9.0, macOS 10.11, watchOS 2.0, tvOS 9.0, *)
 19 | public enum CompressionAlgorithm {
    |             `- note: consider making enum 'CompressionAlgorithm' conform to the 'Sendable' protocol
 20 |     /**
 21 |      The LZ4 compression algorithm, that is recommended for fast compression.
    :
113 |             do {
114 |                 let data = try compress(
115 |                     algorithm: algorithm,
    |                                `- warning: capture of 'algorithm' with non-sendable type 'CompressionAlgorithm' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |                     operation: .compression,
117 |                     bufferSize: bufferSize
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:119:17: warning: capture of 'completion' with non-sendable type '(Result<Data, CompressionError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 |                     bufferSize: bufferSize
118 |                 )
119 |                 completion(.success(data))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<Data, CompressionError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 |             } catch let error {
121 |                 guard let error = error as? CompressionError else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:159:32: warning: capture of 'algorithm' with non-sendable type 'CompressionAlgorithm' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 |  */
 18 | @available(iOS 9.0, macOS 10.11, watchOS 2.0, tvOS 9.0, *)
 19 | public enum CompressionAlgorithm {
    |             `- note: consider making enum 'CompressionAlgorithm' conform to the 'Sendable' protocol
 20 |     /**
 21 |      The LZ4 compression algorithm, that is recommended for fast compression.
    :
157 |             do {
158 |                 let data = try compress(
159 |                     algorithm: algorithm,
    |                                `- warning: capture of 'algorithm' with non-sendable type 'CompressionAlgorithm' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 |                     operation: .decompression,
161 |                     bufferSize: bufferSize
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:163:17: warning: capture of 'completion' with non-sendable type '(Result<Data, CompressionError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |                     bufferSize: bufferSize
162 |                 )
163 |                 completion(.success(data))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<Data, CompressionError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
164 |             } catch let error {
165 |                 guard let error = error as? CompressionError else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:115:32: warning: sending 'algorithm' risks causing data races; this is an error in the Swift 6 language mode
113 |             do {
114 |                 let data = try compress(
115 |                     algorithm: algorithm,
    |                                |- warning: sending 'algorithm' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'algorithm' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 |                     operation: .compression,
117 |                     bufferSize: bufferSize
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:119:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
117 |                     bufferSize: bufferSize
118 |                 )
119 |                 completion(.success(data))
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
120 |             } catch let error {
121 |                 guard let error = error as? CompressionError else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:159:32: warning: sending 'algorithm' risks causing data races; this is an error in the Swift 6 language mode
157 |             do {
158 |                 let data = try compress(
159 |                     algorithm: algorithm,
    |                                |- warning: sending 'algorithm' risks causing data races; this is an error in the Swift 6 language mode
    |                                `- note: task-isolated 'algorithm' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
160 |                     operation: .decompression,
161 |                     bufferSize: bufferSize
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCompressor/Data+Compressor.swift:163:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
161 |                     bufferSize: bufferSize
162 |                 )
163 |                 completion(.success(data))
    |                 |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
164 |             } catch let error {
165 |                 guard let error = error as? CompressionError else { return }
[4/4] Emitting module SwiftCompressor
Build complete! (17.22s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCompressor",
  "name" : "SwiftCompressor",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftCompressor",
      "targets" : [
        "SwiftCompressor"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCompressorTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCompressorTests",
      "path" : "Tests/SwiftCompressorTests",
      "sources" : [
        "SwiftCompressorTests.swift"
      ],
      "target_dependencies" : [
        "SwiftCompressor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCompressor",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCompressor",
      "path" : "Sources/SwiftCompressor",
      "product_memberships" : [
        "SwiftCompressor"
      ],
      "sources" : [
        "Data+Compressor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.