Skip to content

Commit

Permalink
doc: For the Skia build, add the xcode command line tools SDK issue t…
Browse files Browse the repository at this point in the history
…o the troubleshooting

Closes #5043
  • Loading branch information
tronical committed Apr 12, 2024
1 parent 8a19e13 commit aebc757
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/reference/src/advanced/backends_and_renderers.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,19 @@ issues we're aware of and how to resolve them.

The Skia build requires the use of Microsoft Visual Studio 2022 as compiler. Make sure to have the latest patches
to the compiler installed.

* Compilation error on macOS:

The build fails and somewhere in the log output you see this message:

```
cargo:warning=xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
cargo:warning=xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
```

This is due the build process calling `xcrun --show-sdk-platform-version` to determine the SDK version, and that's unfortunately not
supported by the Xcode command line tools. To solve this issue, run the following command once:

```
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
```

0 comments on commit aebc757

Please sign in to comment.