compile in xcode

Discussion in 'Mac Programming' started by yawnobelix, Jan 6, 2010.

  1. yawnobelix macrumors newbie

    Jun 14, 2009
    im a bit confused about compiling with xcode im just starting programming in objective-c and when i click on compile for my project nothing comes up any help would be much appreciated
  2. szymczyk macrumors regular

    Mar 5, 2006
    Create a project. Choose File > New Project in Xcode.

    You haven't said what version of Xcode you're using. In Xcode 3.2 after choosing File > New Project, select Application under Mac OS X on the left side of the New Project Assistant. To write a GUI program in Objective-C, pick Cocoa Application. To write a command-line Objective-C program, pick Command Line Tool and choose Foundation from the Type pop-up menu.

    If you're using an older version of Xcode, choose a Foundation Tool project to write a command-line Objective-C program.

    After creating a project, choose Build > Build and Run to compile your program and run it.

Share This Page