framework not found FirebaseAnalytics

Nuibb picture Nuibb · Jun 9, 2016 · Viewed 20.2k times · Source

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)

What should i do to solve this issue ? I followed this tutorial from google to integrate the Google Analytics into my project.

Answer

Marcel picture Marcel · Jun 12, 2016

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

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.