android – CocoaPods couldn’t discover suitable variations for pod GTMSessionFetcher/Core

0
22
android – CocoaPods couldn’t discover suitable variations for pod GTMSessionFetcher/Core


I just lately up to date my Flutter model from 3.7 to three.16, together with some libraries. Now, I’m encountering a difficulty when operating pod set up within the ios folder, and the next error is thrown:

[!] CocoaPods couldn't discover suitable variations for pod "GTMSessionFetcher/Core":
  In Podfile:
    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which is dependent upon
      GoogleSignIn (~> 7.1.0) was resolved to 7.1.0, which is dependent upon
        GTMAppAuth (< 5.0, >= 4.1.1) was resolved to 4.1.1, which is dependent upon
          GTMSessionFetcher/Core (< 4.0, >= 3.3)

    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which is dependent upon
      GoogleSignIn (~> 7.1.0) was resolved to 7.1.0, which is dependent upon
        GTMSessionFetcher/Core (~> 3.3)

    mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to three.5.6, which is dependent upon
      GoogleMLKit/BarcodeScanning (~> 4.0.0) was resolved to 4.0.0, which is dependent upon
        MLKitBarcodeScanning (~> 3.0.0) was resolved to three.0.0, which is dependent upon
          MLKitCommon (~> 9.0) was resolved to 9.0.0, which is dependent upon
            GTMSessionFetcher/Core (< 3.0, >= 1.1)

Right here is my Podfile:

platform :ios, '14.0'

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

mission 'Runner', {
  'Debug' => :debug,
  'Profile' => :launch,
  'Launch' => :launch,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  except File.exist?(generated_xcode_build_settings_path)
    elevate "#{generated_xcode_build_settings_path} should exist. If you happen to're operating pod set up manually, ensure that flutter pub get is executed first"
  finish

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT=(.*)/)
    return matches[1].strip if matches
  finish
  elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Strive deleting Generated.xcconfig, then run flutter pub get"
finish

require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

goal 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  pod 'GTMSessionFetcher', :modular_headers => true

  pod 'GoogleUtilities'
finish

post_install do |installer|
  installer.pods_project.targets.every do |goal|
    flutter_additional_ios_build_settings(goal)
    goal.build_configurations.every do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',
        'PERMISSION_CAMERA=1',
        'PERMISSION_MICROPHONE=1'
      ]
    finish
  finish
finish

goal 'ImageNotification' do
  use_frameworks!
  pod 'GoogleUtilities'
finish

Listed below are the bundle variations talked about within the error from pubspec.yaml:


google_sign_in: ^6.2.1
mobile_scanner: ^3.5.7

Steps I’ve tried:
Operating flutter pub get earlier than pod set up.
Cleansing the CocoaPods cache:

cd ios
rm Podfile.lock
pod cache clear --all
sudo arch -x86_64 pod set up --repo-update
pod repo replace
pod set up

i additionally tried updating mobile_scanner to 4.0.1
Regardless of attempting all of the above, I nonetheless get the model battle.

LEAVE A REPLY

Please enter your comment!
Please enter your name here