LibArchive (and bz2lib) as static libraries for iOS.
iOS-libarchive
Why not using libarchive?
With libarchive:
Untar on iOS, the pragmatic way
iOS-libarchive
Why not using libarchive?
With libarchive:
- We add code dependencies to our project. These dependencies need to be updated.
- More lines of code means more bugs. According to Steve McConnell’s “Code Complete”, there are on average between 15 and 50 bugs per KLOC (Kilo line of code), so if I take a calculator and make rocket science estimation, there are 5000 bugs in libarchive.
- If Apple changes an API and break libarchive compatibility, your code will not stay reliable.
- Is there another way? What if I must push my app in the app store but don’t want to link this 4.7MB of hardly-maintainable code? Let’s code my own light and pragmatic untar implementation.
Untar on iOS, the pragmatic way
Comments
Post a Comment