Search code examples
iosxcodeflutterxcode-archive

Error on Xcode Archive of my Flutter application


For some time now I have had problems when using Archive from Xcode to make the release on the Apple Store of my application developed in Flutter. Specifically, the errors I get are with the schema with Build configuration set to Debug. If I set the schema to Release, the archive is generated without errors, but it is compromised and therefore I cannot release it. The screen below shows the errors I get. Can anyone help me, please? I had this error with url_launcher_ios and SwiftyGif. Very thanks in advance for those who will help me!

error that appears when I try to do Archive with the debug scheme


Solution

  • edit your pod file like below.

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
        target.build_configurations.each do |config|
              config.build_settings['ENABLE_BITCODE'] = 'NO'
            end
      end
    end