xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

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

Open ynop opened 4 years ago

ynop commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

LeonidKokhnovich commented 4 years ago

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 commented 4 years ago

There is an improvement for this. Adding cli option define number of try to download dmg for xcode and simulator, check out this https://github.com/xcpretty/xcode-install/pull/405

pronebird commented 3 years ago

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 commented 3 years ago

Still problematic