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 Unarchiver, reference 0.0.5 (7a925b), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 05:04:47 UTC.

Swift 6 data race errors: 5

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Octadero/Unarchiver.git
Reference: 0.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Octadero/Unarchiver
 * tag               0.0.5      -> FETCH_HEAD
HEAD is now at 7a925bc Updated License, move on Apache.
Cloned https://github.com/Octadero/Unarchiver.git
Revision (git rev-parse @):
7a925bc0854c5544ad8cb59f24c301682e0f2f7a
SUCCESS checkout https://github.com/Octadero/Unarchiver.git at 0.0.5
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.56s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.74s)
Creating working copy for https://github.com/Octadero/CZlib.git
Working copy of https://github.com/Octadero/CZlib.git resolved at 0.0.5
========================================
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": "unarchiver",
      "name": "Unarchiver",
      "url": "https://github.com/Octadero/Unarchiver.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Unarchiver",
      "dependencies": [
        {
          "identity": "czlib",
          "name": "CZlib",
          "url": "https://github.com/Octadero/CZlib.git",
          "version": "0.0.5",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CZlib",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/Octadero/Unarchiver.git
[1/24] Fetching unarchiver
Fetched https://github.com/Octadero/Unarchiver.git from cache (0.58s)
Fetching https://github.com/Octadero/CZlib.git from cache
Fetched https://github.com/Octadero/CZlib.git from cache (0.48s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.02s)
Creating working copy for https://github.com/Octadero/Unarchiver.git
Working copy of https://github.com/Octadero/Unarchiver.git resolved at 0.0.5 (7a925bc)
Creating working copy for https://github.com/Octadero/CZlib.git
Working copy of https://github.com/Octadero/CZlib.git resolved at 0.0.5
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: '.resolve-product-dependencies': dependency 'unarchiver' is not used by any target
Found 1 product dependencies
  - CZlib
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Octadero/Unarchiver.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/5] Emitting module Unarchiver
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:29:23: warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
    |                       |- warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'noCompression' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:30:23: warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
    |                       |- warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestSpeed' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:31:23: warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
    |                       |- warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestCompression' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:32:23: warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
    |                       |- warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultCompression' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     public init(rawValue: Int32) {
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:76:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 46 | /// See public manual http://www.zlib.net/manual.html
 47 | public struct ZLibError: Swift.Error {
 48 |     public enum Kind {
    |                 `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
 49 |
 50 |         /// The stream structure was inconsistent.
    :
 74 |
 75 |     /// Error kind.
 76 |     public let kind: Kind
    |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 77 |
 78 |     /// Returned message by zlib.
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:123:5: warning: 'public' modifier is redundant for property declared in a public extension
121 |
122 |     /// Whether the data is compressed in gzip format.
123 |     public var isGzipped: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
124 |         /// check magic number, see documentation.
125 |         return self.starts(with: [0x1f, 0x8b])
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:133:5: warning: 'public' modifier is redundant for instance method declared in a public extension
131 |     /// - throws: `ZLibError`
132 |     /// - Returns: Gzip-compressed `Data` object.
133 |     public func gzipped(level: CompressionLevel = .defaultCompression) throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 |
135 |         guard !self.isEmpty else {
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:177:5: warning: 'public' modifier is redundant for instance method declared in a public extension
175 |     /// - throws: `ZLibError`
176 |     /// - Returns: Gzip-decompressed `Data` object.
177 |     public func gunzipped() throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
178 |         guard self.isGzipped else {
179 |             return self
[4/5] Compiling Unarchiver Unarchiver.swift
[5/5] Compiling Unarchiver Data.swift
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:29:23: warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
    |                       |- warning: static property 'noCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'noCompression' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:30:23: warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
 28 |
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
    |                       |- warning: static property 'bestSpeed' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestSpeed' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:31:23: warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 29 |     public static let noCompression = CompressionLevel(Z_NO_COMPRESSION)
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
    |                       |- warning: static property 'bestCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'bestCompression' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:32:23: warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 23 | /// Compression level whose rawValue is based on the zlib's constants.
 24 | /// Compression level in the range of `0` (no compression) to `9` (maximum compression).
 25 | public struct CompressionLevel: RawRepresentable {
    |               `- note: consider making struct 'CompressionLevel' conform to the 'Sendable' protocol
 26 |
 27 |     public let rawValue: Int32
    :
 30 |     public static let bestSpeed = CompressionLevel(Z_BEST_SPEED)
 31 |     public static let bestCompression = CompressionLevel(Z_BEST_COMPRESSION)
 32 |     public static let defaultCompression = CompressionLevel(Z_DEFAULT_COMPRESSION)
    |                       |- warning: static property 'defaultCompression' is not concurrency-safe because non-'Sendable' type 'CompressionLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultCompression' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |
 34 |     public init(rawValue: Int32) {
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:76:16: warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 46 | /// See public manual http://www.zlib.net/manual.html
 47 | public struct ZLibError: Swift.Error {
 48 |     public enum Kind {
    |                 `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
 49 |
 50 |         /// The stream structure was inconsistent.
    :
 74 |
 75 |     /// Error kind.
 76 |     public let kind: Kind
    |                `- warning: stored property 'kind' of 'Sendable'-conforming struct 'ZLibError' has non-sendable type 'ZLibError.Kind'; this is an error in the Swift 6 language mode
 77 |
 78 |     /// Returned message by zlib.
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:123:5: warning: 'public' modifier is redundant for property declared in a public extension
121 |
122 |     /// Whether the data is compressed in gzip format.
123 |     public var isGzipped: Bool {
    |     `- warning: 'public' modifier is redundant for property declared in a public extension
124 |         /// check magic number, see documentation.
125 |         return self.starts(with: [0x1f, 0x8b])
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:133:5: warning: 'public' modifier is redundant for instance method declared in a public extension
131 |     /// - throws: `ZLibError`
132 |     /// - Returns: Gzip-compressed `Data` object.
133 |     public func gzipped(level: CompressionLevel = .defaultCompression) throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
134 |
135 |         guard !self.isEmpty else {
/Users/admin/builder/spi-builder-workspace/Sources/Unarchiver/Data.swift:177:5: warning: 'public' modifier is redundant for instance method declared in a public extension
175 |     /// - throws: `ZLibError`
176 |     /// - Returns: Gzip-decompressed `Data` object.
177 |     public func gunzipped() throws -> Data {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
178 |         guard self.isGzipped else {
179 |             return self
Build complete! (6.55s)
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: 'spi-builder-workspace': dependency 'czlib' is not used by any target
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: couldn't find pc file for libz
Build complete.
{
  "dependencies" : [
    {
      "identity" : "czlib",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Octadero/CZlib.git"
    }
  ],
  "manifest_display_name" : "Unarchiver",
  "name" : "Unarchiver",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Unarchiver",
      "targets" : [
        "Unarchiver"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UnarchiverTests",
      "module_type" : "SwiftTarget",
      "name" : "UnarchiverTests",
      "path" : "Tests/UnarchiverTests",
      "sources" : [
        "UnarchiverTests.swift"
      ],
      "target_dependencies" : [
        "Unarchiver"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Unarchiver",
      "module_type" : "SwiftTarget",
      "name" : "Unarchiver",
      "path" : "Sources/Unarchiver",
      "product_memberships" : [
        "Unarchiver"
      ],
      "sources" : [
        "Data.swift",
        "Unarchiver.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.