Reinstall OS X Mavericks I am relatively new to Mac world. I've bought my first Apple computer, a MacBook Pro Retina 2013, a few weeks ago and I've tried a lot of software since then.

Anyway, to make a long story short, I have a problem with Xcode as descried in this question I posted on stack overflow. I want to try reinstalling the OS to see if the problem will disappear.

About reinstalling the OS, my biggest concert is if all my files will remain after reinstallation. So, can you reinstall OS X without having to format your hard drive?

My mac came with Mavericks.
Just to clarify :-) Simply reinstalling an O/S (upgrading too) does not delete any personal files, it over writes only system files to a freshly installed state.

remember that the FIRST thing you do after re-installing is running software update and getting all the patches.

The SECOND would be booting from the recovery partition and repairing permissions and the disk with Disk Utility (in that order)