Andreas Christoforou         home     posts

Building WebKit

Building WebKit

WebKit is the web browser engine used by Safari, Mail, App Store, and many other apps on macOS and iOS.

Building WebKit requires that you have installed Xcode from App Store and running the following command in Terminal to install the Xcode Command Line Tools.

xcode-select --install

Open the terminal and clone the Webkit project from Github

git clone WebKit
cd Webkit

Running the build command, it will take around 20 minutes to finish the compilation.


You can add the debug flag if you need it and also ccache to improve re-compile times.

./Tools/Scripts/build-webkit --debug --use-ccache

Running WebKit in Safari

./Tools/Scripts/run-safari --debug

Running “Mini browser”, the minibrowser is good enough that you can run your WebKit build and do testing or debugging.

./Tools/Scripts/run-minibrowser --debug