Google Consent SDK - 链接器错误

Google Consent SDK - Linker Error

我目前正在尝试集成 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)

我已经在 Whosebug 上搜索了几个小时,我尝试了各种方法,例如 , Updating Linker Flags with $(inherited),以及其他一些方法,例如添加建议的框架和 libz在questions/answers这里很受欢迎,但仍然没有运气。

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

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

转到构建阶段 -> Link Binary With Libraries 然后添加 PersonalizedAdConsent 框架