title: How to access cordova features in swift?
body: <p>I am trying to create a cordova project manager just form myself in xcode 7 using swift. I created a cocoa class for my Cordova functions, but I am stuck at even creating the cordova project. The class looks like this: </p>
  
  <pre><code>class Cordova: NSObject {
  
      let path:String = ""
  
      func create ( path:String ) -&gt; Int32 {
          let task:NSTask = NSTask()
          task.launchPath = "/usr/local/lib/node_modules/cordova" //????
          task.arguments = ["codova", "create", path]
          task.launch()
          task.waitUntilExit()
          return task.terminationStatus
      }
  }
  </code></pre>
  
  <p>This fires from a UI event (a button click obviously). The problem is, that I cannot access the cordova terminal features like this, and I don't know what the problem could be. </p>
  
  <p>This code by the way works with for example mkdir, so the problem really is cordova inside the command line. I am getting this error: </p>
  
  <pre><code>Couldn't posix_spawn: error 13
  </code></pre>
  
  <p>Thank you in advance!</p>