iosfluttercocoapods

pod update/install fails at Installing BoringSSL-GRPC (0.0.24)


When I run pod install or pod update in my flutter project, it fails at Installing BoringSSL-GRPC (0.0.24). And it prints this error message,

[!] Error installing BoringSSL-GRPC [!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/mv/09sm2s1j0dd8dswfdcjg7vz00000gn/T/d20240208-44161-pig7ei --template=

Cloning into '/var/folders/mv/09sm2s1j0dd8dswfdcjg7vz00000gn/T/d20240208-44161-pig7ei'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 4882 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output

Any help on how to resolve this?

This are the solutions I applied but all fails

  1. git config --global http.postBuffer 524288000
  2. git config --global core.compression 0
  3. git config --global http.version HTTP/1.1

Solution

  • It happens because of connectivity issue.

    enter image description hereI have been trying for days but I was getting the same error. Today I changed my internet connection, I run "pod install" it gave errors on different package installation but I kept trying and the installation was successful. The solution is changing your internet connectivity and if you are getting different error messages on each try, keep trying or running "Pod install", the installation will be completed,

    Please see the attached image and analyse how the error message is changing with each try.