Search code examples
iosobjective-cgoogle-analyticsfirebase-analytics

framework not found FirebaseAnalytics


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.


Solution

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