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.
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