title: UIAlertAction doesn't perform action after archive and export as adhoc
body: <p>I am creating an alert in response to discovering a specific BLE characteristic. This alert has 2 UIAlertAction buttons. Each does its action correctly when building from Xcode (v 6.1.1 6A2008a) but when archiving and exporting using an Ad Hoc provisioning profile, one button will do its action but the other will not. </p>
  
  <p>Some code:</p>
  
  <pre><code>let alertController = UIAlertController(title: "Title", message: "Message", preferredStyle: .Alert)
  
          let okAction = UIAlertAction(title: "OK", style: .Default) {
              (action) in
              debugData.addToLog("OK button pressed")
          }
          let cancelAction = UIAlertAction(title: "Not Now", style: .Default) {
              (action) in
              debugData.addToLog("Not Now button pressed")
          }
          alertController.addAction(okAction)
          alertController.addAction(cancelAction)
          debugData.addToLog("Building alert")
          appDelegate.nav.presentViewController(alertController, animated: true, completion: nil)
  </code></pre>
  
  <p>debugData goes to a hidden view that I use a UIGesture to reveal. Xcode's output will show <code>Building Alert</code> and <code>OK Button pressed</code> and <code>Not Now button pressed</code> but archiving and exporting will only show <code>Building alert</code> and <code>Not Now button pressed</code>.</p>
  
  <p>Any thoughts?</p>