Ios 架构armv7的未定义符号:“_启用IDFACollection“;在xcode中
我是stackoverflow的新手,我在互联网上搜索了这个问题,但没有找到任何类似我遇到的问题 我目前正在xcode中构建一个IOS应用程序 我把这个项目和谷歌分析插件结合在一起 尝试在xcode中构建时,我遇到以下链接错误:Ios 架构armv7的未定义符号:“_启用IDFACollection“;在xcode中,ios,xcode,google-analytics,Ios,Xcode,Google Analytics,我是stackoverflow的新手,我在互联网上搜索了这个问题,但没有找到任何类似我遇到的问题 我目前正在xcode中构建一个IOS应用程序 我把这个项目和谷歌分析插件结合在一起 尝试在xcode中构建时,我遇到以下链接错误: Undefined symbols for architecture armv7: "_enableIDFACollection", referenced from: _GAIHandler_enableIDFACollection_m7_14 in B
Undefined symbols for architecture armv7:
"_enableIDFACollection", referenced from:
_GAIHandler_enableIDFACollection_m7_14 in Bulk_Assembly-CSharp-firstpass_0.o
_GAIHandler__enableIDFACollection_m7_15 in Bulk_Assembly-CSharp-firstpass_0.o
_GoogleAnalyticsiOSV3_InitializeTracker_m7_94 in Bulk_Assembly-CSharp-firstpass_0.o
_GAIHandler_enableIDFACollection_m7_14 in Bulk_Assembly-CSharp-firstpass_0.o
_GAIHandler__enableIDFACollection_m7_15 in Bulk_Assembly-CSharp-firstpass_0.o
_GoogleAnalyticsiOSV3_InitializeTracker_m7_94 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _GAIHandler__enableIDFACollection_m7_15, _GAIHandler_enableIDFACollection_m7_14 )
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我以前在尝试链接google analytics时出错,我在其他stackoverflow线程的帮助下修复了这个错误
我以前犯过的错误:
ld: library not found for -libGoogleAnalyticsServices
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这个问题很容易通过在构建阶段中重新添加lib文件来解决——使用库链接二进制文件
新增框架:
这不起作用。您似乎没有包括与库相关的文件
googleidfasuport
。也许这个链接可以帮助你:在多个xCode错误之后,我把所有的googleanalytics库放在我的Unity项目中并重新构建了它
这解决了我的问题
希望这能帮助其他有同样问题的人。感谢您修复了错误,但现在我遇到了另一个错误-ld:library not found for-lGoogleAnalyticsServices clang:error:linker命令失败,退出代码为1(使用-v查看调用),这很奇怪,因为我已经添加了libgogleanalyticsservices.a