0

I have this code in ios/podfile with flutter sdk 2.5 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' end end end

but when upgrade flutter to 2.10.3 this code cant work there is some changes that do not understand for me

like this

post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) end end

and I want to add tow next lines in new style of code

config.build_settings['ENABLE_BITCODE'] = 'NO' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'

Waleed
  • 23
  • 4

1 Answers1

0

This is code that work for me after more searching

post_install do |installer|
   installer.pods_project.targets.each do |target|
      flutter_additional_ios_build_settings(target)
        # Required by jitsi
      target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
          config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
     end
  end
end

I got it from here Flutter using jitsi_meet flutter package generate error on IOS

Waleed
  • 23
  • 4