Open commscheck opened 3 years ago
This hit me as well. Not ideal.
Also, why do I have to install the CLI using brew install robotsandpencils/made/xcodes
?
It would be much better to install the CLI using brew install xcodes
and the GUI via brew install --cask xcodes
like it's intended to be for Homebrew. GUIs are Cask apps, regulary.
somehow the both formulars are the same?
brew cat xcodes
class Xcodes < Formula
desc "Install and switch between multiple versions of Xcode"
homepage "https://github.com/RobotsAndPencils/xcodes"
url "https://github.com/RobotsAndPencils/xcodes.git", tag: "1.0.0"
head "https://github.com/RobotsAndPencils/xcodes.git", branch: "main"
bottle do
root_url 'https://github.com/RobotsAndPencils/xcodes/releases/download/1.0.0'
sha256 cellar: :any_skip_relocation, mojave: "23f4ee4ecac29c8816011895d18da9e78f2ec1fa3184489809d6e126039fa499"
sha256 cellar: :any_skip_relocation, arm64_mojave: "23f4ee4ecac29c8816011895d18da9e78f2ec1fa3184489809d6e126039fa499"
end
def install
system "make", "install", "prefix=#{prefix}"
end
test do
system "#{bin}/xcodes"
end
end
brew cat robotsandpencils/made/xcodes
class Xcodes < Formula
desc "Install and switch between multiple versions of Xcode"
homepage "https://github.com/RobotsAndPencils/xcodes"
url "https://github.com/RobotsAndPencils/xcodes.git", tag: "1.0.0"
head "https://github.com/RobotsAndPencils/xcodes.git", branch: "main"
bottle do
root_url 'https://github.com/RobotsAndPencils/xcodes/releases/download/1.0.0'
sha256 cellar: :any_skip_relocation, mojave: "23f4ee4ecac29c8816011895d18da9e78f2ec1fa3184489809d6e126039fa499"
sha256 cellar: :any_skip_relocation, arm64_mojave: "23f4ee4ecac29c8816011895d18da9e78f2ec1fa3184489809d6e126039fa499"
end
def install
system "make", "install", "prefix=#{prefix}"
end
test do
system "#{bin}/xcodes"
end
end
@muescha Thanks for confirming my observation. I had to find this issue sorely to find out how to install the CLI via Homebrew. I think it was a poor decision and I'm afraid there is no turning back, or is it?
Same trouble/observation here. Expected xcodes
to get shell version, but then ended up with the GUI app cask. Tried GUI and it presented problems such as a hang on unarchiving (reported) and tried to go back here to see what's going on... Headache.
Steps:
brew install --cask xcodes
to install the GUI appbrew install robotsandpencils/made/xcodes
to install the CLIBehaviour:
Brew output during install:
I assume it's the "skipping link" bit that's the issue, maybe because the formula and the cask have the same name?