unoplatform / uno.check

CLI tool to setup your environment to build Uno Platform apps
https://platform.uno
31 stars 18 forks source link

uno-check is unable to find my XCode 15.4 installation #276

Closed chenzhekl closed 4 months ago

chenzhekl commented 4 months ago

Every time I run uno-check, it prompts me to fix xcode installation. This is the message:

🔎 XCode 15.0.1 Checkup...

💉 Recommendation: Run xcode-select --install

🔔 Attempt to fix? [y/n] (y): 

I have a working xcode installation, which can be verified by xcode-select -p

$ xcode-select -p

/Library/Developer/CommandLineTools
jeromelaban commented 4 months ago

Thanks for the report. Can you run with --verbose and post the logs?

chenzhekl commented 4 months ago

Hi @jeromelaban , Thanks for your reply. This is the relevant output with --verbose

🔎 XCode 15.0.1 Checkup...
SHELL: /bin/zsh /var/folders/fh/4480kflx6wdcnj2tfmwh4cj40000gp/T/tmpLtINdJ.tmp
/Library/Developer/CommandLineTools

💉 Recommendation: Run xcode-select --install

🔔 Attempt to fix? [y/n] (y): n

By the way, this is my folder structure of /Library/Developer/CommandLineTools

~ % tree -L 3 /Library/Developer/CommandLineTools
/Library/Developer/CommandLineTools
├── Library
│   ├── Developer
│   │   └── Acknowledgments.pdf
│   ├── Frameworks
│   │   └── Python3.framework
│   └── PrivateFrameworks
│       └── LLDB.framework
├── SDKs
│   ├── MacOSX.sdk -> MacOSX14.4.sdk
│   ├── MacOSX12.3.sdk
│   │   ├── Entitlements.plist
│   │   ├── SDKSettings.json
│   │   ├── SDKSettings.plist
│   │   ├── System
│   │   └── usr
│   ├── MacOSX12.sdk -> MacOSX12.3.sdk
│   ├── MacOSX13.3.sdk
│   │   ├── Entitlements.plist
│   │   ├── SDKSettings.json
│   │   ├── SDKSettings.plist
│   │   ├── System
│   │   └── usr
│   ├── MacOSX13.sdk -> MacOSX13.3.sdk
│   ├── MacOSX14.4.sdk
│   │   ├── Entitlements.plist
│   │   ├── SDKSettings.json
│   │   ├── SDKSettings.plist
│   │   ├── System
│   │   └── usr
│   └── MacOSX14.sdk -> MacOSX14.4.sdk
└── usr
    ├── bin
    │   ├── 2to3 -> ../../Library/Frameworks/Python3.framework/Versions/3.9/bin/2to3
    │   ├── 2to3-3.9 -> ../../Library/Frameworks/Python3.framework/Versions/3.9/bin/2to3-3.9
    │   ├── DeRez
    │   ├── GetFileInfo
    │   ├── ResMerger
    │   ├── Rez
    │   ├── SetFile
    │   ├── SplitForks
    │   ├── ar
    │   ├── as
    │   ├── asa
    │   ├── bison
    │   ├── bitcode_strip
    │   ├── c++ -> clang
    │   ├── c++filt -> llvm-cxxfilt
    │   ├── c89
    │   ├── c99
    │   ├── cache-build-session
    │   ├── cc -> clang
    │   ├── clang
    │   ├── clang++ -> clang
    │   ├── clang-cache -> clang
    │   ├── clang-stat-cache
    │   ├── clangd
    │   ├── cmpdylib
    │   ├── codesign_allocate
    │   ├── codesign_allocate-p -> codesign_allocate
    │   ├── cpp
    │   ├── crashlog -> ../../../SharedFrameworks/LLDB.framework/Versions/Current/Resources/Python/lldb/macosx/crashlog.py
    │   ├── ctags
    │   ├── ctf_insert
    │   ├── dsymutil
    │   ├── dwarfdump -> llvm-dwarfdump
    │   ├── flex
    │   ├── flex++
    │   ├── g++ -> gcc
    │   ├── gatherheaderdoc
    │   ├── gcc
    │   ├── gcov -> llvm-cov
    │   ├── git
    │   ├── git-receive-pack -> git
    │   ├── git-shell
    │   ├── git-upload-archive -> git
    │   ├── git-upload-pack -> git
    │   ├── gm4
    │   ├── gnumake
    │   ├── gperf
    │   ├── hdxml2manxml
    │   ├── headerdoc2html
    │   ├── indent
    │   ├── install_name_tool
    │   ├── ld
    │   ├── ld-classic
    │   ├── lex
    │   ├── libtool
    │   ├── lipo
    │   ├── lldb
    │   ├── llvm-cov
    │   ├── llvm-cxxfilt
    │   ├── llvm-dwarfdump
    │   ├── llvm-nm
    │   ├── llvm-objdump
    │   ├── llvm-otool
    │   ├── llvm-profdata
    │   ├── llvm-size
    │   ├── lorder
    │   ├── make
    │   ├── mig
    │   ├── nm -> llvm-nm
    │   ├── nm-classic
    │   ├── nmedit
    │   ├── notarytool
    │   ├── objdump -> llvm-objdump
    │   ├── otool -> llvm-otool
    │   ├── otool-classic
    │   ├── pagestuff
    │   ├── pip3
    │   ├── pip3.9
    │   ├── pydoc3 -> ../../Library/Frameworks/Python3.framework/Versions/3.9/bin/pydoc3
    │   ├── pydoc3.9 -> ../../Library/Frameworks/Python3.framework/Versions/3.9/bin/pydoc3.9
    │   ├── python3 -> ../../Library/Frameworks/Python3.framework/Versions/3.9/bin/python3
    │   ├── python3.9 -> ../../Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9
    │   ├── ranlib -> libtool
    │   ├── resolveLinks
    │   ├── rpcgen
    │   ├── scalar
    │   ├── segedit
    │   ├── size -> size-classic
    │   ├── size-classic
    │   ├── sourcekit-lsp
    │   ├── stapler
    │   ├── strings
    │   ├── strip
    │   ├── swift -> swift-frontend
    │   ├── swift-api-digester -> swift-frontend
    │   ├── swift-api-extract -> swift-frontend
    │   ├── swift-build -> swift-package
    │   ├── swift-cache-tool -> swift-frontend
    │   ├── swift-demangle
    │   ├── swift-experimental-sdk -> swift-package
    │   ├── swift-frontend
    │   ├── swift-package
    │   ├── swift-package-collection -> swift-package
    │   ├── swift-package-registry -> swift-package
    │   ├── swift-plugin-server
    │   ├── swift-run -> swift-package
    │   ├── swift-stdlib-tool
    │   ├── swift-symbolgraph-extract -> swift-frontend
    │   ├── swift-test -> swift-package
    │   ├── swiftc -> swift-frontend
    │   ├── tapi
    │   ├── tapi-analyze
    │   ├── unifdef
    │   ├── unifdefall
    │   ├── unwinddump
    │   ├── vtool
    │   ├── xcindex-test
    │   └── xml2man
    ├── include
    │   ├── FlexLexer.h
    │   └── swift
    ├── lib
    │   ├── arch_tool
    │   ├── clang
    │   ├── libIndexStore.dylib
    │   ├── libLTO.dylib
    │   ├── libclang.dylib
    │   ├── libcodedirectory.dylib
    │   ├── libswiftDemangle.dylib
    │   ├── libtapi.dylib
    │   ├── libxcrun.dylib
    │   ├── sourcekitd.framework
    │   ├── sourcekitdInProc.framework
    │   ├── swift
    │   ├── swift-5.0
    │   ├── swift-5.5
    │   └── tapi
    ├── libexec
    │   ├── as
    │   ├── git-core
    │   └── migcom
    └── share
        ├── bison
        ├── clang
        ├── doc
        ├── git-core
        ├── headerdoc
        ├── man
        └── swift
jeromelaban commented 4 months ago

Thanks. Can you try:

chenzhekl commented 4 months ago

Update

Running sudo xcode-select -s /Applications/Xcode.app does make uno-check happy! Thanks a lot for the insights.