Xcode is not currently available from the Software Update server

后端 未结 15 2242
[愿得一人]
[愿得一人] 2020-11-28 02:01

I have problems with my macport after update to OS X 10.9.

I try to follow this manual https://trac.macports.org/wiki/Migration to fix them.

But when I inst

相关标签:
15条回答
  • 2020-11-28 02:51

    I got the same issue on MacOS Catalina.

    I think I identified the root cause: I have switched the default Apple ID account and the new one was not activated as a Developer account. When I ran the xcode-select --install command, I got the same error as stated in the issue description.

    After reading this post on stackoverflow, I went on https://developer.apple.com/downloads and I was asked to accept Developers terms. I think it enabled my account as a developer one. Then, I tried to run xcode-select --install again and it worked.

    0 讨论(0)
  • 2020-11-28 02:53

    This error can occur if you are using a software update server which doesn't host the required package.

    You can check this by running

    defaults read /Library/Preferences/com.apple.SoftwareUpdate
    

    and seeing if you have an entry called CatalogURL or AppleCatalogURL

    You can point back at the Apple software update server by either removing this entry or using the command

    sudo softwareupdate --clear-catalog
    

    And then run the command line tools install again.

    0 讨论(0)
  • 2020-11-28 02:55

    I solved this by going to the App Store and installing Xcode.

    It was a pretty large 11GB install, so this is probably overkill. But, as a last resort, it seems to have solve my issues. In the middle of the installation (well around 10GB), Mac OS told me there was an update to Command Line Tools for Xcode. Performing this installation won't fix anything until Xcode is fully installed.

    Once the install is done, it should start working (after you accept the license agreement).

    0 讨论(0)
  • 2020-11-28 02:58

    I had to run Xcode.app and agree to the License Agreement

    Setup: Brand new MacBook with Mavericks, then brew install and other c/l type things 'just work'.

    0 讨论(0)
  • 2020-11-28 03:00

    I deleted the command tools directory given by xcode-select -p due to npm gyp error.

    xcode-select failed to install the files with the not available error.

    I ran the Xcode application and the command tools installed as part of the startup.

    npm worked.

    However this didn't fully fix the tools. I had to use xcode-select to switch the path to the Developer directory within the Xcode application directory.

    sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer  
    

    MacOS catalina.

    0 讨论(0)
  • 2020-11-28 03:02

    For OSX 10.11 or more you can download from here https://developer.apple.com/download/more/.

    (The link in the accepted answer doesn't display command line tools for El Capitan (OSX 10.11))

    0 讨论(0)
提交回复
热议问题