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 development (fac78d), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 15:55:35 UTC.

Swift 6 data race errors: 2

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/weichsel/ZIPFoundation.git
Reference: development
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/weichsel/ZIPFoundation
 * branch            development -> FETCH_HEAD
 * [new branch]      development -> origin/development
HEAD is now at fac78df Merge pull request #331 from kbinani/fix-memory-leadk-at-data-readchunk
Cloned https://github.com/weichsel/ZIPFoundation.git
Revision (git rev-parse @):
fac78dfe5a886ad98e355ba98475b30b3753213a
SUCCESS checkout https://github.com/weichsel/ZIPFoundation.git at development
========================================
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": "zipfoundation",
      "name": "ZIPFoundation",
      "url": "https://github.com/weichsel/ZIPFoundation.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ZIPFoundation",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/weichsel/ZIPFoundation.git
[1/5466] Fetching zipfoundation
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (1.45s)
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at development (fac78df)
warning: '.resolve-product-dependencies': dependency 'zipfoundation' 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/weichsel/ZIPFoundation.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/3] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/24] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
[5/24] Compiling ZIPFoundation Archive+Writing.swift
[6/24] Compiling ZIPFoundation Archive+BackingConfiguration.swift
[7/24] Compiling ZIPFoundation Archive+Deprecated.swift
[8/24] Compiling ZIPFoundation Archive+Helpers.swift
[9/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: annotate 'maxUInt32' 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
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: annotate 'maxUInt16' 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
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[10/24] Compiling ZIPFoundation Archive+MemoryFile.swift
[11/24] Compiling ZIPFoundation Archive+Progress.swift
[12/24] Compiling ZIPFoundation Archive+Reading.swift
[13/24] Compiling ZIPFoundation Entry+ZIP64.swift
[14/24] Compiling ZIPFoundation Entry.swift
[15/26] Compiling ZIPFoundation Archive.swift
[16/26] Compiling ZIPFoundation Data+Compression.swift
[17/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: annotate 'maxUInt32' 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
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: annotate 'maxUInt16' 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
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[18/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: annotate 'maxUInt32' 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
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: annotate 'maxUInt16' 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
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[19/26] Compiling ZIPFoundation Date+ZIP.swift
[20/26] Compiling ZIPFoundation Entry+Serialization.swift
[21/26] Compiling ZIPFoundation Data+CompressionDeprecated.swift
[22/26] Compiling ZIPFoundation Data+Serialization.swift
[23/26] Compiling ZIPFoundation FileManager+ZIP.swift
[24/26] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[25/26] Compiling ZIPFoundation URL+ZIP.swift
[26/26] Compiling ZIPFoundation resource_bundle_accessor.swift
Build complete! (15.98s)
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.