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

Xcode download fails with "curl: (18)" #390

Open
ynop opened this issue Apr 29, 2020 · 6 comments
Open

Xcode download fails with "curl: (18)" #390

ynop opened this issue Apr 29, 2020 · 6 comments

Comments

@ynop
Copy link

ynop commented Apr 29, 2020

Hi,

I try to automate the installation of Xcode within a parallels image.
I always get the error curl: (18) transfer closed with 6920870091 bytes remaining to read.
Manually, I can restart and it works after a few times, but it is a bit difficult for automation.

I am on macOS 10.15.4 (xcversion 2.6.4) and tried Xcode 11.4, 11.3 as well as some simulators, all with the same result.

As I saw this is a known problem and you already retry for 3 times. Is there any possibility to retry until it is finally finished?

I'm happy to help out with the implementation if you think that this could work.

@htquanq
Copy link

htquanq commented Jun 16, 2020

same issue. Found this repository and im testing it with my mac. I planned to use this to install xcode on my CI slaves.

@gunesmes
Copy link

gunesmes commented Sep 1, 2020

The same issue for version 11.6, it is around 8gb. Is it possible to download this package with curl?

@LeonidKokhnovich
Copy link

LeonidKokhnovich commented Sep 16, 2020

It's hard to install Xcode with the xcversion tool without addressing this bug. The same error comes up 4-5 or more times for the same xcode 11.7 installation... I'm on wifi connection with stable internet connectivity so I guess it's due to some other issue.

@gunesmes
Copy link

There is an improvement for this. Adding cli option define number of try to download dmg for xcode and simulator, check out this
#405

@pronebird
Copy link

pronebird commented Jun 8, 2021

Cannot install Xcode 13.

xcversion install '13 beta'
  4 11.9G    4  519M    0     0  3656k      0  0:57:00  0:02:25  0:54:35 2258k%
curl: (18) transfer closed with 12263397034 bytes remaining to read
100   305  100   305    0     0    364      0 --:--:-- --:--:-- --:--:--   364%
100   305  100   305    0     0    364      0 --:--:-- --:--:-- --:--:--   364
100   305  100   305    0     0    364      0 --:--:-- --:--:-- --:--:--   364
  3 11.4G    3  389M    0     0  3495k      0  0:57:05  0:01:53  0:55:12 3638k%
curl: (18) transfer closed with 11855397906 bytes remaining to read
  3 11.4G    3  389M    0     0  3495k      0  0:57:05  0:01:53  0:55:12 3638k
curl: (18) transfer closed with 11855397906 bytes remaining to read
100   315  100   315    0     0    678      0 --:--:-- --:--:-- --:--:--   678
100   305  100   305    0     0    425      0 --:--:-- --:--:-- --:--:--   425
  2 11.0G    2  324M    0     0  3727k      0  0:51:46  0:01:29  0:50:17 4493k%
curl: (18) transfer closed with 11515567922 bytes remaining to read
%[!] Failed to download Xcode 13 beta.

@vrnvorona
Copy link

Still problematic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants