-
Notifications
You must be signed in to change notification settings - Fork 918
Installing CocoaPods takes a long time with no status indicator #573
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
Comments
Ah, this actually looks like it should have been solved by #487 I just created this project so I imagine I would have been on 2.7.1. I'll check again when I get back to my computer. |
Yep, still repros on 2.7.1
|
Maybe it really makes sense to pass stdout here. We'll investigate what can be done |
@TheSavior during the init, have you seen other loading indicators and only the CocoaPods installation step didn't have any? I tried to reproduce it and this is how it looks in my case: https://asciinema.org/a/SjZyniwPvWKoWSc12Fijqt8dP |
still have problems.. on macOS Mojave sudo gem install cocoapods [!] You cannot run CocoaPods as root.
|
you must install yarn
|
@TheSavior @thymikee I assume this is because it’s cloning the specs repo. In v1.7 a CDN version of this was added, which only fetches the specs you need during dependency resolution and is thus much faster, however only in v1.8 will it become the default. I.e. I wouldn’t spend a lot of time on this just yet. |
Closing, as CocoaPods 1.8+ is already present for a few months now, resulting in faster installs. |
On my mac os Big Sur...sudo gem install cocoapods just stays static without any output .. |
sudo gem install cocoapods -V would be helpful |
run |
I found that the Expo CLI gets stuck on the same step. If I pass EXPO_DEBUG=1 npx expo prebuild --clean I found that this is the last log message it emits before it gets stuck:
Strangely, if I kill the process and do an independent Not sure what it is about downloading that file in a wrapper CLI that makes it take over 20 minutes. |
same in my MacBook Pro M4 Pro with Sequoia 15.3 |
+1, same configuration, same issue Seems like an ISP issue, connecting to VPN helped |
Environment
Description
When init'ing a new project, I got a prompt that CocoaPods is not installed. I entered my password and gave it permission to install. The installation took a long time but there was no progress indicator so it wasn't clear if it hung or not. All I know is that my CPU usage was high.
A progress indicator, or even passing through stdout during this process would be helpful to know that the process hasn't hung.
Reproducible Demo
On a machine with cocoapods not installed, run
npx react-native init cocoapodstest
and give permission to install cocoapods.The text was updated successfully, but these errors were encountered: