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

Pod Install Is Not Working #148605

Closed
SakhileMamba opened this issue May 18, 2024 · 6 comments
Closed

Pod Install Is Not Working #148605

SakhileMamba opened this issue May 18, 2024 · 6 comments
Labels
r: invalid Issue is closed as not valid

Comments

@SakhileMamba
Copy link

SakhileMamba commented May 18, 2024

Steps to reproduce

I have set up my project to use Firebase but whenever I try to install the pods for the iOS app to use Firebase, I get errors.

Actual results

sakhile@Sakhiles-Mini ios % pod install
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '10.25.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '10.25.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.25.0' defined in 'firebase_core'
Downloading dependencies
Installing BoringSSL-GRPC (0.0.32)

[!] Error installing BoringSSL-GRPC
[!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/ym/xd8dj0mj1wx2hf6_5j36lnh00000gn/T/d20240518-83716-81segq --template=

Cloning into '/var/folders/ym/xd8dj0mj1wx2hf6_5j36lnh00000gn/T/d20240518-83716-81segq'...
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 14690 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
sakhile@Sakhiles-Mini ios % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64 (Rosetta), locale en-SZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!
@Bestfootballer
Copy link

Bestfootballer commented May 18, 2024

Hi @SakhileMamba I reproduced steps you described, but everything worked fine for me.
Maybe it was a network error in your case.
Did you try to delete Pods folder and Podfile.lock and rerun pod install

Try to execute these commands: flutter clean; flutter pub get; cd ios; rm -rf Pods/ Podfile.lock; pod install

  • flutter clean: clean build folder
  • flutter pub get: download Flutter packages;
  • cd ios: switch to ios directory
  • rm -rf Pods/ Podfile.lock: delete cached/installed Pods
  • pod install: reinstall pods

Flutter Doctor Output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.89.1)
[✓] Connected device (5 available)
[✓] Network resources

@SakhileMamba
Copy link
Author

Hi @Bestfootballer, I have been trying your suggestions for weeks now. I can normally download large files from my internet connection without any interruptions but for some reason, this just doesn't work for me. My internet speed averages 1.9 Mbps.

Flutter works if I don't have any pod dependencies in my project.

@Bestfootballer
Copy link

Bestfootballer commented May 19, 2024

@SakhileMamba

  • Did you tried to switch to another network and retry to install?
  • Did you tried to update/reinstall the cocoapods package?
  • Did you tried to open project to another pc?
  • Did you tried to create a new empty project?

@SakhileMamba
Copy link
Author

@Bestfootballer
• I tried to update/reinstall the Cocoapods package.

Let me attempt the other ideas.

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label May 20, 2024
@darshankawar
Copy link
Member

@SakhileMamba
This isn't an issue with flutter framework but with grpc dependency being used by firebase plugins. Check StackOverflow for solutions or see firebase/flutterfire#12660

Closing from here.

@darshankawar darshankawar closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
@darshankawar darshankawar added r: invalid Issue is closed as not valid and removed in triage Presently being triaged by the triage team labels May 20, 2024
Copy link

github-actions bot commented Jun 3, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

3 participants