title: ld: framework not found FirebaseAnalytics after upgrading from 4.x.x to 5.x.x firebase through cocoapods
body: <p>Xcode starts encountering this error</p>
  
  <blockquote>
    <p>ld: framework not found Firebase-XXXXXX</p>
  </blockquote>
  
  <p>where XXXXXX would be any framework listed in the <code>podfile</code>, here is the specific part of that podfile</p>
  
  <pre><code>pod 'Firebase/Database'
  pod 'Firebase/Auth'
  pod 'FirebaseUI/Database'
  pod 'Firebase/Storage'
  pod 'Firebase/Messaging'
  </code></pre>
  
  <p>after I update the existing project's firebase frameworks (which were in <code>4.x.x version</code> at the time of starting this project) to the newer <code>5.x.x version</code> of firebase (for using ML-Kit) using <code>pod install</code> in the project directory, it fails to compile it.</p>
  
  <p><strong>Steps taken so far after going through the web,</strong></p>
  
  <p>The following is done with a backed copy of running 4.x.x version of project,</p>
  
  <p>a) Tried all answers from this green ticked <a href="https://stackoverflow.com/questions/37717889/framework-not-found-firebaseanalytics">question</a></p>
  
  <p>b) Cleared Xcode's Derived data for this project, cocoapods cache uninstalled/ reinstalling it entirely. Commented out firebase part in podfile and then pod install it twice (one for removing the firebase and second for installing it again)</p>
  
  <p>c) Manually copying the error generating firebase dependancies to the project's folder (bad idea, 52 bugs 300+ warnings)</p>
  
  <p>Help will be highly appreciated.</p>