-
Notifications
You must be signed in to change notification settings - Fork 72
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 #69
Comments
Tried running the same commands: |
Hi @yoelglus I have an issue with this. When I ran
When I try to manually download the file like so (I've added
I get the following output (cut some parts for clarity):
Seems that the returned response is the html page from sourceforge and not the requested binary. |
hi @andon - I see the same when running |
@yoelglus Can you run pod install in verbose mode? It should do the same as the curl cmd. |
@andon - see bellow:
|
Some network latency but the thing that really takes a long time is the tar command... |
Strange. Latency and size were not the issue on my side, but the redirects from sourceforge.net. |
yep, we will do the same probably... |
Just came across this same issue when installing React Native dependencies. I can run the curl command no problem but CocoaPods just hangs on When I check the folder it looks like everything unpacked fine but CocoaPods is unsure what to do next? |
@irace - I kept it as it is (same one as in the first comments) |
I'm new to cocoa pods and I'm having this issue while using a react native app. @andon how do you go about using this custom url in a pod spec? I've been trying to digest documentation and figure it out, but I'm not having much luck. |
We have experienced the same problem every now and then on different machines. Downloading boost does not seem to be a problem, but after that Ruby uses up all CPU for about 10 minutes, then the installation succeeds. |
I had this same error, the spec download url points to a sourceforge page with a redirect, and that redirect is where it fails. [!] Error installing boost
Quick FixFind this file on your system and edit it's source url. Find the boost spec file locallyopen ~/.cocoapods/repos/master/Specs/9/9/d/boost/1.59.0/boost.podspec.json Change the source download url to a direct link "source": {
"http": "https://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz?r=&ts=1513105136&use_mirror=kent"
}, Pod install with patience# everything should work - boost can be downloaded and unpacks
# Note this takes a while to compile, be patient.
pod install |
How to achieve this on travis ?? |
To build upon @lakhman's answer, what solved this for me was to go to the SourceForge page here and get the link it provides for you when you click the Be prepared, it takes forever. |
If it can help someone to detect the bottleneck, I run sampler (from Monitor.app) while wait that process to complete.
Sampler results: https://gist.github.com/vovkasm/613107727d86ae12384865113ab97d93 |
Any news on this? I've found out that the root cause is indeed an invalid tar.gz file for boost that only contains plain html code. Pls find more info here: |
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. skip_download_cache: true |
change the source at https://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz |
I had the following error.
Open Change the URL from this "source": {
"http": "https://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz?r=&ts=1513105136&use_mirror=kent"
} to this "source": {
"http": "http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz?r=&ts=1513105136&use_mirror=kent"
} |
Updating the download link: It took 29 seconds for download but around 3 minutes to unpack the file :( |
It's really funny that this is happening with a pod called boost |
Thanks @lakhman . Or |
After constantly having this problem, i put |
I'm having this issue today:
Seems stuck. ~/.cocoapods/repos/master//boost//boost.podspec.json does not exist, and neither does it exist in ~/.cocoapods/repos/trunk/... Any advice? edit: it eventually finished on its own |
What is the fix sorry? |
I used @rghorbani's tip and then ran My internet is good but the download is slow anyway. I do not know the reason. |
still |
See discussion here
The text was updated successfully, but these errors were encountered: