Skip to content

Commit aebc757

Browse files
committed
doc: For the Skia build, add the xcode command line tools SDK issue to the troubleshooting
Closes #5043
1 parent 8a19e13 commit aebc757

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/reference/src/advanced/backends_and_renderers.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,19 @@ issues we're aware of and how to resolve them.
136136

137137
The Skia build requires the use of Microsoft Visual Studio 2022 as compiler. Make sure to have the latest patches
138138
to the compiler installed.
139+
140+
* Compilation error on macOS:
141+
142+
The build fails and somewhere in the log output you see this message:
143+
144+
```
145+
cargo:warning=xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
146+
cargo:warning=xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
147+
```
148+
149+
This is due the build process calling `xcrun --show-sdk-platform-version` to determine the SDK version, and that's unfortunately not
150+
supported by the Xcode command line tools. To solve this issue, run the following command once:
151+
152+
```
153+
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
154+
```

0 commit comments

Comments
 (0)