MacOS Prerequisites
October 15, 2025 ยท View on GitHub
These instructions will lead you through preparing to build the diagnostics repo on macOS. We'll start by showing how to set up your environment from scratch.
Environment
These instructions were validated on macOS 10.12.6 (Sierra) and Xcode 9.2.
Git Setup
Clone the diagnostics repository (either upstream or a fork).
git clone https://github.com/dotnet/diagnostics
CMake
This repo has a dependency on CMake for the build. You can download it from CMake downloads.
Alternatively, you can install CMake from Homebrew.
brew install cmake
Building
In the root of the diagnostics repo run:
./build.sh
This will build SOS, the tests and the SOS plugin (libsosplugin.dylib) for the Xcode (9.2) version of lldb (swift 4.0) on the device.
For later versions of macOS/Xcode/lldb is TBD.
Loading solution file
For a better dev inner loop experience, load build.sln at the root of the repository into VSCode.
This file is generated from the build.proj traversal project and can be regenerated/updated using:
./eng/generate-sln.sh