No. Please do not delete all of Xcode and redownload it and resintall it. That's serious overkill for what is probably a very simple problem.
Per the OP, the issue was that the system resources installer got interrupted and left the system if a partially updated state... so just finish that process.
I suggest you run:
xcrun devicectl manage ddis update
That will probably address the issue. If not, the following will reinstallt he the system resources package (including the DDIs):
sudo installer -target / -pkg $(xcode-select -p)/../Resources/Packages/XcodeSystemResources_Full.pkg
Topic:
Developer Tools & Services
SubTopic:
Xcode