Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use bzip2 format in iOS? Apple tell me bzBuffToBuffDecompress is private APIs

Today I submit my iOS App to app store, but soon I got a mail from apple, it said that,

cannot be posted to the App Store because it is using private or undocumented APIs:

Private Symbol References

BZ2_bzBuffToBuffDecompress

As you know, as outlined in the iPhone Developer Program License Agreement section 3.3.1, the use of non-public APIs is not permitted. Before your application can be reviewed by the App Review Team, please resolve this issue and upload a new binary to iTunes Connect.

What should I do? I realy need bzip2 format support in my app.

like image 471
Tinyfool Avatar asked Feb 26 '11 00:02

Tinyfool


1 Answers

Since the license of bzip2 is compatible (read it, please) you can statically link against bzip2 instead of dynamically. A bit of searching lead to iOS-libarchive that will help you do that.

like image 149
DarkDust Avatar answered Oct 14 '22 20:10

DarkDust