Closed bongzlive closed 4 years ago
did you manage to fix this as I have the same error
I have the same error. Is there a fix?
I have not found one yet
Sent from my iPhone
On 23 Jan 2020, at 13:22, PWakwima notifications@github.com wrote:
I have the same error. Is there a fix?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi,
I managed to resolve this. You need to open the PodFile under your Xcode prroject and do the following...
I hope this helps you guys, of course every case is unique, but I hope we all had the same issue.
P.S If Firebase does not recognize your app during the SDK setup, you might want to check if you have pod 'Firebase/Analytics' in your PodFile. If not add it and run another 'pod install'.
so this worked for Firebase/Auth as soon as I done Firebase/Firestore it came up with the same error :(
the other ones go straight to firebase where Firestore goes straight to install BoringSSL-GPRC and that is where the error is coming from
Angela@Iains-iMac ios % pod install Analyzing dependencies Downloading dependencies Installing BoringSSL-GRPC (0.0.3)
[!] Error installing BoringSSL-GRPC [!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200124-14030-1ck4wxp --template=
Cloning into '/var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200124-14030-1ck4wxp'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
You need to have both pods in your PodFile simultaneously when you run 'pod install' and you need to remove all Firebase installations and dependencies first before you do.
could you provide a guide on how to do that please I just want to make sure I am doing it correctly
Please refer to my comment above that is in numeric bullet point form.
thanks I done what you said this is my pod file
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Runner' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Runner
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
end
this is my terminal
Angela@Iains-iMac ios % pod init Angela@Iains-iMac ios % pod install Analyzing dependencies Downloading dependencies Installing BoringSSL-GRPC (0.0.3)
[!] Error installing BoringSSL-GRPC [!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200126-2629-1fdpm6v --template=
Cloning into '/var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200126-2629-1fdpm6v'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
[!] Automatically assigning platform iOS
with version 8.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
.
Please uncomment line 2 " # platform :ios, '9.0' " and re-run the steps above.
hi I done what you said this is my pod file
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Runner' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Runner
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
end
this is my terminal
Angela@Iains-iMac ios % pod install
Analyzing dependencies
Downloading dependencies
Installing BoringSSL-GRPC (0.0.3)
[!] Error installing BoringSSL-GRPC
[!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200128-79876-4r6cil --template=
Cloning into '/var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200128-79876-4r6cil'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
@AbScott1985 did you manage to find a solution?
Yes there was a block on my internet so I tried a vpn and it worked so went on to my network and took off the security and vpn settings on my network
Sent from my iPhone
On 20 Mar 2020, at 12:50, adarsh raj notifications@github.com wrote:
@AbScott1985 did you managed to find a solution for it ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks, @AbScott1985 I just figured it out by switching the network, not sure what was issue with network probably something to do with pandemic traffic.
I was so annoyed I had changed a lot of my settings and messed around with it so much for it to not be an issue with the app was so angry but at least it is sorted now and I will be checking that first from now on lol glad its sorted x
This fixed the problem for me in the project directory
rm -rf Pods
rm Podfile.lock
pod install
Connecting to my VPN solved it, too. Weird.
same here, Any solutions?
Compiling with/without your VPN does not make sense for that solution. Most likely just Pods using cache previously installed with later versions. BoringSSL is a heavily used packaged throughout different packages.
Also, the comment about "Pandemic Traffic" is hilarious.. :P
@joshua-hester can you elaborate about that please?
Brand new laptop, fresh environment, still struggling with this problem.
Hi,
I managed to resolve this. You need to open the PodFile under your Xcode prroject and do the following...
Remove Firebase/Firestore pods from the PodFile and save the PodFile. Make sure Xcode is closed. Open Terminal and cd to your Xcode project directory. Run 'pod install' After that you add the fireStore then its worked for me Add pod 'Firebase/Auth' and pod 'Firebase/Firestore' to your PodFile and save the PodFile. Run 'pod install'
Although this was closed a while back, it seems that there is still an issue. Yulin, can you take a look at this?
Although this was closed a while back, it seems that there is still an issue. Yulin, can you take a look at this?
Sure, I'll take a look at it.
Brand new laptop, fresh environment, still struggling with this problem.
@DustinJSilk - Have you fixed it? If not, have you tried the solution that bongzlive@ mentioned above?
Hi facing the same issue while adding 'pod 'Firebase/Firestore'. Any working solution?
@yulin-liang , Have you got any workaround?
Thanks
Hi facing the same issue while adding 'pod 'Firebase/Firestore'. Any working solution?
@yulin-liang , Have you got any workaround?
Thanks
Have you tried the solution bongzlive@ mentioned above?
So I have this issue...is there any resolution on the horizon?
To give some context to this...I am using a brand new MacBook on Catalina and I am using Xcode 12.0.1. I can build an iOS app with the basic flutter counter app and this displays in the iPhone simulator as expected. However, I have another app that runs fine on Android on Windows but I can't get past this error on macOS.
This morning I went to the effort of removing anything Firebase related out of my pubspec and deleted pods with the commands suggested above. However, this produced the same error.
I have now isolated this issue in my case where I am using flutter. Removing the dependency cloud_firestore, allows me to successfully pod install. However, this dependency is required in my app and every time I add it back in - I get the above error. Which relates more specifically to this: https://github.com/flutter/flutter/issues/30185
@lemusthelroy Does it stuck at installing BoringSSL-GRPC? Can you please post the output of pod install --verbose
?
-> Installing BoringSSL-GRPC (0.0.7)
Git download Git download $ /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/5y/kz_7kysj73z8jtb1xzc0skmr0000gp/T/d20200928-1463-1g58de --template= Cloning into '/var/folders/5y/kz_7kysj73z8jtb1xzc0skmr0000gp/T/d20200928-1463-1g58de'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
[!] Error installing BoringSSL-GRPC [!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/5y/kz_7kysj73z8jtb1xzc0skmr0000gp/T/d20200928-1463-1g58de --template=
Cloning into '/var/folders/5y/kz_7kysj73z8jtb1xzc0skmr0000gp/T/d20200928-1463-1g58de'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
My current internet connection is 110 Mbps, so no issues there
@lemusthelroy Thanks for the information, can you try to remove ios/Flutter/Flutter.framework
, ios/Pods
, and Podfile.lock
before running pod install
?
Same error unfortunately 😭
@lemusthelroy Can you create a simple demo that I can reproduce the issue?
For me to get the issue all I have to do is the following:-
flutter create demoApp
flutter run
@lemusthelroy I tried to add cloud_firestore: ^0.12.9+5
in the pubspec.yaml
and ran pod install
in iOS/
directory, I can install it successfully. What's the version of your flutter? Can you also paste your dependencies?
Flutter 1.20.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision fba99f6cf9 (2 weeks ago) • 2020-09-14 15:32:52 -0700 Engine • revision d1bc06f032 Tools • Dart 2.9.2
name: boringSSLBug
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cloud_firestore:
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
@lemusthelroy It looks like an git internet connection issue, you can take a look at this post, https://stackoverflow.com/questions/38618885/error-rpc-failed-curl-transfer-closed-with-outstanding-read-data-remaining. I also found a similar issue in Cocoapods repo. Can you try to increase buffer size? Hope it can work.
git config --global http.postBuffer 524288000
Yeah I've seen that suggestion before. Tried it again and still the same issue 😢 I'm pretty new to developing on iOS but had enjoyed Flutter on Windows over the last year, just a shame I can't any of my apps on iOS atm.
So on a hunch, I ran 'flutter run' on a hotspot and it worked just fine. For all others that may hit the same issue, I am in the UK and using Virgin Media. I had to log into Virgin Media website, (not to the router), and disable Child Safe.
This seems like an internet connection issue and not much we can do. For those who may ran into the same issue, please try to do the following first:
Remove Firebase/Firestore pods from the PodFile and save the PodFile.
Make sure Xcode is closed.
Open Terminal and cd to your Xcode project directory.
Run 'pod install'
After that you add the fireStore then its worked for me
Add pod 'Firebase/Auth' and pod 'Firebase/Firestore' to your PodFile and save the PodFile.
Run 'pod install'
If it doesn't work for you, you may need to switch to another network or check your network configuration.
This is hard to believe. I root caused this issue to a wired ethernet adapter I was using. wifi and two other wired ethernet adapters worked.
Note that ethernet adapter seemed to work fine otherwise. The git clone worked fine from the command line, the issue only surfaced when ruby Process.spawn executed it!
This is hard to believe. I root caused this issue to a wired ethernet adapter I was using. wifi and two other wired ethernet adapters worked.
Note that ethernet adapter seemed to work fine otherwise. The git clone worked fine from the command line, the issue only surfaced when ruby Process.spawn executed it!
@vharron Unbelievable! I've read your post and I've tried to unplug my network adapter and update all the pods with wifi connection. It greatly works! It fixed my issue. You saved me. Thank you. My network adapter is: Atolla wired sub/ethernet apple adapter. I will buy an original adapter 👍
hi I done what you said this is my pod file
# Uncomment the next line to define a global platform for your project platform :ios, '9.0' target 'Runner' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for Runner pod 'Firebase/Analytics' pod 'Firebase/Auth' pod 'Firebase/Firestore' end
this is my terminal
Angela@Iains-iMac ios % pod install Analyzing dependencies Downloading dependencies Installing BoringSSL-GRPC (0.0.3) [!] Error installing BoringSSL-GRPC [!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200128-79876-4r6cil --template= Cloning into '/var/folders/f2/cpx0475j7t52__99k3spzhn00000gp/T/d20200128-79876-4r6cil'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
Please change to another network. Changing the network helped me resolve this issue. I'm not sure why because even the network I was using was working fine.
For Flutter developers: change all firebase dependencies I use to this versions solve my problem
firebase_messaging: ^10.0.2
firebase_auth: ^1.4.1
cloud_firestore: ^2.2.1
firebase_storage: ^8.1.3
firebase_core: ^1.3.0
What version of gRPC and what language are you using?
Trying to install BoringSSL-GRPC (0.0.3) via terminal on Mac OS Catalina 10.15.2
What operating system (Linux, Windows,...) and version?
Mac OS Catalina 10.15.2
What runtime / compiler are you using (e.g. python version or version of gcc)
Xcode Environment
What did you do?
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.
Added pod 'Firebase/Firestore' to the PodFile and ran 'pod install'
What did you expect to see?
Pods installed successfully
What did you see instead?
Installing BoringSSL-GRPC (0.0.2)
[!] Error installing BoringSSL-GRPC [!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/k3/8phztphs11d0hbtshqcxx9hr0000gn/T/d20190226-73853-1azgtd4 --template=
Cloning into '/var/folders/k3/8phztphs11d0hbtshqcxx9hr0000gn/T/d20190226-73853-1azgtd4'... error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
This also takes forever to show this error more than an hour and a half
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?