Leonardo Pio Palumbo
Leonardo Pio Palumbo

Reputation: 31

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

Upvotes: -1

Views: 821

Answers (2)

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.

Upvotes: 0

Darshan Sheta
Darshan Sheta

Reputation: 59

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

Upvotes: 0

Related Questions