Problem installing
Opened this issue · 5 comments
➜ brew install applehealth2csv
==> Installing applehealth2csv from muquit/applehealth2csv
==> Downloading https://github.com/muquit/applehealth2csv/releases/download/v1.0
==> Downloading from https://github-releases.githubusercontent.com/336888705/9a3
######################################################################## 100.0%
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
NoMethodError: undefined method `path' for nil:NilClass
Did you mean? paths
You probably need to run xcode-select --install
to install XCode's command line tools. I had no idea brew uses XCode tools under the hood. You can try to build it by running go build
as well.
Thanks.
Thank you for responding. I recently had trouble with XCode install and followed https://mac.install.guide/ruby/2.html to get it working right. I don't use the XCode app. Otherwise Brew seems to work, although I don't use it everyday. Running BigSur on a 2013 MBP. I'll try on my 2017 iMac
I looked for xcrun. Either pieces are being installed elsewhere or xcrun is no longer?
xcode-select -p
/Library/Developer/CommandLineTools
brew install applehealth2csv
on iMac
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "applehealth2csv".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
But don't fix this just for me as I found another way to do it. But if I can help I will.
Different XCode install on iMac with Catalina
➜ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Did you instal the tap?
brew tap muquit/applehealth2csv https://github.com/muquit/applehealth2csv.git
brew tap
should have muquit/applehealth2csv
in the list
Forgot the tap. Don't really know my way around Brew and two step installations are unusual. Everything is now fine on iMac and command works.
Two copies of xcrun, but the second one was created today at the same time as the applehealth2csv files.
/usr/bin/xcrun
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/xcrun
Double checked: /Library/Developer/CommandLineTools/usr/bin/xcrun
(from the error message). /Library/Developer/CommandLineTools/usr/bin/
exists with 108 items, but no xcrun.
MBP:
➜ brew tap
…
homebrew/cask
homebrew/core
homebrew/services
muquit/applehealth2csv
…
Oops, apparently I didn't search correctly for system files:
/usr/bin/xcrun
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/xcrun
But brew install applehealth2csv
still fails on my MBP.