defbro icon indicating copy to clipboard operation
defbro copied to clipboard

Full Xcode installation required

Open brejoc opened this issue 2 years ago • 4 comments

When installing defbro via brew install jwbargsten/misc/defbro, I get the following error message:

…
Tapped 1 formula (16 files, 14.1KB).
defbro: A full installation of Xcode.app >= 11.2 is required to compile
this software. Installing just the Command Line Tools is not sufficient.

Xcode can be installed from the App Store.
Error: defbro: An unsatisfied requirement failed this build.

Is there really a full install of Xcode necessary or would the cli tools also be enough?

brejoc avatar Jul 08 '22 09:07 brejoc

I checked it shortly, it unfortunately seems: yes. However, perhaps this pkg could be "bottled", meaning homebrew would use a pre-compiled binary.

jwbargsten avatar Jul 10 '22 21:07 jwbargsten

Having it bottles sounds like a good solution, since a full Xcode installation isn't something everybody is looking forward to. And thanks for looking into this!

brejoc avatar Jul 12 '22 10:07 brejoc

I'd appreciate having a "bottled" package -- I'm trying to use this package to set up an automation to switch default browsers depending on my focus, but I can't install Xcode on my little old MacBook Air without upgrading the system. Since I've only got 8G of RAM, I think I'm better off sticking with an older version of MacOS 😛

megclaypool avatar Aug 08 '22 18:08 megclaypool

OK, I'll see what I can do, I have some time left next week.

jwbargsten avatar Aug 18 '22 13:08 jwbargsten

@jwbargsten thank you for defbro. Did you run into an issue pouring defbro into a homebrew bottle?

LeeBinder avatar Nov 06 '22 20:11 LeeBinder

Yeah, I did. The bottling process is quite simple in itself, but to get everything running was more challenging than expected. Mostly due to lack of documentation or my inability to interpret that documentation.

Anyway, I now published a bottle for big sur. Perhaps somebody can confirm if it works.

jwbargsten avatar Nov 14 '22 07:11 jwbargsten

Well done, @jwbargsten, respect! I can even confirm defbro installation working in Ventura 13.0.1 Intel:

  • defbro -> list of browsers (incl. those on other volumes)
  • changed active browser to Waterfox > verified by double-clicking a .URL file

The resulting cask merely "weighs" 1.5MB. Mighty cool 👍 🥇

LeeBinder avatar Nov 14 '22 21:11 LeeBinder

Cool, nice to hear. I'll close this comment. I'll still investigate if I can create a ARM-based bottle for all M1 owners, but currently homebrew/github actions lack support.

jwbargsten avatar Nov 14 '22 22:11 jwbargsten