Download fails after 3 chunks of 1024Mb each
Here's the output when trying to download 11 GM Seed (it happened with other versions too)
âžś MyIOSApp xcversion install '11 GM Seed'
100 321 100 321 0 0 408 0 --:--:-- --:--:-- --:--:-- 408%
100 305 100 305 0 0 291 0 0:00:01 0:00:01 --:--:-- 297k
100 305 100 305 0 0 291 0 0:00:01 0:00:01 --:--:-- 297k
14 7311M 14 1024M 0 0 2671k 0 0:46:42 0:06:32 0:40:10 4049k%
curl: (18) transfer closed with 6592924889 bytes remaining to read
100 321 100 321 0 0 414 0 --:--:-- --:--:-- --:--:-- 414%
16 6287M 16 1024M 0 0 2987k 0 0:35:55 0:05:50 0:30:05 4125k%
curl: (18) transfer closed with 5519183065 bytes remaining to read
100 321 100 321 0 0 899 0 --:--:-- --:--:-- --:--:-- 899
100 305 100 305 0 0 497 0 --:--:-- --:--:-- --:--:-- 497
19 5263M 19 1024M 0 0 2853k 0 0:31:28 0:06:07 0:25:21 3204k%
curl: (18) transfer closed with 4445441241 bytes remaining to read
%[!] Failed to download Xcode 11 GM Seed.
If I run the same command again, it resumes the download. I have to run it 3-4 times depending on the download size. After the download is complete, the installation runs as expected.
âžś MyIOSApp which curl
/usr/bin/curl
âžś MyIOSApp /usr/bin/curl --version
curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy
the same thing
+1
(Resolved)
Same here. After trying few times it seems to be working but got another error:
No
Xcode.app(or Xcode-beta.app)found in XIP. Please remove /Users/Suyeol/Library/Caches/XcodeInstall/Xcode_11.2.1.xip if you suspect a corrupted download or runxcversion updateto see if the version you tried to install has been pulled by Apple. If none of this is true, please open a new GH issue.
Version
$ xcversion --version
2.6.3
First trial
bash-3.2$ xcversion install 11.2.1
100 305 100 305 0 0 815 0 --:--:-- --:--:-- --:--:-- 815
100 305 100 305 0 0 815 0 --:--:-- --:--:-- --:--:-- 815
13 7459M 13 1024M 0 0 5783k 0 0:22:00 0:03:01 0:18:59 5818k%
curl: (18) transfer closed with 6748115084 bytes remaining to read
100 305 100 305 0 0 734 0 --:--:-- --:--:-- --:--:-- 3910
100 305 100 305 0 0 734 0 --:--:-- --:--:-- --:--:-- 3910
15 6435M 15 1024M 0 0 5676k 0 0:19:20 0:03:04 0:16:16 5710k%
curl: (18) transfer closed with 5674373260 bytes remaining to read
100 305 100 305 0 0 868 0 --:--:-- --:--:-- --:--:-- 868
100 305 100 305 0 0 868 0 --:--:-- --:--:-- --:--:-- 868
18 5411M 18 1024M 0 0 5765k 0 0:16:01 0:03:01 0:13:00 5672k%
curl: (18) transfer closed with 4600631436 bytes remaining to read
%[!] Failed to download Xcode 11.2.1.
Second trial
bash-3.2$ xcversion install 11.2.1
100 313 100 313 0 0 934 0 --:--:-- --:--:-- --:--:-- 934
23 4387M 23 1024M 0 0 5866k 0 0:12:45 0:02:58 0:09:47 5861k%
curl: (18) transfer closed with 3526889612 bytes remaining to read
100 305 100 305 0 0 804 0 --:--:-- --:--:-- --:--:-- 297k
100 305 100 305 0 0 804 0 --:--:-- --:--:-- --:--:-- 297k
30 3363M 30 1024M 0 0 6222k 0 0:09:13 0:02:48 0:06:25 6099k%
curl: (18) transfer closed with 2453147788 bytes remaining to read
100 313 100 313 0 0 1071 0 --:--:-- --:--:-- --:--:-- 1071
43 2339M 43 1024M 0 0 6073k 0 0:06:34 0:02:52 0:03:42 5869k%
curl: (18) transfer closed with 1379405964 bytes remaining to read
%[!] Failed to download Xcode 11.2.1.
Third trial
bash-3.2$ xcversion install 11.2.1
100 305 100 305 0 0 734 0 --:--:-- --:--:-- --:--:-- 734
77 1315M 77 1024M 0 0 5971k 0 0:03:45 0:02:55 0:00:50 5881k%
curl: (18) transfer closed with 305664140 bytes remaining to read
100 305 100 305 0 0 760 0 --:--:-- --:--:-- --:--:-- 760
100 305 100 305 0 0 760 0 --:--:-- --:--:-- --:--:-- 760
100 291M 100 291M 0 0 5867k 0 0:00:50 0:00:50 --:--:-- 6040k%
%xip: error: The archive “Xcode_11.2.1.xip” can’t be expanded because the selected volume doesn’t have enough free space.
No `Xcode.app(or Xcode-beta.app)` found in XIP. Please remove /Users/Suyeol/Library/Caches/XcodeInstall/Xcode_11.2.1.xip if you suspect a corrupted download or run `xcversion update` to see if the version you tried to install has been pulled by Apple. If none of this is true, please open a new GH issue.
Running on macOS Catalina VPS with about 17GB disk storage available.
I expected that it was not a disk storage problem but it was. It has succeeded after free up disk space.
+1
Same problem here
Can this be fixed please? Xcode is about 10Gb large these days & baby sitting xcversion for hours is counter-productive.
@pronebird See the mentioned PR. Since release 2.6.7 you can use --retry-download-count=x to insert any amount of retries. It wasn't in the release notes unfortunately
So the default retry count is 3?
Shouldn't it retry automatically? One of the reasons I love xcversion is that I don't have to manually deal with Xcode downloads and installs, but for the past month it's been more productive to fire up the browser and grab XCode directly.