The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of swift-zip-archive, reference 0.6.4 (b04d3d), with Swift 6.2 for macOS (SPM) on 17 Oct 2025 11:23:14 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/adam-fowler/swift-zip-archive.git
Reference: 0.6.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/adam-fowler/swift-zip-archive
 * tag               0.6.4      -> FETCH_HEAD
HEAD is now at b04d3d1 Make FileHeader.isDirectory public
Cloned https://github.com/adam-fowler/swift-zip-archive.git
Revision (git rev-parse @):
b04d3d130b9a8b212db9d97da3b8853b024887be
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/adam-fowler/swift-zip-archive.git at 0.6.4
Fetching https://github.com/apple/swift-system.git
[1/5051] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.98s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (1.53s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
========================================
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": "swift-zip-archive",
      "name": "swift-zip-archive",
      "url": "https://github.com/adam-fowler/swift-zip-archive.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-zip-archive",
      "dependencies": [
        {
          "identity": "swift-system",
          "name": "swift-system",
          "url": "https://github.com/apple/swift-system.git",
          "version": "1.6.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/adam-fowler/swift-zip-archive.git
[1/721] Fetching swift-zip-archive
Fetched https://github.com/adam-fowler/swift-zip-archive.git from cache (0.83s)
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.43s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (0.99s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.3
Creating working copy for https://github.com/adam-fowler/swift-zip-archive.git
Working copy of https://github.com/adam-fowler/swift-zip-archive.git resolved at 0.6.4 (b04d3d1)
warning: '.resolve-product-dependencies': dependency 'swift-zip-archive' is not used by any target
Found 1 product dependencies
  - swift-system
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/adam-fowler/swift-zip-archive.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[2/5] Compiling CSystem shims.c
[3/5] Compiling CZipZlib empty.c
[4/5] Write swift-version-49B95AFC49DCD68C.txt
[6/33] Emitting module SystemPackage
[7/36] Compiling SystemPackage Util+StringArray.swift
[8/36] Compiling SystemPackage Util.swift
[9/36] Compiling SystemPackage UtilConsumers.swift
[10/36] Compiling SystemPackage FilePathTempPosix.swift
[11/36] Compiling SystemPackage FilePathTempWindows.swift
[12/36] Compiling SystemPackage FilePathWindows.swift
[13/36] Compiling SystemPackage FilePathComponentView.swift
[14/36] Compiling SystemPackage FilePathComponents.swift
[15/36] Compiling SystemPackage FilePathParsing.swift
[16/36] Compiling SystemPackage FileHelpers.swift
[17/36] Compiling SystemPackage FileOperations.swift
[18/36] Compiling SystemPackage FilePath.swift
[19/36] Compiling SystemPackage Constants.swift
[20/36] Compiling SystemPackage Exports.swift
[21/36] Compiling SystemPackage Mocking.swift
[22/36] Compiling SystemPackage RawBuffer.swift
[23/36] Compiling SystemPackage Syscalls.swift
[24/36] Compiling SystemPackage WindowsSyscallAdapters.swift
[25/36] Compiling SystemPackage FilePathString.swift
[26/36] Compiling SystemPackage FilePathSyntax.swift
[27/36] Compiling SystemPackage FilePathTemp.swift
[28/36] Compiling SystemPackage FilePermissions.swift
[29/36] Compiling SystemPackage Backcompat.swift
[30/36] Compiling SystemPackage CInterop.swift
[31/36] Compiling SystemPackage MachPort.swift
[32/36] Compiling SystemPackage PlatformString.swift
[33/36] Compiling SystemPackage SystemString.swift
[34/36] Compiling SystemPackage Errno.swift
[35/36] Compiling SystemPackage ErrnoWindows.swift
[36/36] Compiling SystemPackage FileDescriptor.swift
[37/51] Compiling ZipArchive System+directory.swift
[38/51] Compiling ZipArchive ZipArchiveReader+extract.swift
[39/51] Compiling ZipArchive ZipArchiveReader.swift
[40/51] Compiling ZipArchive ZipArchiveWriter+writeFolderContents.swift
[41/51] Compiling ZipArchive ZipFileStorage.swift
[42/51] Compiling ZipArchive ZipMemoryStorage.swift
[43/51] Compiling ZipArchive ZipTypes.swift
[44/51] Compiling ZipArchive ZipStorage.swift
[45/51] Compiling ZipArchive ZipArchiveWriter.swift
[46/51] Compiling ZipArchive ZipCompression.swift
[47/52] Compiling ZipArchive crc32.swift
[48/52] Compiling ZipArchive CryptKey.swift
[49/52] Compiling ZipArchive Date.swift
[50/52] Emitting module ZipArchive
[51/52] Compiling ZipArchive DirectoryDescriptor.swift
[52/52] Compiling ZipArchive MemoryBuffer.swift
Build complete! (5.46s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system.git"
    }
  ],
  "manifest_display_name" : "swift-zip-archive",
  "name" : "swift-zip-archive",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "ZipArchive",
      "targets" : [
        "ZipArchive"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZipArchiveTests",
      "module_type" : "SwiftTarget",
      "name" : "ZipArchiveTests",
      "path" : "Tests/ZipArchiveTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ZipArchiveTests/resources/encoding.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ZipArchiveTests/resources/encrypted.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ZipArchiveTests/resources/hello64.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ZipArchiveTests/resources/linux.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ZipArchiveTests/resources/macos.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ZipArchiveTests/resources/source.zip",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/ZipArchiveTests/resources/test.bin",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "EncryptionTests.swift",
        "FileDescriptor+remove.swift",
        "FileStorageTests.swift",
        "MemoryStorageTests.swift",
        "ZipArchiveReaderTests.swift",
        "ZipArchiveWriterTests.swift",
        "ZipCompressionTests.swift"
      ],
      "target_dependencies" : [
        "ZipArchive"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZipArchive",
      "module_type" : "SwiftTarget",
      "name" : "ZipArchive",
      "path" : "Sources/ZipArchive",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "ZipArchive"
      ],
      "sources" : [
        "CryptKey.swift",
        "Date.swift",
        "DirectoryDescriptor.swift",
        "MemoryBuffer.swift",
        "System+directory.swift",
        "ZipArchiveReader+extract.swift",
        "ZipArchiveReader.swift",
        "ZipArchiveWriter+writeFolderContents.swift",
        "ZipArchiveWriter.swift",
        "ZipCompression.swift",
        "ZipFileStorage.swift",
        "ZipMemoryStorage.swift",
        "ZipStorage.swift",
        "ZipTypes.swift",
        "crc32.swift"
      ],
      "target_dependencies" : [
        "CZipZlib"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CZipZlib",
      "module_type" : "ClangTarget",
      "name" : "CZipZlib",
      "path" : "Sources/CZipZlib",
      "product_memberships" : [
        "ZipArchive"
      ],
      "sources" : [
        "empty.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/adam-fowler/swift-zip-archive/0.6.4
Repository:               adam-fowler/swift-zip-archive
Swift version used:       6.2
Target:                   ZipArchive
Extracting symbol information for 'ZipArchive'...
Finished extracting symbol information for 'ZipArchive'. (1.87s)
Building documentation for 'ZipArchive'...
warning: 'ZipArchiveReader.withFile(_:process:)' doesn't exist at '/ZipArchive'
  --> index.md:11:58-11:95
9  | ## Reading Zip archives
10 |
11 + To parse a zip archive stored on disk use the function ``ZipArchiveReader.withFile(_:process:)``. This creates a ``ZipArchiveReader`` that can be used in the supplied closure to read the directory from a zip file and then read individual files.
   |                                                          ├─suggestion: Replace 'ZipArchiveReader.withFile(_:process:)' with 'ZipArchiveReaderError'
   |                                                          ├─suggestion: Replace 'ZipArchiveReader.withFile(_:process:)' with 'ZipArchiveReader'
   |                                                          ╰─suggestion: Replace 'ZipArchiveReader.withFile(_:process:)' with 'ZipArchiveReaderConfiguration'
12 |
13 | ```swift
warning: 'ZipArchiveWriter.withFile(_:options:process:)' doesn't exist at '/ZipArchive'
  --> index.md:23:71-23:116
21 | ## Writing Zip Archives
22 |
23 + The ``ZipArchiveWriter`` is used to write zip archives. You can use ``ZipArchiveWriter.withFile(_:options:process:)`` to either create a new zip archive or append files to an existing zip archive. This function has a closure parameter in which you can add new files to the zip using the provided `ZipArchiveWriter`. When you exit the closure the zip archive is finalized ie the directory and end of directory sections are written to disk and file descriptor is closed. The following loads zip archive MyFile.zip and then appends a new file called Hello.txt to the archive.
   |                                                                       ├─suggestion: Replace 'ZipArchiveWriter.withFile(_:options:process:)' with 'ZipArchiveWriterConfiguration'
   |                                                                       ├─suggestion: Replace 'ZipArchiveWriter.withFile(_:options:process:)' with 'ZipArchiveWriterError'
   |                                                                       ╰─suggestion: Replace 'ZipArchiveWriter.withFile(_:options:process:)' with 'ZipArchiveWriter'
24 |
25 | ```swift
warning: 'ZipArchiveReader.readFile(_:password:)' doesn't exist at '/ZipArchive'
  --> index.md:35:122-35:160
33 | ## Password Protected Zip Archives
34 |
35 + `ZipArchive` supports the traditional PKZIP encrytion method. You can decrypt a file by adding a password parameter to ``ZipArchiveReader.readFile(_:password:)``. For example
   |                                                                                                                          ├─suggestion: Replace 'ZipArchiveReader.readFile(_:password:)' with 'ZipArchiveReaderError'
   |                                                                                                                          ├─suggestion: Replace 'ZipArchiveReader.readFile(_:password:)' with 'ZipArchiveReader'
   |                                                                                                                          ╰─suggestion: Replace 'ZipArchiveReader.readFile(_:password:)' with 'ZipArchiveReaderConfiguration'
36 |
37 | ```swift
warning: 'ZipArchiveWriter.writeFile(filename:contents:password:)' doesn't exist at '/ZipArchive'
  --> index.md:41:64-41:119
39 | ```
40 |
41 + And you can add encryption to a file by adding a password to ``ZipArchiveWriter.writeFile(filename:contents:password:)``. For example
   |                                                                ├─suggestion: Replace 'ZipArchiveWriter.writeFile(filename:contents:password:)' with 'ZipArchiveWriterError'
   |                                                                ├─suggestion: Replace 'ZipArchiveWriter.writeFile(filename:contents:password:)' with 'ZipArchiveWriterConfiguration'
   |                                                                ╰─suggestion: Replace 'ZipArchiveWriter.writeFile(filename:contents:password:)' with 'ZipArchiveWriter'
42 |
43 | ```swift
warning: 'ZipFileWriter.finalizeBuffer()' doesn't exist at '/ZipArchive'
  --> index.md:58:173-58:203
56 | ```
57 |
58 + To write to a zip archive in memory you can create a `ZipFileWriter` from a buffer. When you want to create your finalized zip archive with a complete directory you call ``ZipFileWriter.finalizeBuffer()`` which will return the complete zip archive.
59 |
60 | ```swift
Finished building documentation for 'ZipArchive' (0.32s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/adam-fowler/swift-zip-archive/0.6.4
Fetching https://github.com/swiftlang/swift-docc-plugin
Updating https://github.com/apple/swift-system.git
Updated https://github.com/apple/swift-system.git (0.51s)
[1/2133] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.23s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (1.74s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (2.15s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3553] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.11s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.82s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
Building for debugging...
[0/8] Write sources
[0/8] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version-49B95AFC49DCD68C.txt
[6/53] Compiling SymbolKit Names.swift
[7/53] Compiling SymbolKit SPI.swift
[8/53] Compiling SymbolKit Snippet.swift
[9/53] Compiling SymbolKit Extension.swift
[10/57] Compiling SymbolKit Relationship.swift
[11/57] Compiling SymbolKit RelationshipKind.swift
[12/57] Compiling SymbolKit SourceOrigin.swift
[13/57] Compiling SymbolKit GenericConstraints.swift
[14/57] Compiling SymbolKit Swift.swift
[15/57] Compiling SymbolKit GenericConstraint.swift
[16/57] Compiling SymbolKit GenericParameter.swift
[17/57] Compiling SymbolKit Generics.swift
[18/57] Compiling SymbolKit Namespace.swift
[19/57] Compiling SymbolKit Identifier.swift
[20/57] Compiling SymbolKit KindIdentifier.swift
[21/57] Compiling SymbolKit Location.swift
[22/57] Compiling SymbolKit Mutability.swift
[23/57] Compiling SymbolKit DeclarationFragments.swift
[24/57] Compiling SymbolKit Fragment.swift
[25/57] Compiling SymbolKit FragmentKind.swift
[26/57] Compiling SymbolKit FunctionParameter.swift
[27/57] Compiling SymbolKit FunctionSignature.swift
[28/57] Compiling SymbolKit Symbol.swift
[29/57] Compiling SymbolKit SymbolKind.swift
[30/57] Compiling SymbolKit SymbolGraph.swift
[31/57] Compiling SymbolKit GraphCollector.swift
[32/57] Compiling SymbolKit SourceRange.swift
[33/57] Compiling SymbolKit Metadata.swift
[34/57] Compiling SymbolKit Module.swift
[35/57] Compiling SymbolKit OperatingSystem.swift
[36/57] Compiling SymbolKit Platform.swift
[37/57] Compiling SymbolKit SemanticVersion.swift
[38/57] Compiling SymbolKit AccessControl.swift
[39/57] Compiling SymbolKit Availability.swift
[40/57] Compiling SymbolKit AvailabilityItem.swift
[41/57] Compiling SymbolKit Domain.swift
[42/57] Emitting module SymbolKit
[43/57] Compiling SymbolKit Mixin+Equals.swift
[44/57] Compiling SymbolKit Mixin+Hash.swift
[45/57] Compiling SymbolKit Mixin.swift
[46/57] Compiling SymbolKit LineList.swift
[47/57] Compiling SymbolKit Position.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets SnippetParser.swift
[53/57] Compiling Snippets Snippet.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (3.15s)
Building for debugging...
[0/1] Write swift-version-49B95AFC49DCD68C.txt
Build of target: 'ZipArchive' complete! (0.23s)
     792
6	/Users/admin/builder/spi-builder-workspace/.docs/adam-fowler/swift-zip-archive/0.6.4
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/adam-fowler/swift-zip-archive/0.6.4
File count: 792
Doc size:   6.0MB
Preparing doc bundle ...
Uploading prod-adam-fowler-swift-zip-archive-0.6.4-edf0373f.zip to s3://spi-docs-inbox/prod-adam-fowler-swift-zip-archive-0.6.4-edf0373f.zip
Copying... [11%]
Copying... [22%]
Copying... [33%]
Copying... [43%]
Copying... [54%]
Copying... [65%]
Copying... [71%]
Copying... [81%]
Copying... [92%]
Copying... [100%]
Done.