Search code examples
iosobjective-cfirebasecocoapods

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?


Solution

  • 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