qvacua / vimr

VimR — Neovim GUI for macOS in Swift
https://twitter.com/VimRefined
MIT License
6.67k stars 219 forks source link

Build requires a full XCode installation, not just CLI tools #827

Open gwerbin opened 3 years ago

gwerbin commented 3 years ago

I am using MacOS 10.14.6.

I ran this code:

git clone https://qvacua/vimr
cd vimr
xcode-select --install
brew bundle
git lfs install
git submodule update --init
code_sign=false use_carthage_cache=false ./bin/build_vimr.sh

And I got the following output:

### Building VimR target
### Updating carthage
*** Cloning github-markdown-css
*** Checking out github-markdown-css at "v4.0.0"
*** xcodebuild output can be found in /var/folders/rb/5pn99y6d2fd373s3nv4_mpv00000gn/T/carthage-xcodebuild.drs4jq.log
*** Skipped building github-markdown-css due to the error:
Dependency "github-markdown-css" has no shared framework schemes for any of the platforms: Mac

If you believe this to be an error, please file an issue with the maintainers at https://github.com/sindresorhus/github-markdown-css/issues/new
### Downloading NvimServer
#### Downloading 0.1.0-nvimserver-universal
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   642  100   642    0     0   3009      0 --:--:-- --:--:-- --:--:--  3014
100 7595k  100 7595k    0     0  5538k      0  0:00:01  0:00:01 --:--:-- 8255k
### Downloaded NvimServer
### Xcodebuilding
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

It looks like there is no way around this problem without actually installing XCode, which is no longer compatible with MacOS < 10.15. It might help avoid future disappointment to mention the XCode requirement in the Readme 👍

gwerbin commented 3 years ago

For anyone stuck on MacOS 10.14, the latest compatible version of XCode is 11.3.1: https://developer.apple.com/documentation/xcode-release-notes/xcode-11_3_1-release-notes. It is currently availble at https://download.developer.apple.com/Developer_Tools/Xcode_11.3.1/Xcode_11.3.1.xip which can be found on the Apple Developer downloads page.

kstevens715 commented 3 years ago

I ran into this error too, and was still getting it after installing the full Xcode from the app store. I had to run the following command to switch the active directory:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer