Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods - framework not found FirebaseCoreDiagnostics

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?

like image 928
Christopher Avatar asked Feb 16 '26 00:02

Christopher


2 Answers

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.

like image 87
Antonin Noel Avatar answered Feb 18 '26 15:02

Antonin Noel


Something about the Xcode project is corrupt. Try the following:

  • pod deintegrate
  • Examine the resulting xcproject source and remove any FirebaseCoreDiagnostic references.
  • Rerun pod install
like image 20
Paul Beusterien Avatar answered Feb 18 '26 14:02

Paul Beusterien



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!