skip to Main Content

When I run pod update on flutter project, I got issue like this:

Updating local specs repositories
Analyzing dependencies
firebase_core: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
[!] CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/0/3/5/Firebase/10.25.0/Firebase.podspec.json Response: SSL peer certificate or SSH remote key was not OK

[!] Automatically assigning platform `iOS` with version `12.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Any idea for this?

2

Answers


  1. Run the below commands:

    1. cd ios
    2. pod repo remove trunk
    3. pod install
    Login or Signup to reply.
  2. You can try these commands below to avoid this issue:

    • flutter clean
    • flutter pub get
    • cd ios (it will open iOS directory in your flutter Project on terminal)
    • pod deintegrate
    • pod install

    Note: If issue still face the same issue, try deleting Podfile.lock and run these commands again. Or you may need to check your packages in pubspec.yaml if newer versions are available for the package causing the issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search