0

MacPorts requires XCode. One seems to be only able to install XCode through the App store which requires an Apple Id to install stuff. Is there any way to circumvent this?

  • 2
    apple.stackexchange.com/questions/159612/… See if just installing the CLI tools works or not. xcode-select --installstackoverflow.com/questions/20366125/… – ankii Sep 9 at 12:31
  • You can also obtain Xcode from developer.apple.com/download/more, but I believe that you require an Apple ID to access that too. If you tell me what version of macOS you have, I can download and then upload the version of Xcode you need to a file sharing service. – Sam Sep 9 at 17:42
  • Can you document why MacPorts requires Xcode? Brew,sh installs the command line tools and doesn’t require Xcode. The premise here doesn’t line up to my expectations without some more documentation. Maybe I’m wrong, so no downvote is needed. – bmike yesterday
  • Check @simba 's answer. MacPorts just warns you that xcode is not installed. Most work without xcode. I have yet to run into any issues and I only have the command line tools installed. – Philippe 22 hours ago
2

Only install Xcode CLI tool, since most of the ports work without Xcode although there's a warning during use.

Quote from Google Summer of Code 2019 for MacPorts

Phase out dependency on Xcode (done in the main repo)

MacPorts currently requires a full Xcode installation, even though a lot of ports will install just fine with the Command Line Tools package only. Since we also have a number of ports that need Xcode to build, we cannot completely remove the Xcode dependency. Your task would be to provide a way for maintainers to easily identify ports that depend on Xcode and mark them as such, so MacPorts can warn users without Xcode installed that a port they want to install needs the full Xcode package.

references

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .