Zip/UnZip Class for iOS?

Hey all,

I need to be able to unzip a file in iOS. I haven’t found such a thing in iOSLib or iOSKit.

Would someone be able to point me in the correct direction?

Jon

I‘m surprised to see that I programmed a StreamCoder class for macOS and obviously thought about making it xplatform for iOS, but I don’t think I ever tested it there. Would you like to give it a try?

https://www.jeremieleroy.com/upload/ZipArchive_iOS_v001.zip

Note: this code works in the simulator but was never tested in a production app.

Sure

[quote=478443:@Jeremie Leroy]https://www.jeremieleroy.com/upload/ZipArchive_iOS_v001.zip

Note: this code works in the simulator but was never tested in a production app.[/quote]
That looks very interesting Jeremie, thank you. Since the ZipArchive Framework on (Github) looks like a cross platform library for iOS, macOS and tvOS, I added your ZipArchive Class to a Desktop Project. I only get an Compiler Warning for on line:

Declare Function retain Lib "UIKit" Selector "retain" (obj_id As Ptr) As Ptr

Which macOS class do I have to replace UIKit with to make the project work under macOS?

It would be interesting to find out if there isn’t a real cross-platform framework on Github for iOS, Android, macOS, Linux and Windows, because if it really works as easy as you show in your source code for the ZipArchive class, it would be a much slimmer solution than e.g. TTsZipArchive (this doesn’t work on iOS and Android).

Should be Foundation

Jeremie,

OK. So when building the app, it builds, but the app won’t load onto the iOS device when I have the framework copied into the Frameworks folder. Seems like a code signing issue. I see there’s a code signing folder in the framework. Do I need to replace that?

What needs to be done.