UnityZip icon indicating copy to clipboard operation
UnityZip copied to clipboard

_OBJC_CLASS_$_ZipArchive

Open elizavetaanisimova opened this issue 5 years ago • 3 comments

Undefined symbols for architecture arm64: "OBJC_CLASS$_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 avatar Jan 21 '20 15:01 elizavetaanisimova

MacOS Catalina XCode Version 11.3.1 (11C505)

elizavetaanisimova avatar Jan 21 '20 15:01 elizavetaanisimova

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.

anandp803 avatar Mar 23 '21 18:03 anandp803

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

  • add "PluginsCode>iOS>ZipArchive" files & folder to Unity project "Assets\Plugins\iOS"
  • After that copy from package UnityZip: ">Asset>Plugins" (folders, files) & add to your project VTDB: "\Assets\Plugins"

Alterations for UniZip for iOS successful build:

  • If package is newly imported after above setup: (1) Open "ZipArchive.mm" file and REMOVE:

-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

akrimahuzaifa avatar Oct 13 '22 06:10 akrimahuzaifa