Installing Xcode 4.3 removes /Developer but doesn't update xcode-select
| Originator: | stephen | ||
| Number: | rdar://10913990 | Date Originated: | 22-Feb-2012 02:55 PM |
| Status: | Duplicate/10681724 | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.3 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: After installing Xcode 4.3 from the Mac App Store, one of the steps asks to remove /Developer since now Xcode 4.3 is self-contained. It's also possible to install the Command Line Tools. However, xcode-select isn't updated to reflect the new location at Applications/Xcode.app/Contents/Developer, which breaks tools using xcode-select to find the correct path, like /usr/bin/opendiff. Steps to Reproduce: - Upgrade Xcode from a previous version to Xcode 4.3 - Allow /Developer to be removed - Attempt to use opendiff to trigger FileMerge from the command line: $ opendiff fileA.m fileB.m Expected Results: - FileMerge opens, showing the differences between the files. Actual Results: - The command errors out with: "Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path." Notes: Simple enough to fix. $ sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!