尝试安装Google登录时出现链接错误

编程入门 行业动态 更新时间:2024-10-24 19:16:51
本文介绍了尝试安装Google登录时出现链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试将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登录时出现链接错误

    本文发布于:2023-10-04 13:15:29,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1467168.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:错误   链接   Google

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!