Search code examples
iosobjective-cxcodelinker-errorsunzip

Minizip Libz Apple Mach-O Linker (ld) Error Group


Error on linker.

enter image description here

I added minizip folder & libz.tbd (Linked Frameworks & Libraries -> libz.tdb)

I didn't get why is this getting errors on the zip extraction code.


Solution

  • I fixed issue issue with below changes : Target Project -> Basic Apple LLVM 8.1 Language c++

    //:configuration = Debug
    CLANG_ENABLE_OBJC_ARC = NO
    
    //:configuration = Release
    CLANG_ENABLE_OBJC_ARC = NO
    
    //:completeSettings = some
    CLANG_ENABLE_OBJC_ARC
    

    Reason behind this is project => automatic reference counting : change to No. You need to skips those dealloc, release,autorelease iOS sdk 5.0. or less.