框架未找到FirebaseAnalytics [英] framework not found FirebaseAnalytics
问题描述
我将CocoaPod的Google Analytics添加到了我的项目中,但是我的应用崩溃了,并且出现了以下错误。
I added Google Analytics by CocoaPod into my project, but my app crashed and gave the following error.
ld: framework not found FirebaseAnalytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我该如何解决这个问题?我遵循Google的此教程将Google Analytics集成到我的项目中。
What should i do to solve this issue ? I followed this tutorial from google to integrate the Google Analytics into my project.
推荐答案
您可能正在使用cocoapods添加Firebase。确保在目标的构建设置中,调试和发布的'框架搜索路径'以 $(继承)
开始。
You are probably using cocoapods to add Firebase. Make sure that in the build settings for your target the 'Framework Search Paths' both for Debug and Release start with $(inherited)
.
您的pod依赖关系的构建设置在xcconfig文件中定义,如果您在目标的构建设置中没有 $(继承)
,则该文件中的设置将被忽略。
The build settings for your pod dependencies are defined in a xcconfig file, if you don't have $(inherited)
in your target's build settings, the settings from this file will be ignored.
这篇关于框架未找到FirebaseAnalytics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!