我正在尝试将Google Sign In集成到我的iOS应用中,但是这样做却出现了错误.
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?
体系结构armv7的未定义符号:"_ inflate",已引用 从: GoogleSignIn(GTMNSData + zlib.o)"_deflate"中的l002,引用自: GoogleSignIn(GTMNSData + zlib.o)"_inflateEnd"中的l001,引用自: GoogleSignIn(GTMNSData + zlib.o)" deflateInit2 "中的l002,引用自: GoogleSignIn(GTMNSData + zlib.o)" inflateInit2 "中的l001,引用自: GoogleSignIn(GTMNSData + zlib.o)中的l002"_deflateEnd",引用自: GoogleSignIn(GTMNSData + zlib.o)中的l001 ld:找不到架构armv7 c的符号:错误:链接器命令失败,退出 代码1(使用-v查看调用)
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)
推荐答案
您可以按照以下步骤进行操作
You can fallow below steps
转到构建设置"/链接"/其他链接器标志",然后添加"-ObjC".没有引号.假设您使用的是标头"
Go to Build settings / Linking / Other Linker Flags and add the "-ObjC" without the quotes. This assume you are using some "header
文件"映射Google框架并采用Swift方法.
file" to map Google framework and for Swift approach.
转到构建阶段>将链接与库链接到二进制文件> +>添加其他文件,转到/usr/lib目录,然后选择"libz.dylib"
Go to Build Phases >Link Binary with Librairies > + > Add other, the go to de /usr/lib directory and select "libz.dylib"
编译
更多推荐
尝试安装Google登录时出现链接错误
发布评论