Reputation: 3674
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...
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:
changing the order of Framework Search Paths, putting the call to FirebaseAnalytics at the end
running shift-command-F to find references to 'FirebaseAnalytics' to see if there are any duplicates or patterns of references that look wrong (didn't see anything)
deleting FirebaseAnalytics and running re-install
the solution proposed in this answer Apple Mach-O-Linker Error CocoaPods by deleting the contents of Other Linker Flags
None of these fix the issue I'm having
More ideas on how to debug the problem are welcome
Upvotes: 2
Views: 3700
Reputation: 873
Go to OtherLinkerFlags in build settings of target & remove 'FirebaseAnalytics" & '-framework' from there. This works for me.
Upvotes: 2