title: Swift 1.2 BAD_EXEC_ACCESS on startup
body: <p>I have a simple app in Swift/SpriteKit/MacOS that I'm using to learn Swift. It mostly processes text files - which I'm happy to say, Swift is pretty great at.</p>
  
  <p>I downloaded 1.2 and ran the converter and it suggested one line of code to be changed:</p>
  
  <pre><code>NSApplicationMain(C_ARGC, C_ARGV)
  </code></pre>
  
  <p>Had to become:</p>
  
  <pre><code>NSApplicationMain(Process.argc, Process.unsafeArgv)
  </code></pre>
  
  <p>Now when I run the app it crashes with a BAD_EXEC_ACCESS on that line. The stack doesn't seem to show anything interesting; it appears to be crashing very early.</p>
  
  <p>I put a breakpoint on the line and POed the inputs:</p>
  
  <pre><code>["/Development/PAIS/DerivedData/PAIS/Build/Products/Debug/PAIS.app/Contents/MacOS/PAIS", "-NSDocumentRevisionsDebugMode", "YES"]
  </code></pre>
  
  <p>Nothing out of the ordinary there it seems.</p>