From 348d0eb05c9d6482d910ccf0bc0817f872059aef Mon Sep 17 00:00:00 2001
From: Jack Nagel <jacknagel@gmail.com>
Date: Fri, 2 May 2014 16:50:25 -0500
Subject: [PATCH] doctor: use Xcode.bundle_path

---
 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 e5b64a5966..9c8ee5d92e 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -440,7 +440,7 @@ end
 
 def check_xcode_select_path
   if not MacOS::CLT.installed? and not File.file? "#{MacOS.active_developer_dir}/usr/bin/xcodebuild"
-    path = MacOS.app_with_bundle_id(MacOS::Xcode::V4_BUNDLE_ID, MacOS::Xcode::V3_BUNDLE_ID)
+    path = MacOS::Xcode.bundle_path
     path = '/Developer' if path.nil? or not path.directory?
     <<-EOS.undent
       Your Xcode is configured with an invalid path.
-- 
GitLab