Skip to content
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

diagnostic: check if Xcode needs CLT installed. #3453

Merged
merged 2 commits into from
Nov 18, 2017
Merged

diagnostic: check if Xcode needs CLT installed. #3453

merged 2 commits into from
Nov 18, 2017

Conversation

MikeMcQuaid
Copy link
Member

Require the CLT on all but the latest version of macOS to avoid the continuous workarounds for SDK weirdness.

def latest_version?
version == latest_version
end

def prerelease?
# TODO: bump version when new OS is released
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should relocate the comment

@ilovezfs
Copy link
Contributor

If you're using Xcode 10 on 10.13, and if we haven't bumped the latest_version to 10.14 yet because 10.14 is still pre-release, then I think the CLT needs to be required. The reason is that Xcode 10 will have the 10.14 SDK.

i.e. it's OK not to have CLT if your macOS version == macOS 10.13 && your Xcode version < Xcode 10

@@ -31,9 +31,17 @@ def full_version=(version)
@version = nil
end

def latest_version
Version.new "10.13"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checking that these versions won't ever have a patch number (10.13.1)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gets compared to version not full_version so it should be ok I think

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it looks like version just has 10.minor

https://github.com/Homebrew/brew/blob/master/Library/Homebrew/os/mac.rb#L19-L21

thanks!

Require the CLT on all but the latest version of macOS to avoid the
continuous workarounds for SDK weirdness.
@MikeMcQuaid MikeMcQuaid merged commit 46bc5ec into Homebrew:master Nov 18, 2017
@MikeMcQuaid MikeMcQuaid deleted the check_if_xcode_needs_clt_installed branch November 18, 2017 08:50
@zenspider
Copy link

zenspider commented Dec 7, 2017

The error message for this patch is terribly confusing and diverts people from the actual problem/solution.

brew: “Xcode alone is not sufficient on Sierra”

versus:

xcode-select: “command line tools are already installed”

There needs to be a proper distinction between "Xcode alone" vs "you don't have the latest SDK"...

Also, why do I need the latest SDK if I'm building for my current OS revision? Especially considering the SDK version doesn't determine build-ability? 99+% of the ports don't even touch the SDK, do they?

@MikeMcQuaid
Copy link
Member Author

The error message for this patch is terribly confusing

Original unedited message that I got emailed "The error message for this patch is terrible".

Also, why do I need the latest SDK if I'm building for my current OS revision? Especially considering the SDK version doesn't determine build-ability? 99+% of the ports don't even touch the SDK, do they?

I have no interest in answering your questions if you are going to be rude.

@Homebrew Homebrew locked and limited conversation to collaborators Dec 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants