git error after mac os catalina update

--

getting this error trying to run git commands:

dyld: Symbol not found: _OBJC_IVAR_$_NSFont._fFlags
Referenced from: /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
in /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

tried to reinstall xcode:

xcode-select --install

get this error:

apparently we need to install xcode from app store, it wasn’t on my machine:

tried git --version but getting same error.

looking at apple developer forums:

The xcode-select --install command has been broken since the release of Xcode 12 over a month ago.

install command line tools here: https://developer.apple.com/download/more/

and git --version should work after install is complete

you will have to agree to new xcode license agreements by running:

sudo xcodebuild -license

after these updates i see this git version:

git version 2.24.3 (Apple Git-128)

--

--

diary of a codelovingyogi
diary of a codelovingyogi

Written by diary of a codelovingyogi

quick notes, snippets, bugs, and fixes

No responses yet