From fd8bb8776c9e4746458ca3f642b84e186e3eb377 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 15 Jan 2015 15:46:35 +0000 Subject: [PATCH] doctor: accepting the Xcode license requires sudo. --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index d6d26006a8..6239754da8 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -1158,7 +1158,7 @@ end if `/usr/bin/xcrun clang 2>&1` =~ /license/ and not $?.success? then <<-EOS.undent You have not agreed to the Xcode license. Builds will fail! Agree to the license by opening Xcode.app or running: - xcodebuild -license + sudo xcodebuild -license EOS end end