You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing Swift on a fresh macOS install, I can go to swift.org and follow the instructions to install Swift via Swiftly. This is awesome! I soon have swift installed on my system and swift --version works! 🎉
However, actually trying to use it fails, e.g. with a swift package init with the error saying no developer tools were found, I should install them, referring to xcode-select etc.
Swiftly should at least automatically install the developer tools if it needs them otherwise the user experience is a bit jarring and might put people off Swift. Ideally Swiftly wouldn't even need them. Why do I need to know about Xcode and xcrun if I don't want Xcode? Etc
(I'm aware there are plenty of historical reasons why these are all tied together and this is part of a longer journey of Swift decoupling itself from it's Apple-platform-only development and may require changes in Swift)
The text was updated successfully, but these errors were encountered:
Note that the open source macOS toolchains available from swift.org will require at least the command-line tools to be installed so that there is the macOS SDK available. See #312 for an example of the dependency of the toolchain on a libc++.
Initially, it was assumed that because the command-line tools are normally installed on developer machines because things like homebrew depend on it. Swiftly could help the user to get the minimal system dependencies installed like it does for Linux, so that might be the command line tools as a basic dependency.
When installing Swift on a fresh macOS install, I can go to swift.org and follow the instructions to install Swift via Swiftly. This is awesome! I soon have swift installed on my system and
swift --version
works! 🎉However, actually trying to use it fails, e.g. with a
swift package init
with the error saying no developer tools were found, I should install them, referring toxcode-select
etc.Swiftly should at least automatically install the developer tools if it needs them otherwise the user experience is a bit jarring and might put people off Swift. Ideally Swiftly wouldn't even need them. Why do I need to know about Xcode and
xcrun
if I don't want Xcode? Etc(I'm aware there are plenty of historical reasons why these are all tied together and this is part of a longer journey of Swift decoupling itself from it's Apple-platform-only development and may require changes in Swift)
The text was updated successfully, but these errors were encountered: