Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 836
Nuibb Avatar asked Jun 09 '16 05:06

Nuibb


5 Answers

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.

like image 95
Marcel Avatar answered Nov 12 '22 00:11

Marcel


I had the same error, my Framework Search Paths in Build Settings were already set to $(inherited) for both Debug and Release.

I managed to solve this with the solution here: https://stackoverflow.com/a/38246169/1092815

In other words, Podfile.lock had some bad versions in it, running this solved the my issue:

pod update
pod install
like image 24
GabLeRoux Avatar answered Nov 12 '22 00:11

GabLeRoux


I also had this issue and resolved with this:

pod deintegrate && pod install

CocoaPods doc on pod deintegrate: https://guides.cocoapods.org/terminal/commands.html#pod_deintegrate

like image 7
Edicarlos Lopes Avatar answered Nov 12 '22 00:11

Edicarlos Lopes


You need to remove linked framework from project properties.

like image 1
Smith John Avatar answered Nov 11 '22 23:11

Smith John


I had this issue and resolved it: - Go to Info.plist -> Build Settings -> Framework Search Paths - Verify/fix the paths. In my case, it was the additional Fbsdk search path that was causing issue (see attached picture) error

I changed it to: fix

like image 1
Long Le Avatar answered Nov 11 '22 23:11

Long Le