苹果Mach-O链接器错误? 铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用)?

我正在谷歌分析(IOS,目标C),当我将这个文件“libGoogleAnalyticsServices.a”添加到我的项目我得到这个错误

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

我成功添加了以下文件。

 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”这个文件我得到错误。

这个问题有不同的解决scheme,其中之一是将启用位码设置为 。 (我不知道为什么默认是肯定的在这里输入图像说明 这个问题是一个像问题一样的鬼。 清除caching,重新启动Xcode,模拟器和MAC,确保框架正确链接,或者有时候什么都不做就可以解决这个问题。