20

I'm trying to install xcode on my mac machine (macOS Catalina) and run

xcode-select --install

but get an alert with message "Can't download the software because of a network problem"

enter image description here

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Milena
  • 886
  • 1
  • 7
  • 18

4 Answers4

19

I've found a solution for macOS Catalina 10.15.3 - to install Xcode CommandLineTools manually (actually I need only this part).

Steps:

  1. Go to https://developer.apple.com/download/more/?=xcode

  2. Download Command Line Tools for Xcode 11.4.1. (the latest one)

  3. Install this package manually

Milena
  • 886
  • 1
  • 7
  • 18
6

Though this is quite an old thread, I would like to mention how I resolved it. This happens when you set the timezone incorrectly. Check whether the timezone is correctly set and it will solve this issue.

John Topley
  • 113,588
  • 46
  • 195
  • 237
4

It may be that the URL used to download the command line tools is set to a different update server than the Apple default. If so:

$ sudo defaults read /Library/Preferences/com.apple.SoftwareUpdate CatalogURL https://macpatch.mycompanydomain.com:443/index.sucatalog

$ sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL

$ xcode-select --install

$ sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL https://macpatch.mycompanydomain.com:443/index.sucatalog

rphv
  • 5,409
  • 3
  • 29
  • 47
-1

Try to run the below command in the mac terminal which will update the Homebrew for Mac os version Mojave 10.14 and update missing packages.

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Refer this page for more info

If the above method didn't work:

Download command line manually from here After download install the package manually.

enter image description here