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 (e9b191), with Swift 6.0 for macOS (SPM) on 6 Jan 2025 16:38:36 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.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 e9b1917 Update README.md
Cloned https://github.com/weichsel/ZIPFoundation.git
Revision (git rev-parse @):
e9b1917bd4d7d050e0ff4ec157b5d6e253c84385
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/5532] Fetching zipfoundation
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (1.28s)
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at development (e9b1917)
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
https://github.com/weichsel/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.2.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] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-5BDAB9E9C0126B9D.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: 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 }
[5/26] Compiling ZIPFoundation URL+ZIP.swift
[6/26] Compiling ZIPFoundation resource_bundle_accessor.swift
[7/26] Compiling ZIPFoundation Date+ZIP.swift
[8/26] Compiling ZIPFoundation Entry+Serialization.swift
[9/26] Compiling ZIPFoundation Archive+BackingConfiguration.swift
[10/26] Compiling ZIPFoundation Archive+Deprecated.swift
[11/26] Compiling ZIPFoundation Archive+Helpers.swift
[12/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 }
[13/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 }
[14/26] Compiling ZIPFoundation FileManager+ZIP.swift
[15/26] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[16/26] Compiling ZIPFoundation Entry+ZIP64.swift
[17/26] Compiling ZIPFoundation Entry.swift
[18/26] Compiling ZIPFoundation Data+CompressionDeprecated.swift
[19/26] Compiling ZIPFoundation Data+Serialization.swift
[20/26] Compiling ZIPFoundation Archive.swift
[21/26] Compiling ZIPFoundation Data+Compression.swift
[22/26] Compiling ZIPFoundation Archive+MemoryFile.swift
[23/26] Compiling ZIPFoundation Archive+Progress.swift
[24/26] Compiling ZIPFoundation Archive+Reading.swift
[25/26] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
[26/26] Compiling ZIPFoundation Archive+Writing.swift
Build complete! (19.57s)
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.