2

I previously had Firebase connected to my app with the below pods (excluding pod 'Firebase/DynamicLinks) and it was working just fine. I was using the line 'import Firebase' at the top of each view controller to import the relevant frameworks.

However, today I went to add pod 'Firebase/DynamicLinks' and when I went to run pod install, it got stuck 'analyzing dependencies'. I read through other forums on stackoverflow to fix this issue. I ended up removing cocoapods from my project and reinstalling them. I now have reinstalled the pods, but when I open Xcode I get the message 'No such module 'Firebase'. It essentially wants me to import specific Firebase modules [import FirebaseDatabase, import FirebaseAnalytics, etc.] instead of just [import Firebase]. After updating the import on all of my view controllers, there is 1 issue remaining -> 'Framework not found FirebaseUI'.

Questions

  • Is going from 'import Firebase' to 'import FirebaseDatabase, etc.' recommended or is this a step backwards?
  • How can I resolve 'Framework not found FirebaseUI'? I have the pod installed already.

Other info that may help

  • When running pod install, I get a warning notification: [!] [Xcodeproj] Generated duplicate UUIDs

  • When trying to build project, I also get: ld: warning: directory not found for option '-F/Users/[myNameHere]/Library/Developer/Xcode/DerivedData/[AppName]-dtipemvgjzrgzvephbatansalrwu/Build/Products/Debug-iphonesimulator/Firebase'

  • As well as: ld: warning: directory not found for option '-F/Users/[myNameHere]/Library/Developer/Xcode/DerivedData/[AppName]-dtipemvgjzrgzvephbatansalrwu/Build/Products/Debug-iphonesimulator/FirebaseUI'

My podfile

  • pod 'FirebaseUI'
  • pod 'FirebaseUI/Auth'
  • pod 'Firebase/Core'
  • pod 'Firebase/Database'
  • pod 'Firebase/Messaging'
  • pod 'Firebase/Analytics'
  • pod 'Firebase/Storage'
  • pod 'Firebase/Auth'
  • pod 'FirebaseUI/Google'
  • pod 'FirebaseUI/Facebook'
  • pod 'Firebase/DynamicLinks' (new)
asked Feb 18, 2020 at 2:38
2
  • 1
    Try cleaning the project using cmd + shift + k or restarting the project Commented Feb 18, 2020 at 4:59
  • You might have a corrupt Xcode module cache. Try rm -rf ~/Library/Developer/Xcode/DerivedData Commented Feb 18, 2020 at 15:04

1 Answer 1

2

After rereading the Firebase documentation, it turns out "You no longer need to add the iOS pod Firebase/Core. This SDK included the Firebase SDK for Google Analytics."

I ended up removing Core and the UI Cocoapods (using my own UI buttons instead) and the project now builds. I assume there may be an error installing the UI Framework with the FirebaseUI Cocoapod - idk.

Pods removed: - pod 'Firebase/Core' - pod 'FirebaseUI' - pod 'FirebaseUI/Auth' - pod 'FirebaseUI/Google' - pod 'FirebaseUI/Facebook'

answered Feb 18, 2020 at 15:08
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.