Apple Archive

RSS for tag

Perform multithreaded lossless compression of directories, files, and data.

Posts under Apple Archive tag

22 Posts

Post

Replies

Boosts

Views

Activity

Cannot find `ArchiveByteStream` in scope
I'm currently trying to decompress a received .zip file from the backend and while researching I found the native library called AppleArchive. I've imported the library and tried the code described here but I get the following error: Also if i go into the library itself only one method shows up: public func __assert_rtn(_: UnsafePointer<CChar>!, _: UnsafePointer<CChar>!, _: Int32, _: UnsafePointer<CChar>!) -> Never Tested on Xcode 13.2 on a project with minimum deployment of iOS 15.0 Edit Tested it again by changing the build target to be a real device and it works! Questions: Can this library be used to unarchive .zip files? How can AppleArchive be used on a simulator device?
3
0
1.8k
Dec ’21
System API for generating ZIP-compatible archive?
The Archive Framework implements compression algorithms and supports for example the LZMA compression format. Unfortunately I was not able to find a way to generate a ZIP-kompatible archive using the Archive Framework though iOS / iPadOS seems to be able to do that, because the Files app and the Shortcuts app support this kind of compression. Is there a way on iOS/iPadOS to generate an LZMA compressed archive with ZIP container using only apple provided APIs or other system services? PS: I don't need full support for all possible ZIP features. I only need to create a simple archive containing some files which can be opened using any zip decompression program. https://developer.apple.com/documentation/accelerate/compressing_file_system_directories
5
1
5.3k
Aug ’21
Cannot find `ArchiveByteStream` in scope
I'm currently trying to decompress a received .zip file from the backend and while researching I found the native library called AppleArchive. I've imported the library and tried the code described here but I get the following error: Also if i go into the library itself only one method shows up: public func __assert_rtn(_: UnsafePointer<CChar>!, _: UnsafePointer<CChar>!, _: Int32, _: UnsafePointer<CChar>!) -> Never Tested on Xcode 13.2 on a project with minimum deployment of iOS 15.0 Edit Tested it again by changing the build target to be a real device and it works! Questions: Can this library be used to unarchive .zip files? How can AppleArchive be used on a simulator device?
Replies
3
Boosts
0
Views
1.8k
Activity
Dec ’21
System API for generating ZIP-compatible archive?
The Archive Framework implements compression algorithms and supports for example the LZMA compression format. Unfortunately I was not able to find a way to generate a ZIP-kompatible archive using the Archive Framework though iOS / iPadOS seems to be able to do that, because the Files app and the Shortcuts app support this kind of compression. Is there a way on iOS/iPadOS to generate an LZMA compressed archive with ZIP container using only apple provided APIs or other system services? PS: I don't need full support for all possible ZIP features. I only need to create a simple archive containing some files which can be opened using any zip decompression program. https://developer.apple.com/documentation/accelerate/compressing_file_system_directories
Replies
5
Boosts
1
Views
5.3k
Activity
Aug ’21