LoginSignup
6
2

More than 5 years have passed since last update.

OS mojaveにアップデートしたら git コマンド使えなくなった時の対処法

Posted at

mojave git エラー(多くの人はこれ

多くの人はこちらのエラーが出ているようなのでこちらの場合はこのコマンドで対応してください

xcode-select --install

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

mojaveアップデートでターミナルに恐ろしいエラーが。

ターミナル起動したらエラーでるようになり、linuxOS標準コマンド以外が利用できなくなった

xcodebuild[1091:18006] [MT] DVTPlugInLoading: Failed to load code for plug-in 
com.apple.dt.IDE.DVTKitDFRSupport (/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin),
 error = Error Domain=NSCocoaErrorDomain Code=3588 
"dlopen(/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin/Contents/
MacOS/DVTKitDFRSupport, 265): Symbol not found: _OBJC_IVAR_$_NSTextViewIvars.sharedData

....
中略

 in /Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/DVTKitDFRSupport.ideplugin, NSLocalizedDescription=The bundle “DVTKitDFRSupport” couldn’t be loaded.}}}
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: Error getting value for key 'initializationClass' of extension 'Xcode.DVTKitDFRSupport.Initializer' in plug-in 'com.apple.dt.IDE.DVTKitDFRSupport'
Stack:
  0   __exceptionPreprocess (in CoreFoundation)
  1   objc_exception_throw (in libobjc.A.dylib)
  2   -[DVTExtension valueForKey:error:] (in DVTFoundation)
  3   _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
  4   _IDEInitializePlugIns (in IDEFoundation)
  5   IDEInitialize (in IDEFoundation)
  6   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
  7  0x000000010c8f5202 (in xcodebuild)
  8   start (in libdyld.dylib)

原因はXcodeのバージョンが低いこと

app storeでアップデートしましょう

image.png

次にこのコマンドでライセンスを有効化

sudo xcodebuild -license accept

これで無事つかえるようになりました

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2