I really appreciate you giving this a try @eskimo!
Following your instructions...
- I saw that 13.3.1 came out, and installed that update.
Here are the results from the queries you recommended:
% sw_vers
ProductName: macOS
ProductVersion: 13.3.1
ProductVersionExtra: (a)
BuildVersion: 22E772610a
and
% xcode-select -p
/Applications/Xcode.app/Contents/Developer
Interesting that it is pointed somewhere different than your own. Which is 'Correct?' In the end it doesn't affect the problem. I did the following
% xcode-select -s /Library/Developer/CommandLineTools
% xcode-select -p
/Library/Developer/CommandLineTools
But still got the same errors upon compilation.
% csrutil status
System Integrity Protection status: enabled.
and
% pkgutil --pkgs
com.apple.pkg.CLTools_SDK_macOS13
com.apple.pkg.XProtectPayloads_10_15.16U4239
com.apple.pkg.XProtectPayloads_10_15.16U4238
com.apple.pkg.CLTools_SDK_macOS12
com.apple.pkg.MAContent10_AssetPack_0637_AppleLoopsDrummerKyle
com.apple.pkg.MAContent10_AssetPack_0593_DrummerSoCalGBLogic
com.apple.pkg.CLTools_Executables
com.apple.files.data-template
com.apple.pkg.CoreTypes.1600A30
com.apple.pkg.XProtectPlistConfigData_10_15.16U4233
com.apple.pkg.MobileAssets
com.apple.pkg.MAContent10_AssetPack_0317_AppleLoopsModernRnB1
com.apple.pkg.MAContent10_AssetPack_0537_DrummerShaker
com.apple.pkg.MAContent10_AssetPack_0482_EXS_OrchWoodwindAltoSax
com.apple.pkg.MAContent10_AssetPack_0048_AlchemyPadsDigitalHolyGhost
com.apple.pkg.XProtectPlistConfigData_10_15.16U4247
com.apple.pkg.MAContent10_AssetPack_0539_DrummerTambourine
com.apple.pkg.MAContent10_AssetPack_0323_AppleLoopsVintageBreaks
com.apple.pkg.MAContent10_AssetPack_0487_EXS_OrchWoodwindFluteSolo
com.apple.pkg.MAContent10_AssetPack_0557_IRsSharedAUX
com.apple.pkg.MAContent10_AssetPack_0484_EXS_OrchWoodwindClarinetSolo
com.apple.pkg.MRTConfigData_10_15.16U4211
com.apple.pkg.XProtectPayloads_10_15.16U4248
com.apple.pkg.MAContent10_AssetPack_0310_UB_DrumMachineDesignerGB
com.apple.pkg.MAContent10_AssetPack_0316_AppleLoopsDubstep1
com.apple.pkg.XProtectPlistConfigData_10_15.16U4241
com.apple.pkg.MAContent10_AssetPack_0491_EXS_OrchBrass
com.apple.pkg.MAContent10_AssetPack_0560_LTPBasicPiano1
com.apple.pkg.MAContent10_AssetPack_0315_AppleLoopsElectroHouse1
com.apple.pkg.MAContent10_AssetPack_0322_AppleLoopsDiscoFunk1
com.apple.pkg.MAContent10_AssetPack_0597_LTPChordTrainer
com.apple.pkg.MAContent10_AssetPack_0540_PlugInSettingsGB
com.apple.pkg.MAContent10_AssetPack_0375_EXS_GuitarsVintageStrat
com.apple.pkg.XProtectPayloads_10_15.16U4246
com.apple.pkg.MAContent10_AssetPack_0806_PlugInSettingsGBLogic
com.apple.pkg.XProtectPayloads_10_15.16U4244
com.apple.pkg.MAContent10_AssetPack_0615_GBLogicAlchemyEssentials
com.apple.pkg.MAContent10_AssetPack_0509_EXS_StringsEnsemble
com.apple.pkg.MAContent10_AssetPack_0324_AppleLoopsBluesGarage
com.apple.pkg.MAContent10_AssetPack_0314_AppleLoopsHipHop1
com.apple.pkg.RosettaUpdateAuto
com.apple.pkg.MAContent10_AssetPack_0325_AppleLoopsGarageBand1
com.apple.pkg.MAContent10_AssetPack_0371_EXS_GuitarsAcoustic
com.apple.pkg.MAContent10_AssetPack_0312_UB_UltrabeatKitsGBLogic
com.apple.pkg.MAContent10_AssetPack_0646_AppleLoopsDrummerElectronic
com.apple.pkg.MAContent10_AssetPack_0598_LTPBasicGuitar1
com.apple.pkg.XProtectPayloads_10_15.16U4242
com.apple.pkg.MAContent10_AssetPack_0354_EXS_PianoSteinway
com.apple.pkg.MAContent10_AssetPack_0321_AppleLoopsIndieDisco
com.apple.pkg.MAContent10_AssetPack_0538_DrummerSticks
com.apple.pkg.MAContent10_AssetPack_0358_EXS_BassElectricFingerStyle
com.apple.pkg.MobileDeviceDevelopment
com.apple.pkg.CLTools_SwiftBackDeploy
com.apple.pkg.XProtectPayloads_10_15.16U4232
com.apple.pkg.MAContent10_AssetPack_0554_AppleLoopsDiscoFunk2
com.apple.pkg.CLTools_macOS_SDK
com.apple.pkg.XcodeSystemResources
com.apple.pkg.MAContent10_AssetPack_0536_DrummerClapsCowbell
com.apple.pkg.XProtectPayloads_10_15.16U4237
com.apple.pkg.MAContent10_AssetPack_0357_EXS_BassAcousticUprightJazz
com.apple.pkg.MAContent10_AssetPack_0320_AppleLoopsChillwave1
com.apple.cdm.pkg.Pages_MASReceipt
org.nodejs.npm.pkg
com.logitech.manager.pkg
com.apple.pkg.Pages13
com.apple.cdm.pkg.Keynote_MASReceipt
com.apple.pkg.Pages12
com.ookla.speedtest-macos
org.python.Python.PythonDocumentation-2.7
com.apple.pkg.iMovie_AppStore
com.brother.iprint-and-scan
org.python.Python.PythonFramework-2.7
net.shinyfrog.image2icon
com.nordvpn.macos
com.apple.pkg.GarageBand_AppStore
com.apple.cdm.pkg.Numbers_MASReceipt
com.bitwarden.desktop
com.apple.pkg.Keynote13
com.apple.pkg.Keynote12
com.apple.cdm.pkg.GarageBand_MASReceipt
com.apple.pkg.LogicPro_AppStore
com.nordvpn.NordVPN
com.apple.pkg.Xcode
com.apple.cdm.pkg.iMovie_MASReceipt
org.nodejs.node.pkg
com.apple.pkg.Numbers12
com.toolsforgopro.CameraToolsForHeros
com.apple.pkg.Numbers13
org.python.Python.PythonApplications-2.7
com.apple.cdm.pkg.SetupMacOSRecoveryDependencies
org.macports.MacPorts
org.python.Python.PythonUnixTools-2.7
com.appersian.hiddenme
com.cloudflare.1dot1dot1dot1.macos
com.dcomplex.mac.nvrviewer2
My compile error remains the same:
% clang++ -std=c++17 -stdlib=libc++ -g -c -o Test.o Test.cpp
In file included from Test.cpp:4:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:52:9: error: no member named 'nullptr_t' in the global namespace
using ::nullptr_t;
~~^
1 error generated.
I'm wondering if this might be due to me using Migration Assistant when I upgraded to this machine in December.
I'm wondering if either of these is legacy/obsolete...
com.apple.pkg.CLTools_macOS_SDK
com.apple.pkg.CLTools_Executables
since it doesn't follow the naming convention of these?
com.apple.pkg.CLTools_SDK_macOS13
com.apple.pkg.CLTools_SDK_macOS12
But that is just an uninformed stab in the dark at best!
I am going to try and delete /Applications/Xcode and do a fresh install, just in case there's cruft in there somehow. Is there any way to completely wipe /Library/Developer and start over there?
Thanks again for your help.