How do you include SSZipArchive for IOS 5?

天涯浪子 提交于 2019-12-03 12:00:58

After a lot of headaches, I figured out what was the problem. It turned out to be _Prefix.pch. I totally looked over it, but it turns out that I had the following line there:

#import "someclass.h"

This class was being loaded in with the .c-files of the minizip library, resulting in Objective-C headers being included in .c-files, which was something that XCode did not like. Wrapping these statements in an #ifdef statement fixed the problem:

#ifdef __OBJC__
   #import "someclass.h"
#endif
karan singh rajpoot

Refer to below link thats works with both iphone as well mac applications. Archive and Unarchive from app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!