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