The document “ostream” could not be saved. You don’t have permission

After Xcode suggested “fix”, I encountered this problem.

Unable to exit Xcode.

Solution: find the activity monitor and forcibly exit.

Read More: