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

Error in the linker.

enter image description here

I added the minizip and libz.tbd folder (Linked Frameworks and Libraries → libz.tdb)

I did not understand why there are errors in the zip extraction code.

+8
ios objective-c xcode unzip linker-errors
source share
2 answers

I fixed the problem with the following changes: Target project -> Basic Apple LLVM 8.1 C ++ language

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

The reason for this is the project => automatic reference counting: change to No.. You need to skip these dealloc, release, autorelease iOS sdk 5.0. or less.

+1
source share

I have not used this library before, but I think because this library is written in C ++, and you can use it with Objective-C. I fixed a similar problem when the built-in Objective-C source in the project generated by Unity set the OTHER_LDFLAGS assembly parameters to -ObjC, -WI, -undefined, -dynamic_lookup flags (row Target) and OTHER_LDFLAGS to set the -ObjC parameters (line project ) Try this and tell me the result.

0
source share

All Articles