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

2

7

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.

Speroni answered 5/5, 2017 at 14:15 Comment(6)
Please share the GitHub link of "MiniZip" library.Machuca
Do you have libz.dylib in your dependencies?Georginageorgine
@JohnTracid ibz.dylib is now found under libz.tbd Reference : forums.developer.apple.com/message/9176#9176Speroni
@RamkrishnaSharma, I didn't remember this particular link but mostly I downloaded this from original source code. if you have any other reference, please do share with this.Speroni
@Speroni please fix your question because you have lib.tbd not libz.tbd.Georginageorgine
@JohnTracid it's due to auto correction !! I changed this.Speroni
S
1

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.

Speroni answered 12/5, 2017 at 5:3 Comment(0)
T
0

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.

Tortfeasor answered 12/5, 2017 at 4:41 Comment(1)
@NovusMobile: res.cloudinary.com/dwhd61zp4/image/upload/v1494569668/…Tortfeasor

© 2022 - 2024 — McMap. All rights reserved.