14.2 C
New York
Sunday, September 8, 2024

Flutter iOS: CocoaPods couldn’t discover suitable variations for pod “GoogleSignIn


I lately needed to replace a flutter undertaking and a a consequence, fully broke the dependency tree on iOS.

The unique error message shows the next:

Error: CocoaPods's specs repository is just too out-of-date to fulfill dependencies.
To replace the CocoaPods specs, run:
  pod repo replace

After operating that adopted by pod set up. I get the next message:

[!] CocoaPods couldn't discover suitable variations for pod "GoogleSignIn":
  In snapshot (Podfile.lock):
    GoogleSignIn (= 7.0.0, ~> 7.0)

  In Podfile:
    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends upon
      GoogleSignIn (~> 7.1)

[!] CocoaPods couldn't discover suitable variations for pod "GoogleSignIn":
  In snapshot (Podfile.lock):
    GoogleSignIn (= 7.0.0, = 7.1)

  In Podfile:
    google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`) was resolved to 0.0.1, which depends upon
      GoogleSignIn (~> 7.1)


You could have both:
 * modified the constraints of dependency `GoogleSignIn` inside your growth pod `google_sign_in_ios`.
   It's best to run `pod replace GoogleSignIn` to use adjustments you have made.

And after updating that pod, I get the identical error with a special pod or I simply find yourself getting the identical message.

that is my pubspec.yaml


# Forestall unintentional publishing to pub.dev.
publish_to: 'none'

model: 1.0.0+1

setting:
  sdk: '>=3.1.1 <4.0.0'

dependencies:
  auth_repository:
    path: packages/auth_repository
  form_inputs:
    path: packages/form_inputs
  equatable: ^2.0.5
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  cached_network_image: ^3.2.3
  qr_flutter: ^4.1.0
  firebase_core: ^2.15.1
  mobile_scanner: ^3.5.5
  flutter_riverpod: ^2.4.9 # Use the most recent model
  firebase_auth: ^4.17.8
  google_sign_in: ^6.2.1
  sign_in_with_apple: ^5.0.0
  image_picker: ^1.0.8
  firebase_messaging: ^14.7.19
  cloud_firestore: ^4.15.8
  json_annotation: ^4.8.1
  flutter_dotenv: ^5.1.0
  datetime_picker_formfield: ^2.0.1
  bloc: ^8.1.4
  flutter_bloc: ^8.1.5
  flow_builder: ^0.1.0
  formz: ^0.6.1
  font_awesome_flutter: ^10.7.0
  easy_search_bar: ^2.5.0
  date_picker_plus: ^4.0.0
  flutter_typeahead: ^5.2.0
  multi_select_flutter: ^4.1.3
  bloc_test: ^9.1.7
  intl: 0.19.0
  http: ^1.2.0
  mockito: ^5.4.4
  objectid: ^3.0.0
  url_launcher: ^6.3.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^2.0.0
  take a look at: ^1.24.9
  build_runner: ^2.4.12

flutter:
  uses-material-design: true

  # Allow era of localized Strings from arb information.
  generate: true

  belongings:
    # Add belongings from the photographs listing to the applying.
    - belongings/photos/
    - .env

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles