tidev / ti.compression

Compress your files to reduce storage
Other
29 stars 20 forks source link

Not Working with Ti SDK 8.0.0 #21

Open SquirrelMobile opened 5 years ago

SquirrelMobile commented 5 years ago

I've try to use this module with SDK 8.0.0 and there is a problem during the compilation :

[TRACE] Undefined symbols for architecture x86_64:
[TRACE]   "_deflate", referenced from:
[TRACE]       _zipWriteInFileInZip in libti.compression.a(zip.o)
[TRACE]       _zipCloseFileInZipRaw in libti.compression.a(zip.o)
[TRACE]   "_deflateInit2_", referenced from:
[TRACE]       _zipOpenNewFileInZip3 in libti.compression.a(zip.o)
[TRACE]   "_inflate", referenced from:
[TRACE]       _unzReadCurrentFile in libti.compression.a(unzip.o)
[TRACE]   "_get_crc_table", referenced from:
[TRACE]       _unzOpenCurrentFile3 in libti.compression.a(unzip.o)
[TRACE]       _zipOpenNewFileInZip3 in libti.compression.a(zip.o)
[TRACE]   "_deflateEnd", referenced from:
[TRACE]       _zipCloseFileInZipRaw in libti.compression.a(zip.o)
[TRACE]   "_inflateInit2_", referenced from:
[TRACE]       _unzOpenCurrentFile3 in libti.compression.a(unzip.o)
[TRACE]   "_inflateEnd", referenced from:
[TRACE]       _unzCloseCurrentFile in libti.compression.a(unzip.o)
[TRACE]   "_crc32", referenced from:
[TRACE]       -[TiCompressionZipArchive addFileToZip:newname:] in libti.compression.a(ZipArchive.o)
[TRACE]       _unzReadCurrentFile in libti.compression.a(unzip.o)
[TRACE]       _zipWriteInFileInZip in libti.compression.a(zip.o)
[TRACE] ld: symbol(s) not found for architecture x86_64
[TRACE] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR]         Ld /Users/buje/Documents/Appcelerator/o-m/build/iphone/build/Products/Debug-iphonesimulator/****** normal x86_64
[ERROR] (1 failure)
janvennemann commented 5 years ago

@SquirrelMobile please check the new 2.0.0 release for iOS which should work with the latest SDKs.

SquirrelMobile commented 5 years ago

@janvennemann Already tested with the @hansemannn 2.0.0 i've the same problem

janvennemann commented 5 years ago

Ok, I just tested with Hans' zip too and I think something is wrong with the file Hans posted. Please check the official release zip from here: https://github.com/appcelerator-modules/ti.compression/releases/tag/ios-2.0.0. This one is working fine.

rlustemberg commented 5 years ago

I have a similar issue with ti.crashlytics. I'll file an issue there. Could you explain what the issue here was? Thanks!

janvennemann commented 5 years ago

@rlustemberg i didn't change anything here, just did a rebuild. The old build was probably done on an outdated code base by accident. See my comment in https://github.com/hansemannn/titanium-crashlytics/issues/12 what most likely is causing the error in ti.crashlytics.