title: Xcode command line tool - how to run in terminal?
body: <p>When you create a Command Line Tool project in Xcode you get this, in main.m:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  int main(int argc, const char * argv[])
  {
      @autoreleasepool {
          // insert code here...
          NSLog(@"Hello, World!");
      }
      return 0;
  }
  </code></pre>
  
  <p>I can run this from Xcode. But I want to compile it so that I can run it from Terminal. What are the steps?</p>