Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/116.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 架构armv7的未定义符号:“_启用IDFACollection“;在xcode中_Ios_Xcode_Google Analytics - Fatal编程技术网

Ios 架构armv7的未定义符号:“_启用IDFACollection“;在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

我是stackoverflow的新手,我在互联网上搜索了这个问题,但没有找到任何类似我遇到的问题

我目前正在xcode中构建一个IOS应用程序

我把这个项目和谷歌分析插件结合在一起

尝试在xcode中构建时,我遇到以下链接错误:

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文件来解决——使用库链接二进制文件

新增框架:

  • CoreData.Framework
  • AdSupport.Framework
  • Libsqlite3.0.tbz
  • Libz.tbz
  • libGoogleAnalyticsServices.a
  • 新增编译源代码:

  • 盖汉德勒
  • 我还检查了构建设置中的搜索路径,没有发现任何奇怪的东西,尽管我不再确定

    编辑

    我尝试添加libxml2.tbz


    这不起作用。

    您似乎没有包括与库相关的文件
    googleidfasuport
    。也许这个链接可以帮助你:

    在多个xCode错误之后,我把所有的googleanalytics库放在我的Unity项目中并重新构建了它

    这解决了我的问题


    希望这能帮助其他有同样问题的人。

    感谢您修复了错误,但现在我遇到了另一个错误-ld:library not found for-lGoogleAnalyticsServices clang:error:linker命令失败,退出代码为1(使用-v查看调用),这很奇怪,因为我已经添加了libgogleanalyticsservices.a