Hello, I have the same problem and I tried the solutions below.
I did:
Remove Xcode with CleanMyMac Software
Delete Developer folder with DevCleaner
Look in the terminal that all files with "xcode" are not directly linked to the software itself
Restart my mac
Install the command line tools dmg not with the terminal "13.4" (because 13.4.1 does not exist)
Reinstall xCode** via the App Store
Create a new project, make a compilation directly, then redo one add data in the Assets
BUT ! the problem is still here... :(
Post
Replies
Boosts
Views
Activity
Solved, solution n°2
Delete xCode (you can use CleanMyMac)
Delete the developer folder from Library/Developper
Go here LINK download Xcode 13.2.1 (not 13.4.1)
Install and "Voila" !
Solution found by DaveWoodX
https://twitter.com/davewoodx/status/1544820336629358601