You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Build & Debug/BuildOptions.md
+20-18
Original file line number
Diff line number
Diff line change
@@ -2,38 +2,28 @@
2
2
3
3
An in depth guide of build options for WebKit.
4
4
5
-
## Building macOS Port
5
+
## Building for Apple platforms
6
6
7
7
Install Xcode and its command line tools if you haven't done so already:
8
8
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.
10
10
2.**Install the Xcode Command Line Tools** In Terminal, run the command: `xcode-select --install`
11
11
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:
13
13
14
14
```
15
15
Tools/Scripts/build-webkit --debug
16
16
```
17
17
18
18
For performance testing, and other purposes, use `--release` instead.
19
19
20
-
##Using Xcode
20
+
### Embedded Builds
21
21
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`.
27
24
28
-
iOS, tvOS and watchOS are all considered embedded builds. The first time after you install a new Xcode, you will need to run:
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
0 commit comments