flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Xcode 14 build error

Open lvpeng0412 opened this issue 3 years ago • 7 comments

Signing for "flutter_downloader-FlutterDownloaderDatabase" requires a development team. Select a development team in the Signing & Capabilities editor.

lvpeng0412 avatar Sep 13 '22 06:09 lvpeng0412

I also encountered this problem

aiqianqianli avatar Sep 13 '22 09:09 aiqianqianli

i also encountered this problem too

AceChen1 avatar Sep 14 '22 02:09 AceChen1

this also occurs from my side, using xcode 14, flutter 3.3.1 and flutter_downloader 1.8.1

phanbaohuy96 avatar Sep 14 '22 02:09 phanbaohuy96

i also encountered this problem too

seho-dev avatar Sep 14 '22 06:09 seho-dev

this works for me

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['EXPANDED_CODE_SIGN_IDENTITY'] = ""
      config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
      config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
     end
  end
end

Yangzhuren avatar Sep 15 '22 02:09 Yangzhuren

this works for me

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['EXPANDED_CODE_SIGN_IDENTITY'] = ""
      config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
      config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
     end
  end
end

@Yangzhuren where to put in Project podfile?

sailes-coding avatar Sep 15 '22 05:09 sailes-coding

https://github.com/flutter/flutter/issues/111757

tonnyavery avatar Sep 18 '22 15:09 tonnyavery

this is my podfile

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

   # Workaround https://github.com/flutter/flutter/issues/111475.
   target_is_resource_bundle = target.respond_to?(:product_type) && target.product_type == 'com.apple.product-type.bundle'
   target.build_configurations.each do |build_configuration|
     if target_is_resource_bundle
       build_configuration.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
       build_configuration.build_settings['CODE_SIGNING_REQUIRED'] = 'NO'
       build_configuration.build_settings['CODE_SIGNING_IDENTITY'] = '-'
       build_configuration.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = '-'
     end
   end

    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',
        'AUDIO_SESSION_MICROPHONE=0'
      ]
      end
  end
end

do you think it could be a problem?

amedeopro avatar Oct 10 '22 14:10 amedeopro

should be fixed by https://github.com/flutter/flutter/issues/111757

bartekpacia avatar Mar 12 '23 15:03 bartekpacia