Problem: Xcode is monolithically huge and 75% of the roughly 40 GB installed is stuff I don't have any use for (SDKs and simulators for every. single. Apple. platform. under. the. sun: iOS, padOS, appleTVOS, watchOS, and eventually glassesOS and carOS.. though, by then, it'll probably be 80 GB)… My laptop has nothing installed (and no documents) and yet it is still incapable of installing the latest versions of Xcode.
- Removing those extra deadweights from the application bundle (under /Contents/Developer/Platforms/) renders the application "corrupted" since the application is signed.
- Any attempt at obtaining
swiftc
requires Xcode:- Compiling the swift project directly requires Xcode.
- Installing swift via homebrew also requires Xcode. (see
https://formulae.brew.sh/formula/swift#default
)
Honestly, I'm surprised that even the open-source community has essentially surrendered everything to the ever-inflating-and-mighty-and-never-wrong Xcode.
Question: Is there any secure way of obtaining the swift compiler on macOS without, Apple forbids, having Xcode?!