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
[Cherry-pick] Ensure the macOS SDK exists at install time (#481)
* Ensure the macOS SDK exists at install time (#480)
* Ensure the macOS SDK exists at install time
* update warning messaging
* remove backticks
(cherry picked from commit 20ceb47)
* Fix SDK logic for 1.1
// Simply print warnings to the user stdout rather than returning a shell script, as there is not a simple
58
+
// shell script for installing developer tools on macOS.
59
+
await ctx.print("""
60
+
\nWARNING: Could not find a macOS SDK on the system. A macOS SDK is required for the toolchain to work correctly. Please install one via Xcode (https://developer.apple.com/xcode) or run the following command on your machine to install the Command Line Tools for Xcode:
61
+
xcode-select --install
62
+
63
+
More information on installing the Command Line Tools can be found here: https://developer.apple.com/documentation/xcode/installing-the-command-line-tools/#Install-the-Command-Line-Tools-package-in-Terminal. If developer tools are located at a non-default location on disk, use the following command to specify the Xcode that you wish to use for Command Line Tools for Xcode:
await ctx.print("WARNING: Could not read output of '/usr/bin/xcrun --show-sdk-path --sdk macosx'. Ensure your macOS SDK is installed properly for the swift toolchain to work.")
0 commit comments