Skip to content

Instantly share code, notes, and snippets.

@zabaala
Created July 17, 2023 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zabaala/1dd7e48531ee4f079e8b50a435cc8a8e to your computer and use it in GitHub Desktop.
Save zabaala/1dd7e48531ee4f079e8b50a435cc8a8e to your computer and use it in GitHub Desktop.
How to Setup JavaScriptCore on MacOS 13.4 (mid-2023 version)

How to setup JavaScriptCore on MacOS 13.4

1. Install and configure Xcode

# install xcode command line tool
$ xcode-select --install

# Make sure xcode path is properly set
$ xcode-select -p 
# output: /Applications/Xcode.app/Contents/Developer

# check installed version
$ xcodebuild -version

2. Install cmake

brew install cmake

3. Clone Webkit repository on Github

git clone git://git.webkit.org/WebKit.git WebKit.git && WebKit.git

4. Build Webkit

./Tools/Scripts/build-webkit --tsc-only --debug

5. Test JSCore with REPL Prompt

./WebKitBuild/Debug/bin/jsc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment