未找到框架 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)
我应该怎么做才能解决这个问题?我按照 this 来自 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.确保在目标的构建设置中,调试和发布的框架搜索路径"都以 $(inherited)
开头.
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 文件中定义,如果目标的构建设置中没有 $(inherited)
,则该文件中的设置将被忽略.
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屋!