Yeah. I have been suffering from this problem all day and just found the answer. I ran / Applications / Utilities / Console and tried to save again. This error appeared on the console:
AppKit called rmdir("/Users/kris/.TemporaryItems/folders.501/TemporaryItems/ (A Document Being Saved By Xcode)"), it didn't return 0, and errno was set to 66.
Although I could not see anything clearly wrong in this folder (permissions and ownership looked normal), deleting everything ~ / .TemporaryItems / allowed me to save again.
source share