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"
Though this is a quiet 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.
I've found a solution for macOS Catalina 10.15.3 - to install Xcode CommandLineTools manually (actually I need only this part).
Steps:
Go to https://developer.apple.com/download/more/?=xcode
Download Command Line Tools for Xcode 11.4.1. (the latest one)
Install this package manually
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With