I was trying to convert syntax of old Swift project to new one as per few suggestion on Stack Overflow I tried converting it through Edit > Convert > To latest Synta
Try delete Derived Data folder and Build it.
Go to Xcode -> Preferences -> Locations for get the derived data path