'Xcode clean build folder command not working

Not sure what happened but suddenly, my xcode clean build folder option under Product -> Clean Build Folder no longer works. Instead it gives me an error:

Could not delete /Users/...build because it was not created by the build system.

Is there a way I can reset the xcode settings? Or does someone have any idea how to fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source