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?
Post
Replies
Boosts
Views
Activity
We're using the function defined bellow to get the version of the app.
extension Bundle {
public static var appVersion: String? {
main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String
}
}
Since the release of Xcode 13, our test fails because CFBundleShortVersionString returns current Xcode version instead of null.
Before it was returning null and we were assigning it default value during unit tests.
Is this intended behaviour or an issue which we can expect to be fixed?