Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing Firebase #13681

Closed
Jerry8135 opened this issue Sep 20, 2024 · 7 comments
Closed

Error installing Firebase #13681

Jerry8135 opened this issue Sep 20, 2024 · 7 comments

Comments

@Jerry8135
Copy link

Description

when install firebase from pod it always show error,when use swift package manager,it always show can not download it

Reproducing the issue

after do pod install,it still show the issue
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: xxxxx bytes of body are still expected

Firebase SDK Version

11.2.0

Xcode Version

16.0

Installation Method

CocoaPods

Firebase Product(s)

Messaging

Targeted Platforms

iOS

Relevant Log Output

pod install --repo-update
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing Firebase (11.2.0)

[!] Error installing Firebase
[!] /usr/bin/git clone https://github.com/firebase/firebase-ios-sdk.git /var/folders/55/xntm2cmx56d3fpnv4vyqf6jh0000gn/T/d20240920-43350-1wq1o3 --template= --single-branch --depth 1 --branch CocoaPods-11.2.0

Cloning into '/var/folders/55/xntm2cmx56d3fpnv4vyqf6jh0000gn/T/d20240920-43350-1wq1o3'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 8178 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

target 'App' do
capacitor_pods

Add your Pods here

pod 'Firebase/Core'
pod 'Firebase/Messaging'
end

@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@rizafran
Copy link
Contributor

Hi @Jerry8135, I wasn't able to reproduce the issue. This might be related to internet connection issue. May I know if you've tried using other network?

@anton-alekseev-amo
Copy link

I have troubles downloading dependencies via SPM on CI for more than 2 days
2024-09-19 23:59:10.780 xcodebuild[5073:16051] Writing error result bundle to /var/folders/7p/99t0qd9n3s778kb4451spsp40000gn/T/ResultBundle_2024-19-09_23-59-0010.xcresult xcodebuild: error: Could not resolve package dependencies: failed downloading 'https://dl.google.com/firebase/ios/swiftpm/11.1.0/FirebaseAnalytics.zip' which is required by binary target 'FirebaseAnalytics': downloadError("The network connection was lost.") failed downloading 'https://dl.google.com/firebase/ios/bin/firestore/11.2.0/rc0/FirebaseFirestoreInternal.zip' which is required by binary target 'FirebaseFirestoreInternal': downloadError("The network connection was lost.") failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.65.1/rc1/grpc.zip' which is required by binary target 'grpc': downloadError("The network connection was lost.") fatalError
Other SPM packages are downloading well, so the internet connection is not the case. Does not happen all the time.

@paulb777
Copy link
Member

@anton-alekseev-amo That sounds like a different issue that we've also been seeing in Firebase CI the last few days that SPM binary dependencies are failing in GitHub Actions. The best workaround we've found is to serialize jobs, that often, but not always works around the GHA networking issue.

@ryanmcdonald77
Copy link

Been getting the same as anton-alekseev-amo in our self hosted GitHub Actions runner since about 12 hours ago. Doesn't seem flakey as never successful even with jobs serialized

@paulb777
Copy link
Member

Using the cache action is looking like a promising resolution to the binary Swift Package Manager network failures we were seeing. firebase/data-connect-ios-sdk#16

@Jerry8135
Copy link
Author

@rizafran hello,thank you for your reply,i also think its netowrk issue,i use vpn and my mobile hotpoint,but it still the same result,i am not sure,i search it in google and try many options,now its ok ,maybe its my vpn not stable

@firebase firebase locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants