I am trying to integrate Google Sign In into my iOS Apps but while doing this i am getting below error.
Is there any solution to remove below errors?
Undefined symbols for architecture armv7: "_inflate", referenced from: l002 in GoogleSignIn(GTMNSData+zlib.o) "_deflate", referenced from: l001 in GoogleSignIn(GTMNSData+zlib.o) "_inflateEnd", referenced from: l002 in GoogleSignIn(GTMNSData+zlib.o) "deflateInit2", referenced from: l001 in GoogleSignIn(GTMNSData+zlib.o) "inflateInit2", referenced from: l002 in GoogleSignIn(GTMNSData+zlib.o) "_deflateEnd", referenced from: l001 in GoogleSignIn(GTMNSData+zlib.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is very common error and doesn't have any specific solution. Although may be following workaround may help you:
If you are not using
cocoa-pods
use them to add new repos.Check that you haven't imported
.m
instead of.h
.Check you haven't add two frameworks accidenlty.
Remove
-ObjC
Linker flag from `-otherLinkerFlags'Sometimes using older version of sdk may solve the problem.
Navigate to
YourProject--Build Phases
and check you haven't added one file more than once. And also anyLink Binary and Libraries
are not missing from there.
Here is the Image Showing OtherLinkerFlags
For More Detail Refer to this Link
Good Luck... :)
You can fallow below steps
Go to Build settings / Linking / Other Linker Flags and add the "-ObjC" without the quotes. This assume you are using some "header
file" to map Google framework and for Swift approach.
Go to Build Phases >Link Binary with Librairies > + > Add other, the go to de /usr/lib directory and select "libz.dylib"
Compile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With