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 을 업데이트 하라는 메시지가 나와서 인스톨을 했는데, 몇 분후 완료가 되고 나서 업데이트 확인을 누르면 설정 아이콘에 아직 인스톨 안된게 있다고 나오면서 눌러주면 좀전의 화면으로 넘어가면서 다시 다운받고 설치하는 과정이 나온다. (처음엔 다른 건가 했는데, 계속 지켜보니깐 같은 프로그램을 인스톨 하려고 한다)
혹시나 인스톨하고 나서 리부팅을 해줘야 하나 싶어서, 이번에는 인스톨 완료후에 리부팅을 하고 나서 인스톨 과정을 거쳐도 동일하게 인스톨을 하고나서 인스톨을 다시 해야하는 게 계속 반복된다.
구글링으로 찾아보니 역시나 비슷한 문제를 겪는 사람이 나온다.
다행히 아래 명령어로 해결이 되었다.
sudo xcode-select -switch /Library/Developer/CommandLineTools
'Engineering > Mac' 카테고리의 다른 글
altool 오류 on Mac (2) | 2024.10.31 |
---|---|
서비스 데몬 시작/등록 on MacOS (0) | 2024.08.14 |
No suitable application records were found. Verify your bundle identifier is correct 해결 (0) | 2023.12.15 |
posix_spawn failed in Mac 해결 (0) | 2023.11.15 |
시작 프로그램 등록 in Mac (0) | 2023.11.15 |