【问题标题】:GITkit causing linker errorsGITkit 导致链接器错误
【发布时间】:2015-10-12 14:40:36
【问题描述】:

我编写了一个使用 Google Identity Toolkit 登录的应用程序,它运行良好,直到我更新到最新版本的 Xcode 并开始为 iOS 9 开发。我不得不使用 Cocoapods 安装 GITkit,这似乎已经成功,但是现在在编译时,当我引用某些内置类时出现以下错误。另外,我必须将我的导入语句从 #import <GITkit/GITkit.h> 更改为 #import "GITkit.h"

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GITClient", referenced from: objc-class-ref in H2LoginViewController.o objc-class-ref in H2AppDelegate.o "_OBJC_CLASS_$_GITIDToken", referenced from: objc-class-ref in H2LoginViewController.o "_OBJC_CLASS_$_GITInterfaceManager", referenced from: objc-class-ref in H2LoginViewController.o "_kGITProviderFacebook", referenced from: -[H2AppDelegate application:didFinishLaunchingWithOptions:] in H2AppDelegate.o "_kGITProviderGoogle", referenced from: -[H2AppDelegate application:didFinishLaunchingWithOptions:] in H2AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

任何帮助将不胜感激。谢谢。

【问题讨论】:

    标签: objective-c xcode linker google-identity-toolkit


    【解决方案1】:

    您可以尝试通过CocoaPods troubleshooting page 吗?请特别注意“如果 Xcode 找不到依赖项的标头”部分。

    【讨论】:

    • 谢谢,这帮了我很大的忙,尽管我最终只是创建了一个全新的项目并更仔细地遵循 CocoaPods 安装和配置说明。
    猜你喜欢
    • 2021-01-01
    • 1970-01-01
    • 2023-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-13
    • 2012-08-24
    • 2010-12-11
    相关资源
    最近更新 更多