Skip to content
Prev 10093 / 15075 Next

Xcode 5

Xcode was released last week, although it did not show up as an update 
for me until this.  It may be available only for Mountain Lion: the 
command-line tools seems only to be.

As expected, the compilers used for the CRAN binary build, llvm-gcc-4.2 
and llvm-g++-4.2, are not part of Xcode 5.  Less expected was that 
updating to Xcode 5 did not remove them, at least for me.

All that is needed to build R or install packages is the 'Command-line 
tools for Xcode'  These can be downloaded from 
https://developer.apple.com/downloads/index.action (registering your 
Apple ID for that site is needed).   New users could download and install

Command-line tools (OS X Mountain Lion) for Xcode (April 2013)
Command-line tools (OS X Mountain Lion) for Xcode (September 2013)

and install them in that order.

We have been testing building R and packages with clang since R 3.0.0, 
and details of how to do so are in the 'R Installation and 
Administration Manual'.  Xcode 5 updates to

tystie% clang --version
Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)

whatever '3.3svn' means (3.2svn meant 3.1+epsilon).