hansemannn / titanium-crashlytics

Use the native Crashlytics SDK in Titanium (iOS / Android).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOS version does not build with sdk 8.0.0.GA

rlustemberg opened this issue · comments

App build fails dumping the following to the build_iphone.log:

[TRACE]    "_gzclose", referenced from:
[TRACE]        -[CLSPackageReportOperation compressData:toPath:] in Crashlytics(CLSPackageReportOperation.o)
[TRACE]        -[ANSCompressLogOperation main] in Crashlytics(ANSCompressLogOperation.o)
[TRACE]    "_gzerror", referenced from:
[TRACE]        ___56-[CLSPackageReportOperation writeBytes:length:toGZFile:]_block_invoke in Crashlytics(CLSPackageReportOperation.o)
[TRACE]    "_inflateEnd", referenced from:
[TRACE]        pushwoosh::unzCloseCurrentFile(void*) in libcom.pushwoosh.module.a(libPushwoosh.a-x86_64-master.o)
[TRACE]    "_gzopen", referenced from:
[TRACE]        -[CLSPackageReportOperation compressData:toPath:] in Crashlytics(CLSPackageReportOperation.o)
[TRACE]        -[ANSCompressLogOperation main] in Crashlytics(ANSCompressLogOperation.o)
[TRACE]    "_gzwrite", referenced from:
[TRACE]        ___56-[CLSPackageReportOperation writeBytes:length:toGZFile:]_block_invoke in Crashlytics(CLSPackageReportOperation.o)
[TRACE]        -[ANSCompressLogOperation main] in Crashlytics(ANSCompressLogOperation.o)
[TRACE]  ld: symbol(s) not found for architecture x86_64

@hansemannn looks like -lz linker flag is missing in module.xcconfig

Yep, thats it. Never occurred to me because of our > 30 modules that most likely link it somewhere else already. @rlustemberg Please make a pull if possible!

Will do asap

Just made the PR

@hansemannn looks like -lz linker flag is missing in module.xcconfig

This works like charm. Thanks for sharing.