I often encounter this error on a work project. The fastest way I've found is to delete the simulator that the project was previously built on and create a new one.