ZipError

public enum ZipError: Error

Error happened during processing ZIP archive (container). It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.

  • notFoundCentralDirectoryEnd: end of Central Directoty record wasn’t found.
  • wrongSignature: unsupported signature of one of ZIP container’s structures.
  • wrongSize: incorrect compressed or uncompressed size of a ZIP container’s entry’s data.
  • wrongVersion: unsupported number of version needed to extract ZIP container (unsupported features are required to open this file).
  • multiVolumesNotSupported: unsupported feature: multi-volumed or spanned container.
  • encryptionNotSupported: unsupported feature: encryption.
  • patchingNotSupported: unsupported feature: patched data.
  • compressionNotSupported: unsupported feature: specified compression method.
  • wrongLocalHeader: local header of an entry wasn’t consistent with Central Directory record.
  • wrongCRC32: computed checksum of entry’s data wasn’t the same as the one stored in container.
  • Wrong either compressed or uncompressed size of a ZIP container’s entry.

    Declaration

    Swift

    case wrongSize
  • Computed CRC32 of entry’s data didn’t match the value stored in the container. Associated value contains extracted data.

    Declaration

    Swift

    case wrongCRC32(Data)