【问题标题】:Google Consent SDK - Linker ErrorGoogle Consent SDK - 链接器错误
【发布时间】:2018-06-05 11:04:44
【问题描述】:

我目前正在尝试整合Google Consent SDK,但只要我打电话

[PACConsentInformation.sharedInstance requestConsentInfoUpdateForPublisherIdentifiers:@[ @"pub-0123456789012345"]

我在 Xcode 控制台中收到以下错误:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PACConsentInformation", referenced from:
  objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已经搜索 Stackoverflow 几个小时了,我尝试了各种东西,例如 Enabling BitcodeUpdating Linker Flags with $(inherited),以及添加建议框架和在流行中找到的其他一些东西 libz问题/答案在这里,但仍然没有运气。

我已经在 Xcode 8.3.2、Xcode 9.0 和 Xcode 9.2 中尝试我的项目,所有这些都显示此错误。

我有什么遗漏吗? 我现在完全被想法困住了。 谢谢你的帮助。

【问题讨论】:

    标签: ios xcode admob linker-errors


    【解决方案1】:

    转到构建阶段 -> 将二进制文件与库链接,然后添加 PersonalizedAdConsent 框架

    【讨论】:

      猜你喜欢
      • 2016-03-01
      • 2014-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-19
      • 2015-05-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多