UnityZip icon indicating copy to clipboard operation
UnityZip copied to clipboard

ARC error in XCode

Open robindicapua opened this issue 10 years ago • 2 comments

I'm using Unity 5.0.3 and I get this error in Xcode after uilding the app:

screen shot 2015-08-27 at 14 12 16

I found out that disabling ARC form the files ZipArchive and UnityZipFile by using the flag -fno-objc-arc solves the problem. That said, is it possible to not have the build error while keeping ARC enabled?

Thanks

robindicapua avatar Aug 27 '15 12:08 robindicapua

Where do i add this flag @Nubeh ?

EDIT: nvm i found it Xcode->Build Settings->Other C/Other C++ flags

Acimaz avatar Jun 18 '18 11:06 Acimaz

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.

Ad-mob-dev avatar Oct 13 '22 09:10 Ad-mob-dev