Compiling with Xcode

Discussion in 'Mac Programming' started by Sedushi, Feb 16, 2008.

  1. Sedushi macrumors newbie

    Oct 18, 2007
    I have tried multiple times to compile a project in Xcode. Can anyone tell me how to do it step by step. Like which type of project do you create, where to put your C or C++ file. By the way I am trying to do it with C. Need help please!
  2. HiRez macrumors 603


    Jan 6, 2004
    Western US
    If there's no UI and you are using straight C, select the "Standard Tool" project type. Put your source files anywhere you want under the Project name tab on the sidebar (you can organize its folders however you like). To compile, just select "Build", that's really all there is to it unless you need more advanced options (of which there are many). You can run it from Xcode or from Terminal (command-line). If I were you I'd download some example C Xcode projects from Apple or other sites and just look at how they are layed out.

Share This Page