Build error using Firebase and Geolocator (or any Swift plugin) in iOS (Flutter)

前端 未结 1 1668
失恋的感觉
失恋的感觉 2021-01-21 11:51

I\'m trying to create a flutter app which use Firebase and the Geolocator plugin.

  • The Firebase plugins I\'ll use to authenticate, use the RTDB and FCM.
  • T
相关标签:
1条回答
  • 2021-01-21 12:50

    I am not an expert in this area but it looks like specifying the Swift version in your Podfile might solve the above mentioned error. You can do so by adding the following line:

    config.build_settings['SWIFT_VERSION'] = '4.1'

    It should be part of the post_install block, like this:

    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['SWIFT_VERSION'] = '4.1'
        end
      end
    end
    
    0 讨论(0)
提交回复
热议问题