简体   繁体   中英

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

Error on linker.

在此处输入图片说明

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.

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.

I didn't use this lib before, but I think it because this lib is written with C++, and you maybe use this with Objective-C. I fixed similar issue when embedded Objective-C source to a project which is generate by Unity by setting OTHER_LDFLAGS build settings to -ObjC, -WI, -undefined, -dynamic_lookup flags (row Target) and OTHER_LDFLAGS build settings to -ObjC flag (row Project). Try this and tell me the result.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM