Shane O'Seasnain
Shane O'Seasnain

Reputation: 3674

FirebaseAnalytics framework not found

I'm having a problem with FirebaseAnalytics since running a pod update. I get the error

ld: framework not found FirebaseAnalytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)

and reviewed the answers to this error from other people.
In the case of my app, 'FrameworkSearchPaths' (default and release) looks like this:

$(inherited) 
"$PODS_CONFIGURATION_BUILD_DIR/GTMSessionFetcher" 
"$PODS_CONFIGURATION_BUILD_DIR/GoogleToolboxForMac" 
"${PODS_ROOT}/FirebaseAnalytics/Frameworks/frameworks" 
"${PODS_ROOT}/FirebaseAuth/Frameworks/frameworks" 
"${PODS_ROOT}/FirebaseCore/Frameworks/frameworks" 
"${PODS_ROOT}/FirebaseDatabase/Frameworks" 
"${PODS_ROOT}/FirebaseInstanceID/Frameworks/frameworks" 
"${PODS_ROOT}/FirebaseStorage/Frameworks/frameworks" 
"${PODS_ROOT}/GoogleInterchangeUtilities/Frameworks/frameworks" 
"${PODS_ROOT}/GoogleSymbolUtilities/Frameworks/frameworks"

The pod folder looks like this...

enter image description here

My podfile looks like this:

platform :ios, '10.0'
use_frameworks!

pod 'Firebase/Core'
pod 'Firebase/Storage'
pod 'Firebase/Database'
pod 'Firebase/Auth'

target 'MyApp' do
end

target 'MyAppTests' do
end

target 'MyAppUITests' do
end

Does anyone have a sequential approach to debugging this error? I didn't have the problem before the pod update. I've tried a mac restart, reinstalling cocoapods, and re-running both pod update and pod install. I'm working with the latest xCode version.

*********** Update ***************

I've tried some more things:

None of these fix the issue I'm having

More ideas on how to debug the problem are welcome

Upvotes: 2

Views: 3700

Answers (1)

parth
parth

Reputation: 873

Go to OtherLinkerFlags in build settings of target & remove 'FirebaseAnalytics" & '-framework' from there. This works for me.

Upvotes: 2

Related Questions