anderkve / FYS3150

https://anderkve.github.io/FYS3150
26 stars 14 forks source link

Problem med g++ #42

Closed JohanCarlsen closed 1 year ago

JohanCarlsen commented 2 years ago

Hei, jeg fikk plutselig et problem. Jeg skulle bygge et program, og da jeg kjørte g++ (...) fikk jeg beskjed om at "the agreement has not been signed" eller noe. Jeg kunne da velge "agree", som jeg skrev i komandolinjefeltet. Dette første til at kommandolinjeverktøyene måtte lastes ned på nytt.

(base) johancarlsen@eduroam-193-157-193-46 ~ % g++ --version 2022-09-15 14:05:33.850 xcodebuild[1374:58372] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJCCLASS$_SimDiskImage) Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability' Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJCCLASS$_SimDiskImage) Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability' Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0000): Symbol not found: (_OBJCCLASS$_SimDiskImage) Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability' Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator' 2022-09-15 14:05:33.904 xcodebuild[1374:58372] [MT] DVTAssertions: ASSERTION FAILURE in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-21303/DVTFoundation/PlugInArchitecture/DataModel/DVTPlugIn.m:374 Details: Failed to load code for plug-in com.apple.dt.IDESimulatorAvailability (/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin) Please ensure Xcode packages are up-to-date — try running 'xcodebuild -runFirstLaunch'.

NSBundle error: Error Domain=NSCocoaErrorDomain Code=3588 "dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJCCLASS$_SimDiskImage) Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability' Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator'" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, NSDebugDescription=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability, 0x0109): Symbol not found: (_OBJCCLASS$_SimDiskImage) Referenced from: '/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin/Contents/MacOS/IDESimulatorAvailability' Expected in: '/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDESimulatorAvailability.ideplugin, NSLocalizedDescription=The bundle “IDESimulatorAvailability” couldn’t be loaded.} Object: <DVTPlugIn: 0x600003270000> Method: -loadAssertingOnError:error: Thread: <_NSMainThread: 0x600001624480>{number = 1, name = main} Hints:

Backtrace: 0 0x000000010fb66f81 1 0x000000010fb664b5 2 0x000000010fb666c1 3 0x000000010f9dd3ba 4 0x000000010f998c73 5 0x000000010f996a1f 6 0x00007ff807909317 7 0x00007ff8079167ee 8 0x000000010fbb55a1 9 0x000000010fb8b0d8 10 0x000000010f9968a3 11 0x000000010f996af5 12 0x0000000110a7bf66 13 0x0000000110a7b526 14 0x0000000110a7a919 15 0x000000010e4039a4 16 0x000000010e18620a sh: line 1: 1376 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find g++ 2> /dev/null g++: 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 g++ 2> /dev/null' failed with exit code 34304: (null) (errno=Invalid argument) xcode-select: Failed to locate 'g++', requesting installation of command line developer tools.

dette er koden jeg fikk og nå kan jeg ikke kompilere noe som helst.

dshope11 commented 2 years ago

Hi @JohanCarlsen ,

I found this thread which suggest a few quick things to try: https://apple.stackexchange.com/questions/415563/repeatedly-being-asked-to-install-command-line-tools

could you check and see if one of them fixes the issue?

JohanCarlsen commented 2 years ago

Thanks a lot! It worked. For some reason, Xcode had been uninstalled when agreed to the terms, or something like that. No idea why, but the problem is (for now) fixed!

sunnikbe commented 2 years ago

The exact same thing happened to me yesterday, maybe there was an update or something.