Giter VIP home page Giter VIP logo

unityzip's Introduction

UniZip

UniZip is zipper for unity3d.

unity zip

#supported

  • iOS.
  • Android.
  • Mac.and probably windows.

#iOS how to

  1. build project.
  2. add file "PluginsCode>iOS>ZipArchive" to xcode project.
  3. enjoy.

#example

-unzip

string zipfilePath = Application.temporaryCachePath + "/args.zip"
string exportLocation = Application.temporaryCachePath + "/dir"

ZipUtil.Unzip ( zipfilePath, exportLocation);

-zip

string exportZip = Application.temporaryCachePath + "/dir/args.zip";
string[] files = new string[]{ Application.temporaryCachePath + "/dir/args.txt"}

ZipUtil.Zip (exportZip, files);

#License

This software is released under the MIT License, see LICENSE.

unityzip's People

Contributors

tatsuhiko-unity avatar tsubaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unityzip's Issues

ARC error in XCode

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

Issues with Cloud Build

Since adding this library, whilst I can play it in Unity and even build from Unity (for Android), I seem to get errors in Cloud Build, stating:

error CS0103: The name `ZipUtil' does not exist in the current context

All the Asset files are in my project, along with the PluginsCode directory. As mentioned, it works fine running via Unity on Windows and if I build for Android myself.

Any idea whats going on?

What version of Android does it support

I tried the following code with ur unzipper.
But it doesn't work on Android 2.3
string filepath = "jar:file://" + Application.dataPath + "!/assets/" + "/TEST.zip";
pathtoExtract = filepath;
pathtoExport = Application.persistentDataPath;
try{
ZipUtil.Unzip(pathtoExtract, pathtoExport);
}
catch (Exception err)
{
text.text = err.ToString();
}

Undefined symbols for architecture arm64

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 atm.

Use UnityZip with xcodebuild command line

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: 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)

how to make it work on ios

I am new to ios and xcode.

When I build the project to xcode, it always give me error, how to add the ZipArchive to xcode project, add the whole folder? and waht about the references?

Thanks

_OBJC_CLASS_$_ZipArchive

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.

Can't build Xcode project: linker errors

When I try to build the generated project from Unity in Xcode, I get undefined symbols errors when linking. The symbols are:
_zip
_unzip
_addZipFile

I've tried adding the folder ZipArchive from PluginsCode, as instructed in README.md, at the Classes folder of my Xcode project, and also at Libraries/Plugins/iOS folder, but get the same errors.

What can I do to succeed the build?

clang: error: linker command failed with exit code 1 (use -v to see invocation)

hello

Please help me out i am getting this error always

i am using unity 2019.4.4f1 with uniZip plugin
i have upgraded my project form 2019.2.2f1
In 2019.2.2f1 it is working fine with xcode but when i build it wih 2019.4.4f1 it gives below error in xcode

"_deflate", referenced from:
_zipWriteInFileInZip in zip.o
_zipCloseFileInZipRaw in zip.o
(maybe you meant: _unity_z_deflateCopy, _unity_z_deflateBound , _unity_z_deflateTune , _unity_z_deflatePending , _unity_z_deflateSetHeader , _unity_z_deflateParams , z_deflateInit , _il2cpp_z_deflate_copyright , _il2cpp_z_deflateTune , _il2cpp_z_deflatePrime , _il2cpp_z_deflatePending , _il2cpp_z_deflateSetDictionary , _il2cpp_z_deflateReset , il2cpp_z_deflateInit , _unity_z_deflateSetDictionary , _unity_z_deflateEnd , _il2cpp_z_deflateEnd , _il2cpp_z_deflateCopy , il2cpp_z_deflateInit2 , _unity_z_deflateGetDictionary , _unity_z_deflatePrime , _unity_z_deflate , _il2cpp_z_deflateResetKeep , _il2cpp_z_deflateGetDictionary , _unity_z_deflateResetKeep , _il2cpp_z_deflate , _unity_z_deflateReset , _unity_z_deflate_copyright , _il2cpp_z_deflateParams , _il2cpp_z_deflateSetHeader , z_deflateInit2 , _il2cpp_z_deflateBound )
"_get_crc_table", referenced from:
_zipOpenNewFileInZip3 in zip.o
(maybe you meant: _unity_z_get_crc_table, _il2cpp_z_get_crc_table )
"_deflateEnd", referenced from:
_zipCloseFileInZipRaw in zip.o
(maybe you meant: _unity_z_deflateEnd, _il2cpp_z_deflateEnd )
"deflateInit2", referenced from:
_zipOpenNewFileInZip3 in zip.o
(maybe you meant: il2cpp_z_deflateInit2, z_deflateInit2 )
"_crc32", referenced from:
-[ZipArchive addFileToZip:newname:] in ZipArchive.o
_zipWriteInFileInZip in zip.o
(maybe you meant: _unity_z_crc32_combine64, _unity_z_crc32_combine , _il2cpp_z_crc32_combine , _il2cpp_z_crc32_z , _il2cpp_z_crc32 , _unity_z_crc32 , _unity_z_crc32_z , _il2cpp_z_crc32_combine64 )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Works in Editor, but "Encoding name 'IBM437' not supported" in Windows

Not sure if I've done something weong, but when I make a build and try to use the zipping, I get this:
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)

ArgumentException: Encoding name 'IBM437' not supported

Parameter name: name
at System.Text.Encoding.GetEncoding (System.String name) [0x00000] in :0

at Ionic.Zip.ZipFile..cctor () [0x00000] in :0
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Ionic.Zip.ZipFile

Not working on mac standalone build

I get this error when I try unzipping a zipped file

NotSupportedException: Encoding 437 data could not be found. Make sure you have correct international codeset assembly installed and enabled.
at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x0023f] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Text.Encoding.GetEncoding (System.String name) [0x00012] in <695d1cc93cca45069c528c15c9fdd749>:0
at Ionic.Zip.ZipFile..cctor () [0x00000] in <0b673486957f46b286a1950c59e4644b>:0
Rethrow as TypeInitializationException: The type initializer for 'Ionic.Zip.ZipFile' threw an exception.

The description mentions it works on mac, doesn't it!? Could any explain the issue? Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.