title: Module 'firebase_analytics' not found when archiving ios(Flutter app)
body: <p>I have been trying to archive my ios app for days but i keep getting this error. When i run in debug mode though, it builds successfully.
  I've done these repeatedly but still no hope:</p>
  <ul>
  <li>Adding <code>GoogleService-info.plist</code> via xcode</li>
  <li><code>Flutter clean</code></li>
  <li>Deleted <code>podfile, podfile.lock, symlinks</code></li>
  <li><code>Flutter pub get</code></li>
  <li><code>pod install &amp;&amp;pod repo update</code></li>
  <li>Launch <code>Runner.xcworkspace</code> in xcode</li>
  </ul>
  <p><strong>My podfile</strong></p>
  <pre><code>
  platform :ios, '11.0'
  
  # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
  ENV['COCOAPODS_DISABLE_STATS'] = 'true'
  
  project 'Runner', {
    'Debug' =&gt; :debug,
    'Profile' =&gt; :release,
    'Release' =&gt; :release,
  }
  
  def flutter_root
    generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
    unless File.exist?(generated_xcode_build_settings_path)
      raise &quot;#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first&quot;
    end
  
    File.foreach(generated_xcode_build_settings_path) do |line|
      matches = line.match(/FLUTTER_ROOT\=(.*)/)
      return matches[1].strip if matches
    end
    raise &quot;FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get&quot;
  end
  
  require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
  
  flutter_ios_podfile_setup
  
  target 'Runner' do
    use_frameworks!
    use_modular_headers!
  
    flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  end
  
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      flutter_additional_ios_build_settings(target)
    end
  end
  
  </code></pre>
  <p><strong>Firebase packages im using</strong></p>
  <pre><code>  firebase_core: ^0.5.3
    firebase_analytics: ^6.3.0
    firebase_messaging: ^7.0.3
    firebase_dynamic_links: ^0.6.3
  </code></pre>