I added a new class recently, the error showed up after I fixed other compile errors with the class. However, the problem persists after commenting out the code. When I try to compile an empty project I get an error about Target Rules.
Maybe I should just try to reinstall the whole editor.