Closed Bug 901278 Opened 12 years ago Closed 12 years ago

Xcode5-DPx/Xcode5 not recognized by bootstrap.

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
minor

Tracking

(firefox27 fixed, firefox-esr24 fixed, b2g-v1.2 fixed)

RESOLVED FIXED
mozilla27
Tracking Status
firefox27 --- fixed
firefox-esr24 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: jsbruner, Assigned: gps)

References

Details

(Whiteboard: [see_comment_4_for_fix])

Attachments

(1 file)

The bootstrap script does not check for Xcode-DPx (where x is some DP version). Because of this the bootstrap script will stop and force you to either change Xcode-DPx's name to Xcode or download the normal Xcode. This is especially a problem on the developer preview of Mavericks, since the old Xcode is not even allowed to be installed. We should allow bootstrap to use Xcode-DPx as long as it is in the Applications directory.
Correction, this is about "Xcode5-DPx" and "Xcode5". I'm guessing the Xcode5 is the real issue.
Summary: Xcode-DPx not recognized by bootstrap. → Xcode5-DPx/Xcode5 not recognized by bootstrap.
Can you please provide the necessary context to fix this? e.g. what are the actual directory names and/or version numbers? Can you provide the output from the bootstrapper demonstrating the error?
Flags: needinfo?(josiah)
(In reply to Gregory Szorc [:gps] from comment #2) > Can you please provide the necessary context to fix this? e.g. what are the > actual directory names and/or version numbers? Can you provide the output > from the bootstrapper demonstrating the error? In /Applications/ there is a Xcode5-DP4.app. Command line tools have been installed. I run the boostrap command in ~/Development/Mozilla/. I can't remember the exact output and can't test it currently since I'm on a different machine right now, but it was something along the lines of: "Xcode not installed Xcode is required to build Firefox, please install Xcode and try again" or something like that. It opens up Xcode in the Mac App Store, but it won't install on Mavericks. This is on OS X 10.9 DP 4. Though it happens on every DP version.
Flags: needinfo?(josiah)
You have to run xcode-select -p /Applications/Xcode5-DPX.app first. Then the right paths and aliases have been setup and the script finds Xcode just fine.
(In reply to Stefan Arentz [:st3fan] from comment #4) > You have to run xcode-select -p /Applications/Xcode5-DPX.app first. Then the > right paths and aliases have been setup and the script finds Xcode just fine. Ah, cool. Forgot about that. Thanks. Marking as RESOLVED.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Whiteboard: [see_comment_4_for_fix]
I installed Mavericks and encountered this issue. Might as well fix it.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I installed a developer preview of Mavericks and was able to reproduce this bug. This patch appears to fix it for me.
Attachment #805611 - Flags: review?(mshal)
Assignee: nobody → gps
Note that, in my (rather limited) experience, xcode-select --print-path *always* returns incorrect information on OS X 10.9 until xcode-select --switch has been run at least once. If I remember right, this incorrect information is /Library/Developer/CommandLineTools.
(In reply to Steven Michaud from comment #8) > Note that, in my (rather limited) experience, xcode-select --print-path > *always* returns incorrect information on OS X 10.9 until xcode-select > --switch has been run at least once. > > If I remember right, this incorrect information is > /Library/Developer/CommandLineTools. That's why I check for ".app/" in the returned path :)
Comment on attachment 805611 [details] [diff] [review] More intelligently detect installed Xcode Looks good!
Attachment #805611 - Flags: review?(mshal) → review+
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Just a quick not that OS X 10.9 GM was released together with Xcode 5.0.1 GM. The latter is now simply named 'Xcode.app' and the 'installer' encourages you to drag it to /Applications/ .. so there should be no special cases or checks needed.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: