I deleted Derived data of project and after that I can't remove any line of code in the project. The moment I delete any character in function, XCode 13 is duplicating that line as seen in the below image.
And I can't delete even a comment. The code doesn't even build now. What do I do? A big chunk of commented code I tried to delete, it deletes but then shows that deleted code again upwards in another function.