Cocoapods install issue with FirebaseAnalytics (11.4.0)

As with any flutter update I am running into issues post update. I removed my podfile.lock and was running pod install --repo-update and ran into this:

mike_jones@Mikes-MacBook-Pro ios % pod install --repo-update 
Updating local specs repositories

CocoaPods 1.16.1 is available.
To update use: `gem install cocoapods`

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.16.1

Analyzing dependencies
cloud_firestore: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
Downloading dependencies
Installing BoringSSL-GRPC (0.0.36)
Installing Firebase (11.4.0)
Installing FirebaseAnalytics (11.4.0)

[!] Error installing FirebaseAnalytics
[!] /usr/bin/curl -f -L -o /var/folders/dm/cvvg4f9j75ncz72d68jh63100000gn/T/d20241230-59908-7jjj57/file.tgz https://dl.google.com/firebase/ios/analytics/edf73aefd77661bd/FirebaseAnalytics-11.4.0.tar.gz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.15.2 cocoapods-downloader/2.1'

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (35) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version

Since I saw CocoaPod update was availbel I proceeded to update it:

mike_jones@Mikes-MacBook-Pro ios % sudo gem install cocoapods
WARNING:  You don't have /Users/mike_jones/.local/share/gem/ruby/2.6.0/bin in your PATH,
          gem executables will not run.
Successfully installed cocoapods-1.16.2
Parsing documentation for cocoapods-1.16.2
Done installing documentation for cocoapods after 1 seconds
1 gem installed
mike_jones@Mikes-MacBook-Pro ios % 

Not sure whats going on with the ruby error? I am on an M1 macbook pro if that matters. BUt it says the upgrade worked. WHen I tried another pod install --repo-update it said I was still on the old version and still errored out:

mike_jones@Mikes-MacBook-Pro ios % pod install --repo-update 
Updating local specs repositories

CocoaPods 1.16.1 is available.
To update use: `gem install cocoapods`

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.16.1

Analyzing dependencies
cloud_firestore: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '11.4.0' defined in 'firebase_core'
Downloading dependencies
Installing BoringSSL-GRPC (0.0.36)
Installing Firebase (11.4.0)
Installing FirebaseAnalytics (11.4.0)

[!] Error installing FirebaseAnalytics
[!] /usr/bin/curl -f -L -o /var/folders/dm/cvvg4f9j75ncz72d68jh63100000gn/T/d20241230-60884-uktonf/file.tgz https://dl.google.com/firebase/ios/analytics/edf73aefd77661bd/FirebaseAnalytics-11.4.0.tar.gz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.15.2 cocoapods-downloader/2.1'

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (35) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version

mike_jones@Mikes-MacBook-Pro ios % 

Hate to say this but think it wasn’t working cause I was on satellite internet on an airplane… jsut gogt home and connected to wifi and things are updating fine now…

1 Like