Apple Mach-O链接器错误?铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用)? [英] Apple Mach-O Linker Error? clang: error: linker command failed with exit code 1 (use -v to see invocation)?

查看:249
本文介绍了Apple Mach-O链接器错误?铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究谷歌分析(iOs,Objective c),当我将这个文件libGoogleAnalyticsServices.a添加到我的项目中时,我得到了这个错误

I am working on google analytics (iOs, Objective c), when i add this file "libGoogleAnalyticsServices.a" to my project I got this error

"Apple Mach-O Linker Error"  "clang: error: linker command failed with exit code 1 (use -v to see invocation)". 

我成功添加了以下文件。

I added below files successfully.

GAI.h
GAIDictionaryBuilder.h
GAIEcommerceProduct.h
GAIEcommerceProductAction.h
GAIEcommercePromotion.h
GAIFields.h
GAILogger.h
GAITrackedViewController.h
GAITracker.h

CoreData.framework
SystemConfiguration.framework
libz.dylib
libsqlite3.dylib

当我添加libGoogleAnalyticsServices.a这个文件时,我收到错误信息。

When I add "libGoogleAnalyticsServices.a" this file i am getting error.

推荐答案

这个问题有不同的解决方案,其中一个是将启用位码设置为。 (我不知道默认情况下为什么)这个问题是一个像问题的幽灵。清除缓存,重新启动Xcode,模拟器和MAC,确保Frameworks正确链接,或者有时候什么也不做可以解决这个问题。

This problem has different solutions , one of them is to set Enable Bitcode to No . ( I don't know why by default it is Yes ) This problem is a ghost like problem . Clearing Cache , Restarting Xcode , Simulator and MAC ,Ensuring proper linking of Frameworks or , Sometimes just doing nothing can solve this problem .

这篇关于Apple Mach-O链接器错误?铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆