6

I am getting this error when trying to work with git:

Mitchells-MacBook-Pro:/ Mitch$ git
dyld: Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData
  Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
  Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
 in /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.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

I am running on MacOS mojave. I have tried to run command:

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

which does not seem to do the trick. Any tips would be great.

sgerbhctim
  • 3,420
  • 7
  • 38
  • 60

1 Answers1

-1

Try upgrading Xcode via the App Store

Ian G
  • 498
  • 3
  • 16