Linker Command failed with exit code 1 (use -v to see invocation

拥有回忆 提交于 2019-11-27 08:39:17

问题


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

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


回答1:


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 .



来源:https://stackoverflow.com/questions/44601404/linker-command-failed-with-exit-code-1-use-v-to-see-invocation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!