Binding errors while trying to set Google signature

I am trying to integrate Google Sign In into my iOS apps, but in doing so I am getting below the error.

Is there any solution to remove below errors?

Undefined symbols for armv7 architecture: "_inflate", link from: l002 to GoogleSignIn (GTMNSData + zlib.o) "_deflate" referenced: l001 to GoogleSignIn (GTMNSData + zlib.o) "_inflateEnd" referenced: l002 in GoogleSignIn (GTMNSData + zlib.o) "deflateInit2" referenced by: l001 on GoogleSignIn (GTMNSData + zlib.o) "inflateInit2" referenced: l002 on GoogleSignIn (GTMNSData + zlib.o) "_deflateEnd" which is referenced: l001 in GoogleSignIn (GTMNSData + zlib.o) ld: character (s) not found for armv7 architecture clang: error: linker command failed with exit code 1 (use -v to see the call)

+4
source share
3 answers

You can fall under the steps

  • Go to build settings / linking / other Linker flags and add "-ObjC" without quotes. Suppose you use some "header"

    file "to display the Google structure and Swift approach.

  • Go to Phase Building> Linking Binary Files with Librairies +> Add Another, go to the / usr / lib directory and select "libz.dylib"

  • Compile

+3
source

This is a very common mistake and has no specific solution. Although there may be a workaround, it can help you:

  • If you are not using cocoa-pods, use them to add new repositories.

  • Make sure you do not import .minstead .h.

  • , accidenlty.

  • -ObjC Linker `-otherLinkerFlags '

  • sdk .

  • YourProject--Build Phases , . Link Binary and Libraries .

enter image description here

, OtherLinkerFlags

Other linker flags

. this

...:)

+6

-ObjC libz . libz.dylib /usr/bin. libz.tbd iOS 9.3, .

screenshot of adding the library

+1

Source: https://habr.com/ru/post/1623025/


All Articles