XCode 5.0.1 automatic tool install does not create /use/include, but xcode-select --install does

Originator:Per.Mildner.usenet
Number:rdar://15303012 Date Originated:23-Oct-2013 11:43 PM
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:always
 
Summary:
The first time XCode 5.0.1 is started (on OS X 10.9) it installs command line tools, e.g. so that the cc command will work. This is automatic and there it is no longer possible to explicitly install the command line tools from within XCode.

The automatic install done by XCode does not create the /usr/include/ directory.

The /usr/include/ directory is installed by any of the following
1. xcode-select --install (on OS X 10.9)
2. cc --version on OS X 10.9 without XCode will launch a dialog offering to install the command line tools, which will behave as (1).
3. Earlier versions of OS X and XCode (and possibly XCode 5.0.1 on earlier OS X) when the "Command Line Tools" was installed from the Preferences menu item (Downloads/Components)

Steps to Reproduce:
1. Install OS X 10.9
2. Copy XCode 5.0.1 to Applications.
3. Launch XCode 5.0.1. Let it install the components at startup.
4. There is no /usr/include/
5. xcode-select --install
6. Now there is a /usr/include/

Expected Results:
I expect the automatic install performed by XCode launch to install the same things as xcode-select --install.

For some applications, e.g. installing third-party compilers, it is important that /usr/include/ exists so I think it is important that XCode is changed to install /usr/include/ (as opposed to making the behavior identical by changing xcode-select --install to not create /usr/include/)

Actual Results:
The automatic install performed by XCode launch does not create /usr/include/ but xcode-select --install does create /usr/include/

Version:
OS X 10.9 (13A603), XCode 5.0.1 (5A2053)

Notes:
Discovered while installing gcc with MacPorts, see <https://trac.macports.org/ticket/40809#comment:8>.

Configuration:


Attachments:

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!