couldn't update module cache session file

I was running my first program on xcode after updating Xcode to version 7.3 and I keep getting this build error


Couldn't update module cache session file '/Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation': You don’t have permission to save the file “Session.modulevalidation” in the folder “ModuleCache”.


I have tried solving this by setting the permission of my home directory and the folder to read & write but I still get the same error. Can anyone suggestions on how to fix this?

couldn't update module cache session file
 
 
Q