Engineering/Mac

Command Line Developer Tool 무한 반복 설치 on Mac OS

산책散策 2024. 7. 22. 17:48
728x90

Mac OS 를 최신 버전(14.5) 으로 업데이트 한 후, 잘 동작하던 git 명령어가 다음과 같은 오류가 나면서 실행이 안된다.

boos@Macmini-5 ~ % git
2024-07-22 17:00:45.634 xcodebuild[1673:26716] [MT] DVTPlugInLoading: Failed to load code for plug-in cohttp://m.apple.dt.dbg.DebuggerFoundation (/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, 0x0109): Library not loaded: /System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart
  Referenced from: <02D8AA83-CE9D-3E0A-A752-4C1D38EBE0F7> /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit
  Reason: tried: '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), '/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache)" UserInfo={NSLocalizedFailureReason=The bundle couldn셳 be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, 0x0109): Library not loaded: /System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart
  Referenced from: <02D8AA83-CE9D-3E0A-A752-4C1D38EBE0F7> /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit
  Reason: tried: '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), '/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin, NSLocalizedDescription=The bundle 쏡ebuggerFoundationcouldn셳 be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, 0x0000): Library not loaded: /System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart
  Referenced from: <02D8AA83-CE9D-3E0A-A752-4C1D38EBE0F7> /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit
  Reason: tried: '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), '/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache)
2024-07-22 17:00:45.640 xcodebuild[1673:26716] [MT] DVTAssertions: Warning in /Library/Caches/cohttp://m.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-17220/IDEFoundation/Initialization/IDEInitialization.m:355
Details:  Xcode failed its initial plug-in scan, error = Error Domain=DVTPlugInErrorDomain Code=2 "Loading a plug-in failed." UserInfo={DVTPlugInIdentifierErrorKey=cohttp://m.apple.dt.dbg.DebuggerFoundation, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, 0x0000): Library not loaded: /System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart
  Referenced from: <02D8AA83-CE9D-3E0A-A752-4C1D38EBE0F7> /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit
  Reason: tried: '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), '/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin, NSLocalizedFailureReason=The plug-in 쐁ohttp://m.apple.dt.dbg.DebuggerFoundationat path Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugincould not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x600001c97f30 {Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, 0x0109): Library not loaded: /System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart
  Referenced from: <02D8AA83-CE9D-3E0A-A752-4C1D38EBE0F7> /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit
  Reason: tried: '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), '/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache)" UserInfo={NSLocalizedFailureReason=The bundle couldn셳 be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin/Contents/MacOS/DebuggerFoundation, 0x0109): Library not loaded: /System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart
  Referenced from: <02D8AA83-CE9D-3E0A-A752-4C1D38EBE0F7> /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit
  Reason: tried: '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/PrivateFrameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), '/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file), '/System/Library/Frameworks/CoreChart.framework/Versions/A/CoreChart' (no such file, not in dyld cache), NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/DebuggerFoundation.ideplugin, NSLocalizedDescription=The bundle 쏡ebuggerFoundationcouldn셳 be loaded.}}}
Function: BOOL _IDEInitializePlugInManager(IDEInitializationOptions, NSError *__autoreleasing *)
Thread:   <_NSMainThread: 0x600000770600>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
xcodebuild: error: Initialization failed.
        Reason: Loading a plug-in failed.
git: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find git 2> /dev/null' failed with exit code 17920: (null) (errno=Invalid argument)
xcode-select: Failed to locate 'git', requesting installation of command line developer tools.

 

git 명령어를 실행하면 Command Line Developer Tool 을 업데이트 하라는 메시지가 나와서 인스톨을 했는데, 몇 분후 완료가 되고 나서 업데이트 확인을 누르면 설정 아이콘에 아직 인스톨 안된게 있다고 나오면서 눌러주면 좀전의 화면으로 넘어가면서 다시 다운받고 설치하는 과정이 나온다. (처음엔 다른 건가 했는데, 계속 지켜보니깐 같은 프로그램을 인스톨 하려고 한다)

혹시나 인스톨하고 나서 리부팅을 해줘야 하나 싶어서, 이번에는 인스톨 완료후에 리부팅을 하고 나서 인스톨 과정을 거쳐도 동일하게 인스톨을 하고나서 인스톨을 다시 해야하는 게 계속 반복된다.

 

구글링으로 찾아보니 역시나 비슷한 문제를 겪는 사람이 나온다.

https://apple.stackexchange.com/questions/415563/repeatedly-being-asked-to-install-command-line-tools

 

Repeatedly Being Asked to Install Command Line Tools

When I'm doing various development-related activities (such as initializing a git repository or installing packages in RStudio), I get repeatedly asked to install command line developer tools, even

apple.stackexchange.com

 

다행히 아래 명령어로 해결이 되었다.

sudo xcode-select -switch /Library/Developer/CommandLineTools