Go to your Project folder and if it is saved in iCloud do a right click and choose download. Now Xcode can compare it to your local repository. Otherwise a restart of Xcode does work most of the time.