Skip to content

Commit 099c6a9

Browse files
committed
Sync BuildOptions.md with project README
Update the sections on building for Apple platforms, now that configure-xcode-for-embedded-development has been removed.
1 parent 05eaefd commit 099c6a9

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

docs/Build & Debug/BuildOptions.md

+20-18
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,28 @@
22

33
An in depth guide of build options for WebKit.
44

5-
## Building macOS Port
5+
## Building for Apple platforms
66

77
Install Xcode and its command line tools if you haven't done so already:
88

9-
1. **Install Xcode** Get Xcode from [here](https://developer.apple.com/downloads). To build WebKit for OS X, Xcode 5.1.1 or later is required. To build WebKit for iOS Simulator, Xcode 7 or later is required.
9+
1. **Install Xcode** Get Xcode from https://developer.apple.com/downloads. To build WebKit for OS X, Xcode 5.1.1 or later is required. To build WebKit for iOS Simulator, Xcode 7 or later is required.
1010
2. **Install the Xcode Command Line Tools** In Terminal, run the command: `xcode-select --install`
1111

12-
Run the following command to build a debug build with debugging symbols and assertions:
12+
Run the following command to build a macOS debug build with debugging symbols and assertions:
1313

1414
```
1515
Tools/Scripts/build-webkit --debug
1616
```
1717

1818
For performance testing, and other purposes, use `--release` instead.
1919

20-
## Using Xcode
20+
### Embedded Builds
2121

22-
You can open `WebKit.xcworkspace` to build and debug WebKit within Xcode.
23-
24-
If you don't use a custom build location in Xcode preferences, you have to update the workspace settings to use `WebKitBuild` directory. In menu bar, choose File > Workspace Settings, then click the Advanced button, select "Custom", "Relative to Workspace", and enter `WebKitBuild` for both Products and Intermediates.
25-
26-
## Embedded Builds
22+
To build for an embedded platform like iOS, tvOS, or watchOS, pass a platform
23+
argument to `build-webkit`.
2724

28-
iOS, tvOS and watchOS are all considered embedded builds. The first time after you install a new Xcode, you will need to run:
29-
30-
```
31-
sudo Tools/Scripts/configure-xcode-for-embedded-development
32-
```
33-
34-
Without this step, you will see the error message: "`target specifies product type ‘com.apple.product-type.tool’, but there’s no such product type for the ‘iphonesimulator’ platform.`" when building target `JSCLLIntOffsetsExtractor` of project `JavaScriptCore`.
35-
36-
Run the following command to build a debug build with debugging symbols and assertions for embedded simulators:
25+
For example, to build a debug build with debugging symbols and assertions for
26+
embedded simulators:
3727

3828
```
3929
Tools/Scripts/build-webkit --debug --<platform>-simulator
@@ -46,6 +36,18 @@ Tools/Scripts/build-webkit --debug --<platform>-device
4636

4737
where `platform` is `ios`, `tvos` or `watchos`.
4838

39+
### Using Xcode
40+
41+
You can open `WebKit.xcworkspace` to build and debug WebKit within Xcode.
42+
Select the "Everything up to WebKit + Tools" scheme to build the entire
43+
project.
44+
45+
If you don't use a custom build location in Xcode preferences, you have to
46+
update the workspace settings to use `WebKitBuild` directory. In menu bar,
47+
choose File > Workspace Settings, then click the Advanced button, select
48+
"Custom", "Relative to Workspace", and enter `WebKitBuild` for both Products
49+
and Intermediates.
50+
4951
## Building the GTK Port
5052

5153
For production builds:

0 commit comments

Comments
 (0)