Update build doc to Xcode 8.2.1

This commit is contained in:
Kevin Sawicki 2017-01-24 10:49:42 -08:00
parent 91c70a66cb
commit 4f6750a460

View file

@ -4,8 +4,8 @@ Follow the guidelines below for building Electron on macOS.
## Prerequisites ## Prerequisites
* macOS >= 10.8 * macOS >= 10.11.6
* [Xcode](https://developer.apple.com/technologies/tools/) >= 7.3.1 * [Xcode](https://developer.apple.com/technologies/tools/) >= 8.2.1
* [node.js](http://nodejs.org) (external) * [node.js](http://nodejs.org) (external)
If you are using the Python downloaded by Homebrew, you also need to install If you are using the Python downloaded by Homebrew, you also need to install
@ -21,18 +21,24 @@ custom Electron build, you may skip this section.
For certain features (e.g. pinch-zoom) to work properly, you must target the For certain features (e.g. pinch-zoom) to work properly, you must target the
macOS 10.10 SDK. macOS 10.10 SDK.
Official Electron builds are built with [Xcode 7.3.1](http://adcdownload.apple.com/Developer_Tools/Xcode_7.3.1/Xcode_7.3.1.dmg), which does not contain Official Electron builds are built with [Xcode 8.2.1](http://adcdownload.apple.com/Developer_Tools/Xcode_8.2.1/Xcode_8.2.1.xip), which does not contain
the 10.10 SDK by default. To obtain it, first download and mount the the 10.10 SDK by default. To obtain it, first download and mount the
[Xcode 6.4](http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg) [Xcode 6.4](http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg)
DMG. DMG.
Then, assuming that the Xcode 6.4 DMG has been mounted at `/Volumes/Xcode` and Then, assuming that the Xcode 6.4 DMG has been mounted at `/Volumes/Xcode` and
that your Xcode 7.3.1 install is at `/Applications/Xcode.app`, run: that your Xcode 8.2.1 install is at `/Applications/Xcode.app`, run:
```bash ```bash
cp -r /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ cp -r /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
``` ```
You will also need to enable Xcode to build against the 10.10 SDK:
- Open `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist`
- Set the `MinimumSDKVersion` to `10.10`
- Save the file
## Getting the Code ## Getting the Code
```bash ```bash