tsubaki / UnityZip

Other
167 stars 51 forks source link

Use UnityZip with xcodebuild command line #7

Open Err0r-500 opened 8 years ago

Err0r-500 commented 8 years ago

Hello, I have to build my project using the xcodebuild command line, and I have some trouble with linking the UnityZip files. Do you have an idea how I can achieve this? Thanks by advance, M

Error message :

Undefined symbols for architecture arm64 Symbol: _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)

Ad-mob-dev commented 1 year ago

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 : "Assets/Plugins/IOS" 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.