I recently updated to the most recent version of firebase so that I could integrate apple sign in for my ios app (obj-c) and I can't for the life of me work out why I'm getting this error:
ld: framework not found FirebaseCoreDiagnostics clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here's my podfile:
platform :ios, '13.7'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/AdMob'
pod 'Firebase/Messaging'
pod 'Firebase/Analytics'
pod 'Google-Mobile-Ads-SDK'
pod 'SDWebImage', '~> 5.0'
pod 'FBSDKCoreKit', '~> 5.2'
pod 'FBSDKLoginKit', '~> 5.2'
pod 'FBSDKPlacesKit', '~> 5.2'
pod 'FBSDKShareKit', '~> 5.2'
pod 'FBSDKMarketingKit'
target 'WriteAnythingPrototype' do
end
I've checked my Pods and can see that FirebaseCoreAnalytics is there. Also if I try and manually add the framework into the frameworks folder, I get the error that the framework is duplicated.
I've also tried deleting my derived data and deleting my pod folder and then reinstalling the pods.
I'm at my wits end and can't seem to find this problem online, can anyone please explain why this is happening?
I had to remove the framework in "Other linked flags" in target's build settings : look for OTHER_LDFLAGS in build settings search bar and remove FirebaseCoreDiagnostics from the list.
Something about the Xcode project is corrupt. Try the following:
pod deintegratepod installIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With