TechnologiesData, Storage & Cloud

AppleArchive

iOSmacOStvOSwatchOSvisionOS

AppleArchive creates, reads, and verifies Apple Archive (.aar) files with streaming compression, CRC and SHA checksums, and encryption. You build archive pipelines from ArchiveByteStream and ArchiveStream values that conform to ArchiveByteStreamProtocol and ArchiveStreamProtocol, configuring data reduction with ArchiveCompression and integrity checks with ArchiveHash. To protect contents, you supply an ArchiveEncryptionContext, while ArchiveHeader, ArchiveFlags, and ArchiveError let you inspect entry metadata, set processing options, and handle failures. The framework is available on iOS, macOS, tvOS, watchOS, and visionOS.

Archive Streams 4

Build read and write pipelines that move bytes and entries through an archive.

  • Cl
    ArchiveByteStreamiOS 14.0+
    ArchiveByteStream wraps a AAByteStream object we can pass to the C API
  • Cl
    ArchiveStreamiOS 14.0+
    Abstract archive stream, receiving parsed archive data from an archive decoder.
  • Pr
    ArchiveByteStreamProtocoliOS 14.0+
    ArchiveByteStream Protocol
  • Pr
    ArchiveStreamProtocoliOS 14.0+
    ArchiveStream protocol

Entry Metadata 4

Inspect and describe the headers, fields, and attributes of archive entries.

  • Cl
    ArchiveHeaderiOS 14.0+
    Represents a AppleArchive archive entry header. Encapsulates a AAHeader object from the C API.
  • St
    __AAFieldKey
    A structure that identifies a metadata field within an archive entry header.
  • St
    __AAEntryAttributes
    A structure that holds the file-system attributes recorded for an archive entry.
  • St
    __AAAccessControlEntry
    A structure that represents a single access-control entry stored with an archive entry.

Compression and Integrity 2

Configure data reduction and verify archive contents with checksums.

  • St
    ArchiveCompressioniOS 14.0+
    AppleArchive compression algorithm. This is a superset of Compression.Algorithm
  • St
    ArchiveHashiOS 14.0+
    AppleArchive hash function

Encryption 2

Protect archive contents and tune Apple Encrypted Archive behavior.

  • Cl
    ArchiveEncryptionContextiOS 15.0+
    Represents a AppleArchive encryption context. Encapsulates a AEAContext object from the C API.
  • St
    AEAContextTraitsiOS 15.0+
    Traits to instanciate _AAObjectWrapper

Processing Options and Errors 2

Control archive processing behavior and handle failures.

  • St
    ArchiveFlagsiOS 14.0+
    AppleArchive common flags
  • En
    ArchiveErroriOS 14.0+
    AppleArchive common errors
← Data, Storage & Cloud