gustavogenovese / curl-android-ios

Static libcurl to be used in Android and iOS apps. Build scripts included. No Android source required
641 stars 255 forks source link

iOS Undefined symbols for architecture i386: "_inflate", referenced from: #45

Closed nathan-fiscaletti closed 7 years ago

nathan-fiscaletti commented 7 years ago

When linking the library against iOS, i get the following errors at build time.

brokenlibcurl

nathan-fiscaletti commented 7 years ago

When running lipo on the library it definitely shows the proper archs.

Libraries master ✗ 22h6m △ ✓ ◒ ➜ lipo -info libcurl.a
Architectures in the fat file: libcurl.a are: armv7 armv7s i386 x86_64 arm64

And the header files from the repository are being included.

nathan-fiscaletti commented 7 years ago

Turns out i needed to also link the project against zlib. I did this by adding -lz to the linker flags.