【发布时间】: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 Bitcode、Updating Linker Flags with $(inherited),以及添加建议框架和在流行中找到的其他一些东西 libz问题/答案在这里,但仍然没有运气。
我已经在 Xcode 8.3.2、Xcode 9.0 和 Xcode 9.2 中尝试我的项目,所有这些都显示此错误。
我有什么遗漏吗? 我现在完全被想法困住了。 谢谢你的帮助。
【问题讨论】:
标签: ios xcode admob linker-errors