Comments (8)
Could you describe your build environment a little? It looks like there's an issue with the Xcode installation. Note the following two error messages from your log:
xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
What does xcrun --show-sdk-path --sdk macosx
show for you? Does the directory it prints exist and have an SDK installed?
Perhaps you may want to switch to the default SDK using sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
?
from slint.
@tronical Running xcrun --show-sdk-path --sdk macosx
outputs /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
. It does have an sdk installed.
As for ninja, I installed it from homebrew
from slint.
Thanks for the quick response. Could you also try running xcrun --show-sdk-platform-version
?
from slint.
@tronical Sure. Here's what it prints
▶ xcrun --show-sdk-platform-version
xcrun: error: unable to lookup item 'PlatformVersion' from command line tools installation
xcrun: error: unable to lookup item 'PlatformVersion' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
from slint.
Ok, and that's the source of the build issue you're seeing. This command should not produce the error but print a version. It looks like the macOS SDK installed in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk on your machine is incomplete somehow (or corrupted).
from slint.
Could you run ls -ld /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
? I wonder what your MacOSX.sdk
symlink points to. It looks like 10.7 maybe? Do you have an explicit macOS deployment target configured?
from slint.
Do you have an explicit macOS deployment target configured?
I don't. Here's where the symlink points:
▶ ls -ld /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
lrwxr-xr-x 1 root wheel 14 Feb 7 12:46 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -> MacOSX14.2.sdk
▶ realpath /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk
from slint.
Thanks. I can reproduce this. It seems that xcrun --show-sdk-path --sdk macosx
is not supported with the command line tools alone (see also rust-lang/cc-rs#1001). If you run sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
the issue should be resolved and the build should work.
I'll add this to the known issues docs for the Skia renderer build.
from slint.
Related Issues (20)
- Add the aibility to reference a component from another one
- [slint-lsp/vscode] action to open the element's document at the cursor's position HOT 4
- OpenCV's highgui::select_roi() function does not render fully when used with Slint (Rust)
- TimePicker widget HOT 2
- LineEdit Widget Error HOT 2
- Quickstart Rust Example Code Display Defect HOT 2
- Using Path in an embedded project will result in a compilation error. HOT 1
- is it possible to express a tree in this type system? HOT 1
- Path: Can't parse commands containing scientific notation HOT 3
- Performance issues using imports vs single .slint file HOT 6
- RFC: date-time builtin type HOT 2
- Component catalogue in Design Mode includes component under preview, resulting in compilation errors on drop HOT 2
- Component catalogue shows user defined duplicates in gallery demo HOT 1
- Built-in VirtualKeyboard element for improved support for in-process embedded virtual keyboards
- A bug with booleans, rust slint. HOT 3
- Android: double-clicked callback not work on TouchArea HOT 2
- Android: default-font-family not work
- Support libraries in LSP
- Compiler panic compiling `init` callback from a component inlined into a repeater HOT 1
- Include LTS Version as slintpad dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slint.