Adding minizip breaks Objective-C

后端 未结 4 586
眼角桃花
眼角桃花 2021-01-12 03:17

I\'m attempting to add ZipArchive to my project following the WikiPage. I\'ve added it to my project and attempted to build, but now NSObjRuntime.h, NSObject.h and countles

4条回答
  •  感情败类
    2021-01-12 03:47

    The issue is probably caused by Objective-C in your C files. This could be caused by imports in your PCH. You need to wrap these in a #ifdef __OBJC__

    i.e.

    #ifdef __OBJC__
    #import "SomeObjecitveCFile.h"
    #endif
    

提交回复
热议问题