doctor: use Xcode.bundle_path

This commit is contained in:
Jack Nagel 2014-05-02 16:50:25 -05:00
parent f6d5d812dc
commit 348d0eb05c

View File

@ -440,7 +440,7 @@ end
def check_xcode_select_path def check_xcode_select_path
if not MacOS::CLT.installed? and not File.file? "#{MacOS.active_developer_dir}/usr/bin/xcodebuild" 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? path = '/Developer' if path.nil? or not path.directory?
<<-EOS.undent <<-EOS.undent
Your Xcode is configured with an invalid path. Your Xcode is configured with an invalid path.