-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
CocoaPods hangs on unpacking boost 1.59 when executing pod install #4830
Comments
ok after waiting for around 10-15 minutes it continued. Maybe it makes sense to speed that up somehow? When i execute the same extraction command on another shell it is done within seconds. |
We're running the commands you're seeing in the log, you're welcome to dig into cocoapods-downloader to see if there's anything that could cause it to go slower? |
FWIW running:
Is slow just by itself. I dont think its CocoaPods related... |
Either way, if this is an issue it belongs to cocoapods-downloader, not CocoaPods proper. |
@segiddins ok thanks i will create an issue there |
This exact thing just happened to me, same version of boost. It took like... 5 minutes or so? Really long to extract. The download in verbose was 16 seconds. When I extracted it myself using the same command it ran, it was a few seconds. Something weird definitely going on. I even did a full update of everything ruby and cocoapods related, but it didn't help. |
Met the same problem ... |
I am also experiencing this... |
@issue2k can you link your newly created issue here? |
@philolo1 i never did that, no longer using cocoapods, feel free to proceed |
same here, cocoapods 1.3.1 |
Yes if you follow the instructions on the React native getting started guide for integrating with an existing app, you will be able to reproduce this problem. I opened this issue before I saw this one, I never thought of waiting 15 minutes. |
I did a test and disabling cocoapods cache solves that issue. You can disable it by creating a ~/.cocoapods/config.yaml file with the following contents.
|
same thing happened to me but turned out to be bc my internet dropped. probably just me, but who knows |
I think it should be done via the repository somewhere. I think the url has changed, but the repository hasn't been updated, or maybe I had a version mismatch locally. # Notice the '9/9/d/' - my version didn't have that
# but I had an older version that threw a 404.
# repos/master/Specs/9/9/d/boost/1.59.0/boost.podspec.json I don't know how to do this on travis, this is just a "quick fix" - hopefully someone can figure out a permanent solution. |
The issue is caused by an invalid tar.gz-file for boost that only contains plain text with html-code of SourceForge:
the
|
Apparently the people behind boost aren't interested in fixing their issue. Is it possible to install boost from another location where i can fix it by myself? |
Could you PR this to boost? CocoaPods/Specs#14361 |
** This is only for Travis builds. cache:
- cocoapods then it will take few seconds from second time onwards. If you don't do |
sourceforge didn't work for me. I manually downloaded it from sourceforge then did: ~/.cocoapods/repos/master/Specs/9/9/d/boost/1.59.0/boost.podspec.json
But now this hangs when its untarring. Using @shaikatz tip, this speeds up the extract a lot. Notice it extracts to your project instead of the cache (
~/.cocoapods/config.yml
Now this step is really slow (took ~5mins):
|
@vjpr I have waited more than 20 min for the yoga running pre install hooks and it did not finish. I had to cancel pod install |
@pisacode I got the same issue, then I updated RN to 0.55v, it's resolved but I don't prefer this workaround. |
Boost's podspec has many regular matching paths, and pods copy to cache operation will take a long time. |
Trying not to necro this topic but to speed up the install, you will need to multithread tar extraction. On mac by default boost is extracted by tar on a single thread. As a workaround, in bash you can do something like this. Solution
tar(){
if [ $(command -v ) ]; then
command pbzip2 -dkv file.tbz | tar $1 $2.out $3 $4 ${5:@}
else
command tar $@
fi
} Noting that this script will only override the tar method if pbzip2 exists. But it may break other tar extraction scripts. Consider adding direnv and adding a .envrc file with this script in your repo. Side note
|
Hello,
when trying to integrate boost library into one of our projects the pod installation process hangs on extracting the downloaded file, nothing happens after the last line:
pod install --verbose
Any suggestions?
The text was updated successfully, but these errors were encountered: