由于 ld: 找不到 -lGoogleAnalyticsServices 的库,Xcode 7 构建失败 [英] Xcode 7 build failed due to ld: library not found for -lGoogleAnalyticsServices

查看:46
本文介绍了由于 ld: 找不到 -lGoogleAnalyticsServices 的库,Xcode 7 构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几个小时里,我一直在努力构建我的 xcode 项目.我不断收到以下错误:

I have been struggling to get my xcode project to build for the last couple hours. I keep getting the following error:

ld:找不到 -lGoogleAnalyticsServices 的库clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

ld: library not found for -lGoogleAnalyticsServices clang: error: linker command failed with exit code 1 (use -v to see invocation)

我几乎什么都试过了.我看到 Google Developers 网站说要使用 pod 'Google/Analytics',即使在尝试了几乎所有我可以在 StackOverflow 和 Google 上找到的有关错误的所有内容后,我也绝对没有运气.

I have tried almost everything. I saw that the Google Developers website said to use pod 'Google/Analytics', even after trying almost everything I could find on StackOverflow and Google regarding the error, I have had absolutely no luck.

我昨天升级到 XCode 7,昨天似乎一切正常,但今天突然我开始收到此错误.

I upgraded to XCode 7 yesterday, everything seemed to work yesterday but today suddenly I started getting this error.

如果有人对这个错误有什么我可以做的,请帮忙!

If someone has anything I can do about this error, please help!

为我指出正确的方向来修复它也很棒!

Pointing me in the right direction to get it fixed would be awesome too!

预先感谢您的帮助.

推荐答案

链接器标志已重命名为:

The linker flag has been renamed to:

-lGoogleAnalytics

但是 Cocoapods 设置还没有更新.重命名其他链接器标志"中的条目,您的问题将得到解决.

but the Cocoapods settings have not been updated yet. Rename the entry in "Other Linker Flags" and your problem will be solved.

此外,该库(截至我编写的版本是 3.13.0)尚不支持 Bitcode,因此请在 Build Options > Enable Bitcode > 选择No"中关闭 Bitcode.清洁&之后重建.

Also, the library (as of the moment I write is version 3.13.0) does not support Bitcode yet, thus please turn off Bitcode in Build Options > Enable Bitcode > Select "No". Clean & Rebuild afterwards.

这篇关于由于 ld: 找不到 -lGoogleAnalyticsServices 的库,Xcode 7 构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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