Problem running code blocks on Mac

Hello Mr.Bucky I installed code blocks on my mac but when i try to run a programme it gives me an error message so what should I do ? And somebody said I should download Xcode and the command line tools and still code blocks isn't working and i can't use Xcode for c because I'm a beginner please help me.