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?