Xcode For Mac 10.11

Video instructions for Mac OS 10.11 (El Capitan) with Xcode 7 Rough video transcript: Hello, and welcome to this screencast on how to install the GNU C, C and Fortran compilers for Mac OS 10.11 (El Capitan).

  • Xcode - Wikipedia has a complete compatibility listing for Xcode, what version works with which version of OS X. It also includes a listing of versions of Xcode’s support libraries for things like iOS and iWatch, for each version.
  • What is Xcode for Mac. Xcode includes everything developers need to create great applications for Mac, iPhone, iPad, and Apple Watch. Xcode provides developers a unified workflow for user interface design, coding, testing, and debugging. The Xcode IDE combined with the Cocoa frameworks and Swift programming language make developing apps easier.
  • All downloads are hosted by Apple. Links on this site take you directly to Apple’s download pages. This is not an official Apple website. Please consider donating to help maintain it.
  • So this article is applicable to MacOS 10.13 High Sierra, 10.12 Sierra, OS X 10.11 El Capitan, OS X 10.10 Yosemite, MacOS X 10.9 and later versions. Mac users running earlier versions of OS X can access this article Xcode Command Line Tools.


Xcode

Mandatory tools

In order to compile R for macOS, you will need the following tools:

Xcode provides everything developers need to create great applications for Mac, iPhone, and iPad. Xcode has unified user interface design, coding, testing, and debugging all within a single window. Xcode is a great addition for those who are looking for a reliable tool for creating applications for Mac OS as well as the iOS for iPhones and iPad. Xcode was first released in 2003, but since then, the application has definitely come a long way in providing efficient development platforms to developers.

  • Xcode developer tools from Apple
    Xcode can be obtained from Apple AppStore and the Xcode developer page. Older versions are available in the 'more' section of the Developer pages (Apple developer account necessary).
  • GNU Fortran compiler
    Unfortunately Xcode doesn't contain a Fortran compiler, therefore you will have to install one. We recommend official GNU Fortran binaries from F.X.Coudert. CRAN High-Sierra builds currently use GNU Gortran 8.2 from that page (note that even though compiled for Mojave it is compatible with High Sierra).
    gfortran-8.2-Mojave.dmg (ca. 87MB, GNU Fortran 8.2 from F.X.Coudert)
    SHA256 hash: 81d379231ba5671a5ef1b7832531f53be5a1c651701a61d87e1d877c4f06d369

    This is a copy of GNU Fortran 8.2 build from https://github.com/fxcoudert/gfortran-for-macOS/releases

    Make sure you add /usr/local/gfortran/bin to your PATH in order to use this compiler. This can be done, e.g. by
    export PATH=$PATH:/usr/local/gfortran/bin

NOTE: In order to retain compatibility with native R we recommend using above tools. Although it is possible to compile R using tools from other package managers such as Homebrew, MacPorts or Fink, such binaries are by definition incompatible with macOS native libraries and applications. If you choose one of those package managers, make sure you compile everything

At the heart of Xcode is a suite of powerful compilers and build tools, all designed to identify bugs and suggest changes to help you get your projects up and running fast. The graphical debugger is an invaluable tool for identifying problems with your code and helping you fix them quickly. Use it to change the value of variables on the fly, evaluate expressions, and set breakpoints that stop.

using those tools including R and all packages and libraries you intend to use.

Mandatory libraries

Old versions of R provided fall-back versions of dependend libraries. This is no longer the case, the following libraries are not present in most recent macOS (or are too old) and have to be installed before R can be compiled:

Install Xcode For Mac 10.11.6

  • liblzma (aka xz-utils) https://tukaani.org/xz/
  • PCRE2https://www.pcre.org/ built with --disable-jit (JIT is buggy on macOS)
  • bzip2 may need to be installed if the system version is too old

Xcode For Mac Download

Download Xcode For Mac Os X 10.11.6

Binaries for the above libraries are available in /libs-4 as well as many others that are useful for R packages (see optional libraries below).

Note that all binaries used by CRAN are built using the recipes system and thus can be trasparently re-built accordingly.

Optional tools and libraries

The following tools and libraries are optional. R can be compiled without them, but they provide additional capabilities to R.
  • LaTeX
    In order to produce documentation, LaTeX is necessary. It can be obtained from several places, for example as a part of MacTeX.
  • GNU readline,
    Although Mac OS X comes with readline-replacement library, it lack some functionality like backward search etc. Therefore many user prefer GNU readline. For macOS 10.13 download see libs-4 on this site (for older OS X verions see libs).
  • PNG, JPEG and TIFF libraries
    If bitmap manipulation libraries are present, R will add graphics device support for those bitmap formats. There are also other package that take advantage of PNG and JPEG, so it is in general a good idea to install them.Again, they are available in /libs-4 (new) and /libs (old).
  • cairo
    R support for cairo graphics can be enabled by installing cario and dependent libraries (also provided in /libs-4).
  • subversion
    If you want to check out R from the SVN repository, you will need subversion. It was included in Xcode 9 and earlier, but is no longer. We are providing a signed binary:
    subversion-1.14.0-darwin15.6.tar.gz(SHA1: 9dab09d6cf608bea6224bdc3ec3e95893e4e9800)
    which works on OS X 10.11 (El Capitan) and higher, is relocatable, i.e., you can put it anywhere you want since it only depends on system libraries.
    (Static build with: apr-1.7.0, apr-util-1.6.1, openssl-1.1.1g, serf-1.3.9, sqlite-3.33.0, subversion-1.14.0)
    This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)
(sources for open source software not linked directly)

Old version of this page for much older OS X versions.

Disclaimer

All software is provided 'as is' and any express or implied warranties, including, but but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the publisher, copyright owner or contributors be liable for any direct, indirect, incidental,special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Lickability has released Buildwatch for Xcode, its new developer tool for macOS. It’s a menu bar app that lets developers keep an eye on their Xcode compile times throughout the day.

According to the folks at Lickability, it gives developers more insight into how their time and resources are being used throughout the app development process, and serves to help them make decisions about equipment and fix bottlenecks. Clicking the watch icon in the menu bar reveals a graph that breaks down your hour, day, or week and more.

Xcode Tools For Mac Versions

Buildwatch for Xcode costs US$9.99 and is available worldwide exclusively through the Mac App Store in the Developer Tools category. It requires macOS 10.14 or later.

Xcode For Mac 10.6.8