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 ZIPFoundation, reference 0.9.20 (e9b191), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 12:14:34 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tuist/ZIPFoundation.git
Reference: 0.9.20
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tuist/ZIPFoundation
 * tag               0.9.20     -> FETCH_HEAD
HEAD is now at e9b1917 Update README.md
Cloned https://github.com/tuist/ZIPFoundation.git
Revision (git rev-parse @):
e9b1917bd4d7d050e0ff4ec157b5d6e253c84385
SUCCESS checkout https://github.com/tuist/ZIPFoundation.git at 0.9.20
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tuist/ZIPFoundation.git
https://github.com/tuist/ZIPFoundation.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ZIPFoundation",
  "name" : "ZIPFoundation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ZIPFoundation",
      "targets" : [
        "ZIPFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ZIPFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundationTests",
      "path" : "Tests/ZIPFoundationTests",
      "sources" : [
        "ZIPFoundationArchiveTests+ZIP64.swift",
        "ZIPFoundationArchiveTests.swift",
        "ZIPFoundationDataSerializationTests.swift",
        "ZIPFoundationEntryTests+ZIP64.swift",
        "ZIPFoundationEntryTests.swift",
        "ZIPFoundationErrorConditionTests+ZIP64.swift",
        "ZIPFoundationErrorConditionTests.swift",
        "ZIPFoundationFileAttributeTests.swift",
        "ZIPFoundationFileManagerTests+ZIP64.swift",
        "ZIPFoundationFileManagerTests.swift",
        "ZIPFoundationMemoryTests.swift",
        "ZIPFoundationPerformanceTests.swift",
        "ZIPFoundationProgressTests.swift",
        "ZIPFoundationReadingTests+ZIP64.swift",
        "ZIPFoundationReadingTests.swift",
        "ZIPFoundationTests.swift",
        "ZIPFoundationWritingTests+ZIP64.swift",
        "ZIPFoundationWritingTests.swift"
      ],
      "target_dependencies" : [
        "ZIPFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZIPFoundation",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundation",
      "path" : "Sources/ZIPFoundation",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Archive+BackingConfiguration.swift",
        "Archive+Deprecated.swift",
        "Archive+Helpers.swift",
        "Archive+MemoryFile.swift",
        "Archive+Progress.swift",
        "Archive+Reading.swift",
        "Archive+ReadingDeprecated.swift",
        "Archive+Writing.swift",
        "Archive+WritingDeprecated.swift",
        "Archive+ZIP64.swift",
        "Archive.swift",
        "Data+Compression.swift",
        "Data+CompressionDeprecated.swift",
        "Data+Serialization.swift",
        "Date+ZIP.swift",
        "Entry+Serialization.swift",
        "Entry+ZIP64.swift",
        "Entry.swift",
        "FileManager+ZIP.swift",
        "FileManager+ZIPDeprecated.swift",
        "URL+ZIP.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/24] Emitting module ZIPFoundation
/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[5/26] Compiling ZIPFoundation URL+ZIP.swift
[6/26] Compiling ZIPFoundation resource_bundle_accessor.swift
[7/26] Compiling ZIPFoundation Archive+MemoryFile.swift
[8/26] Compiling ZIPFoundation Archive+Progress.swift
[9/26] Compiling ZIPFoundation Archive+Reading.swift
[10/26] Compiling ZIPFoundation Date+ZIP.swift
[11/26] Compiling ZIPFoundation Entry+Serialization.swift
[12/26] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
[13/26] Compiling ZIPFoundation Archive+Writing.swift
[14/26] Compiling ZIPFoundation Archive+WritingDeprecated.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[15/26] Compiling ZIPFoundation Archive+ZIP64.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[16/26] Compiling ZIPFoundation Data+CompressionDeprecated.swift
[17/26] Compiling ZIPFoundation Data+Serialization.swift
[18/26] Compiling ZIPFoundation Archive+BackingConfiguration.swift
[19/26] Compiling ZIPFoundation Archive+Deprecated.swift
[20/26] Compiling ZIPFoundation Archive+Helpers.swift
[21/26] Compiling ZIPFoundation Entry+ZIP64.swift
[22/26] Compiling ZIPFoundation Entry.swift
[23/26] Compiling ZIPFoundation FileManager+ZIP.swift
[24/26] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[25/26] Compiling ZIPFoundation Archive.swift
[26/26] Compiling ZIPFoundation Data+Compression.swift
Build complete! (6.66s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ZIPFoundation",
  "name" : "ZIPFoundation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ZIPFoundation",
      "targets" : [
        "ZIPFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ZIPFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundationTests",
      "path" : "Tests/ZIPFoundationTests",
      "sources" : [
        "ZIPFoundationArchiveTests+ZIP64.swift",
        "ZIPFoundationArchiveTests.swift",
        "ZIPFoundationDataSerializationTests.swift",
        "ZIPFoundationEntryTests+ZIP64.swift",
        "ZIPFoundationEntryTests.swift",
        "ZIPFoundationErrorConditionTests+ZIP64.swift",
        "ZIPFoundationErrorConditionTests.swift",
        "ZIPFoundationFileAttributeTests.swift",
        "ZIPFoundationFileManagerTests+ZIP64.swift",
        "ZIPFoundationFileManagerTests.swift",
        "ZIPFoundationMemoryTests.swift",
        "ZIPFoundationPerformanceTests.swift",
        "ZIPFoundationProgressTests.swift",
        "ZIPFoundationReadingTests+ZIP64.swift",
        "ZIPFoundationReadingTests.swift",
        "ZIPFoundationTests.swift",
        "ZIPFoundationWritingTests+ZIP64.swift",
        "ZIPFoundationWritingTests.swift"
      ],
      "target_dependencies" : [
        "ZIPFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZIPFoundation",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundation",
      "path" : "Sources/ZIPFoundation",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Archive+BackingConfiguration.swift",
        "Archive+Deprecated.swift",
        "Archive+Helpers.swift",
        "Archive+MemoryFile.swift",
        "Archive+Progress.swift",
        "Archive+Reading.swift",
        "Archive+ReadingDeprecated.swift",
        "Archive+Writing.swift",
        "Archive+WritingDeprecated.swift",
        "Archive+ZIP64.swift",
        "Archive.swift",
        "Data+Compression.swift",
        "Data+CompressionDeprecated.swift",
        "Data+Serialization.swift",
        "Date+ZIP.swift",
        "Entry+Serialization.swift",
        "Entry+ZIP64.swift",
        "Entry.swift",
        "FileManager+ZIP.swift",
        "FileManager+ZIPDeprecated.swift",
        "URL+ZIP.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.