Error on Xcode Archive of my Flutter application

681 Views Asked by At

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

2

There are 2 best solutions below

2
On BEST ANSWER

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
0
On

Open ios module with XCode and search for bitcode in build settings. Set Enabled to No.

This worked for me instead of trying to do this inside Podfile.