-
Notifications
You must be signed in to change notification settings - Fork 64
Ensure the macOS SDK exists at install time #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
49221af to
cff35d2
Compare
cff35d2 to
66c91cb
Compare
Sources/MacOSPlatform/MacOS.swift
Outdated
| // shell script for installing developer tools on macOS. | ||
| if !result.terminationStatus.isSuccess { | ||
| await ctx.print(""" | ||
| \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 developer tools: `xcode-select --install`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| \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 developer tools: `xcode-select --install`. | |
| \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 `xcode-select --install`. |
Sources/MacOSPlatform/MacOS.swift
Outdated
| // shell script for installing developer tools on macOS. | ||
| if !result.terminationStatus.isSuccess { | ||
| await ctx.print(""" | ||
| \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 developer tools: `xcode-select --install`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: To make it easier for users to copy/paste the command it should go an a separate line here.
|
Are you sure the command-line tools install includes Foundation and XCTest? I installed those CLI tools alone and I was able to build against |
|
Foundation is there in the CLT's version of the macOS SDK, but not XCTest. |
|
@justice-adams-apple can you cherry-pick this on release/1.1? |
|
I think the core libraries that require Xcode should be listed out too, as many Swift packages won't compile or test for macOS without XCTest. |
* Ensure the macOS SDK exists at install time * update warning messaging * remove backticks (cherry picked from commit 20ceb47)
The warning that the end-user will receive is the following (currently):