tsubaki / UnityZip

Other
167 stars 51 forks source link

_OBJC_CLASS_$_ZipArchive #20

Open elizavetaanisimova opened 4 years ago

elizavetaanisimova commented 4 years ago

Undefined symbols for architecture arm64: "_OBJCCLASS$_ZipArchive", referenced from: objc-class-ref in UnityZipFile.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

It says the same for the other architectures as well. Not able to build for iOS.

elizavetaanisimova commented 4 years ago

MacOS Catalina XCode Version 11.3.1 (11C505)

anandp803 commented 3 years ago

I think you need to add zipArchieve.mm file into compile sources in Xcode build phases after that you need to add -fno-objc-arc for this.

akrimahuzaifa commented 1 year ago

To-do's for UniZip for Unity & XCode:

Alterations for UniZip for iOS successful build:

-line 270[dc release] -line 271[gregorian release] -line 327[comp release] -line 328[gregorian release] -line 40[super delloc]

(2) Open "UnityZipFile.mm" file and REMOVE:

-line 32[zip release] -line 35[list release] -line 59[zip release]

-Before Build in XCode select "unity framework" from "unity iPhone" and go to "build settings>other>flags" add "-lz" symbol.

contribution by: https://github.com/Ad-mob-dev