title: 'FirebaseCore/FirebaseCore.h' file not found while building for Release Mode in Xcode Version 11.5 (11E608c)
body: <p>I am able to run the app in Debug mode in XCODE and simulator without any errors. But when I build for Release Mode the build fails with below 2 errors:</p>
  
  <ol>
  <li>'FirebaseCore/FirebaseCore.h' file not found</li>
  <li>Could not build Objective-C module 'Firebase'</li>
  </ol>
  
  <p>I have been trying different solutions available on Stackoverflow and gitHub over last 10 days but know seems to be working, below are the details.</p>
  
  <p><strong>FLUTTER DOCTOR :</strong> </p>
  
  <pre><code>Doctor summary (to see all details, run flutter doctor -v):
  [✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.15.3 19D76, locale en-IN)
  
  [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
  [✓] Xcode - develop for iOS and macOS (Xcode 11.5)
  [✓] Android Studio (version 4.0)
  [✓] Connected device (2 available)
  
  • No issues found!
  </code></pre>
  
  <p><strong>POD FILE :</strong></p>
  
  <pre><code># Uncomment this line to define a global platform for your project
  platform :ios, '9.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 parse_KV_file(file, separator='=')
    file_abs_path = File.expand_path(file)
    if !File.exists? file_abs_path
      return [];
    end
    generated_key_values = {}
    skip_line_start_symbols = ["#", "/"]
    File.foreach(file_abs_path) do |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        generated_key_values[podname] = podpath
      else
        puts "Invalid plugin specification: #{line}"
      end
    end
    generated_key_values
  end
  
  target 'Runner' do
    use_frameworks!
    use_modular_headers!
  
    # Flutter Pod
  
    copied_flutter_dir = File.join(__dir__, 'Flutter')
    copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
    copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
    unless File.exist?(copied_framework_path) &amp;&amp; File.exist?(copied_podspec_path)
      # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
      # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
      # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
  
      generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
      unless File.exist?(generated_xcode_build_settings_path)
        raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
      end
      generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
      cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
  
      unless File.exist?(copied_framework_path)
        FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
      end
      unless File.exist?(copied_podspec_path)
        FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
      end
    end
  
    # Keep pod path relative so it can be checked into Podfile.lock.
    pod 'Flutter', :path =&gt; 'Flutter'
  
    # Plugin Pods
  
    # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
    # referring to absolute paths on developers' machines.
    system('rm -rf .symlinks')
    system('mkdir -p .symlinks/plugins')
    plugin_pods = parse_KV_file('../.flutter-plugins')
    plugin_pods.each do |name, path|
      symlink = File.join('.symlinks', 'plugins', name)
      File.symlink(path, symlink)
      pod name, :path =&gt; File.join(symlink, 'ios')
    end
  end
  
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['ENABLE_BITCODE'] = 'NO'
      end
    end
  end
  </code></pre>
  
  <p><strong>AppDelegate.swift (file) :</strong></p>
  
  <pre><code>import UIKit
  import Flutter
  import Firebase
  
  @UIApplicationMain
  @objc class AppDelegate: FlutterAppDelegate {
  
      override func application(
      _ application: UIApplication,
      didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -&gt; Bool {
    FirebaseApp.configure()
      GeneratedPluginRegistrant.register(with: self)
      return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
  }
  </code></pre>
  
  <p><strong>Firebase.h file (Path: Pods>Pods>Firebase>CoreOnly>Firebase.h) :</strong></p>
  
  <pre><code>// Copyright 2019 Google
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //      http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  
  #import &lt;FirebaseCore/FirebaseCore.h&gt;
  
  #if !defined(__has_include)
    #error "Firebase.h won't import anything if your compiler doesn't support __has_include. Please \
            import the headers individually."
  #else
    #if __has_include(&lt;FirebaseAnalytics/FirebaseAnalytics.h&gt;)
      #import &lt;FirebaseAnalytics/FirebaseAnalytics.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseAuth/FirebaseAuth.h&gt;)
      #import &lt;FirebaseAuth/FirebaseAuth.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseCrashlytics/FirebaseCrashlytics.h&gt;)
      #import &lt;FirebaseCrashlytics/FirebaseCrashlytics.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseDatabase/FirebaseDatabase.h&gt;)
      #import &lt;FirebaseDatabase/FirebaseDatabase.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseDynamicLinks/FirebaseDynamicLinks.h&gt;)
      #import &lt;FirebaseDynamicLinks/FirebaseDynamicLinks.h&gt;
      #if !__has_include(&lt;FirebaseAnalytics/FirebaseAnalytics.h&gt;)
        #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
          #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  Firebase Dynamic Links works as intended."
        #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
      #endif
    #endif
  
    #if __has_include(&lt;FirebaseFirestore/FirebaseFirestore.h&gt;)
      #import &lt;FirebaseFirestore/FirebaseFirestore.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseFunctions/FirebaseFunctions.h&gt;)
      #import &lt;FirebaseFunctions/FirebaseFunctions.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseInAppMessaging/FirebaseInAppMessaging.h&gt;)
      #import &lt;FirebaseInAppMessaging/FirebaseInAppMessaging.h&gt;
      #if !__has_include(&lt;FirebaseAnalytics/FirebaseAnalytics.h&gt;)
        #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
          #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  Firebase In App Messaging works as intended."
        #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
      #endif
    #endif
  
    #if __has_include(&lt;FirebaseInstanceID/FirebaseInstanceID.h&gt;)
      #import &lt;FirebaseInstanceID/FirebaseInstanceID.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMessaging/FirebaseMessaging.h&gt;)
      #import &lt;FirebaseMessaging/FirebaseMessaging.h&gt;
        #if !__has_include(&lt;FirebaseAnalytics/FirebaseAnalytics.h&gt;)
        #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
          #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  Firebase Messaging works as intended."
        #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
      #endif
  #endif
  
    #if __has_include(&lt;FirebaseMLCommon/FirebaseMLCommon.h&gt;)
      #import &lt;FirebaseMLCommon/FirebaseMLCommon.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h&gt;)
      #import &lt;FirebaseMLModelInterpreter/FirebaseMLModelInterpreter.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLNLLanguageID/FirebaseMLNLLanguageID.h&gt;)
      #import &lt;FirebaseMLNLLanguageID/FirebaseMLNLLanguageID.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLNLSmartReply/FirebaseMLNLSmartReply.h&gt;)
      #import &lt;FirebaseMLNLSmartReply/FirebaseMLNLSmartReply.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLNLTranslate/FirebaseMLNLTranslate.h&gt;)
      #import &lt;FirebaseMLNLTranslate/FirebaseMLNLTranslate.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLNaturalLanguage/FirebaseMLNaturalLanguage.h&gt;)
      #import &lt;FirebaseMLNaturalLanguage/FirebaseMLNaturalLanguage.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLVision/FirebaseMLVision.h&gt;)
      #import &lt;FirebaseMLVision/FirebaseMLVision.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLVisionAutoML/FirebaseMLVisionAutoML.h&gt;)
      #import &lt;FirebaseMLVisionAutoML/FirebaseMLVisionAutoML.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLVisionBarcodeModel/FirebaseMLVisionBarcodeModel.h&gt;)
      #import &lt;FirebaseMLVisionBarcodeModel/FirebaseMLVisionBarcodeModel.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLVisionFaceModel/FirebaseMLVisionFaceModel.h&gt;)
      #import &lt;FirebaseMLVisionFaceModel/FirebaseMLVisionFaceModel.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLVisionLabelModel/FirebaseMLVisionLabelModel.h&gt;)
      #import &lt;FirebaseMLVisionLabelModel/FirebaseMLVisionLabelModel.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLVisionObjectDetection/FirebaseMLVisionObjectDetection.h&gt;)
      #import &lt;FirebaseMLVisionObjectDetection/FirebaseMLVisionObjectDetection.h&gt;
    #endif
  
    #if __has_include(&lt;FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h&gt;)
      #import &lt;FirebaseMLVisionTextModel/FirebaseMLVisionTextModel.h&gt;
    #endif
  
    #if __has_include(&lt;FirebasePerformance/FirebasePerformance.h&gt;)
      #import &lt;FirebasePerformance/FirebasePerformance.h&gt;
      #if !__has_include(&lt;FirebaseAnalytics/FirebaseAnalytics.h&gt;)
        #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
          #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  Firebase Performance works as intended."
        #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
      #endif
    #endif
  
    #if __has_include(&lt;FirebaseRemoteConfig/FirebaseRemoteConfig.h&gt;)
      #import &lt;FirebaseRemoteConfig/FirebaseRemoteConfig.h&gt;
      #if !__has_include(&lt;FirebaseAnalytics/FirebaseAnalytics.h&gt;)
        #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
          #warning "FirebaseAnalytics.framework is not included in your target. Please add \
  `Firebase/Analytics` to your Podfile or add FirebaseAnalytics.framework to your project to ensure \
  Firebase Remote Config works as intended."
        #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING
      #endif
    #endif
  
    #if __has_include(&lt;FirebaseStorage/FirebaseStorage.h&gt;)
      #import &lt;FirebaseStorage/FirebaseStorage.h&gt;
    #endif
  
    #if __has_include(&lt;GoogleMobileAds/GoogleMobileAds.h&gt;)
      #import &lt;GoogleMobileAds/GoogleMobileAds.h&gt;
    #endif
  
    #if __has_include(&lt;Fabric/Fabric.h&gt;)
      #import &lt;Fabric/Fabric.h&gt;
    #endif
  
    #if __has_include(&lt;Crashlytics/Crashlytics.h&gt;)
      #import &lt;Crashlytics/Crashlytics.h&gt;
    #endif
  
  #endif  // defined(__has_include)
  </code></pre>
  
  <blockquote>
    <p>Firebase.h error</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/Q30NW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q30NW.png" alt="Firebase.h error"></a></p>
  
  <blockquote>
    <p>Could not build Objective-C module 'Firebase'</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/bg20Y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bg20Y.png" alt="Could not build Objective-C module &#39;Firebase&#39;"></a></p>