I'm working on an existing project that uses Sparrow. Sparrow is imported to my projects via CocoaPods.
Recently, I started using Swift. In order to import Swift pods via CocoaPods 0.37, you need to add a flag to the Podfile: use_frameworks!
As soon I added this flag, I started getting the following linkage errors:
Undefined symbols for architecture x86_64:
"_deflate", referenced from:
-[NSData(SXNSDataExtensions) gzipDeflate] in SXNSDataExtensions.o
"_deflateEnd", referenced from:
-[NSData(SXNSDataExtensions) gzipDeflate] in SXNSDataExtensions.o
"_deflateInit2_", referenced from:
-[NSData(SXNSDataExtensions) gzipDeflate] in SXNSDataExtensions.o
"_inflate", referenced from:
-[NSData(SXNSDataExtensions) gzipInflate] in SXNSDataExtensions.o
"_inflateEnd", referenced from:
-[NSData(SXNSDataExtensions) gzipInflate] in SXNSDataExtensions.o
"_inflateInit2_", referenced from:
-[NSData(SXNSDataExtensions) gzipInflate] in SXNSDataExtensions.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Which means, to my understanding, that the built-in zlib library was not linked to Sparrow (or something along those lines...).
My questions:
Did anyone encounter this problem?
Did anyone manage to successfully import Sparrow via Cocoapods with the use_frameworks flag on?
Are there plans for a Sparrow version that complies with the latest changes in Cocoapods?
Thank you!