Coder Social home page Coder Social logo

Comments (8)

tronical avatar tronical commented on June 23, 2024

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.

mitioshi avatar mitioshi commented on June 23, 2024

@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.

tronical avatar tronical commented on June 23, 2024

Thanks for the quick response. Could you also try running xcrun --show-sdk-platform-version?

from slint.

mitioshi avatar mitioshi commented on June 23, 2024

@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.

tronical avatar tronical commented on June 23, 2024

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.

tronical avatar tronical commented on June 23, 2024

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.

mitioshi avatar mitioshi commented on June 23, 2024

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.

tronical avatar tronical commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.