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.
- ClArchiveByteStreamiOS 14.0+ArchiveByteStream wraps a AAByteStream object we can pass to the C API
- ClArchiveStreamiOS 14.0+Abstract archive stream, receiving parsed archive data from an archive decoder.
- PrArchiveByteStreamProtocoliOS 14.0+ArchiveByteStream Protocol
- PrArchiveStreamProtocoliOS 14.0+ArchiveStream protocol
Entry Metadata 4
Inspect and describe the headers, fields, and attributes of archive entries.
- ClArchiveHeaderiOS 14.0+Represents a AppleArchive archive entry header. Encapsulates a AAHeader object from the C API.
- St__AAFieldKeyA structure that identifies a metadata field within an archive entry header.
- St__AAEntryAttributesA structure that holds the file-system attributes recorded for an archive entry.
- St__AAAccessControlEntryA 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.
- StArchiveCompressioniOS 14.0+AppleArchive compression algorithm. This is a superset of Compression.Algorithm
- StArchiveHashiOS 14.0+AppleArchive hash function
Encryption 2
Protect archive contents and tune Apple Encrypted Archive behavior.
- ClArchiveEncryptionContextiOS 15.0+Represents a AppleArchive encryption context. Encapsulates a AEAContext object from the C API.
- StAEAContextTraitsiOS 15.0+Traits to instanciate _AAObjectWrapper
Processing Options and Errors 2
Control archive processing behavior and handle failures.
- StArchiveFlagsiOS 14.0+AppleArchive common flags
- EnArchiveErroriOS 14.0+AppleArchive common errors