title: Compiling and linking Swift plus Objective C code from the OS X command-line
body: <p>Compiling Swift from an OS X command-line:</p>
  
  <pre><code>swift -sdk $(xcrun --show-sdk-path --sdk macosx) test.swift
  </code></pre>
  
  <p>Compiling Objective C from the command-line:</p>
  
  <pre><code>clang -lobjc -framework Foundation -c testObject.m
  </code></pre>
  
  <p>I can add the -c option to either compiler to produce .o files.</p>
  
  <p>How can I link these two source files into one app?  </p>
  
  <p>Or is more needed to build?</p>