title: How to access launchEnvironment and launchArguments set in XCUIApplication, running UI tests in XCode?
body: <p>I've tried setting attributes in the <code>XCUIApplication</code> instance, in my UI Tests <code>setUp()</code></p>
  
  <pre><code>let app = XCUIApplication()
  app.launchEnvironment = ["testenv" : "testenvValue"]
  app.launchArguments = ["anArgument"]
  app.launch()
  </code></pre>
  
  <p>in <code>didFinishLaunch</code> I've tried to show these on screen when I run my UITests</p>
  
  <pre><code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {
      if launchOptions != nil {
          for (key, value) in launchOptions! {  
              let alertView = UIAlertView(title: key.description, message: value.description, delegate: nil, cancelButtonTitle: "ok")
              alertView.show()
          }
      }
  </code></pre>
  
  <p>But I can't seem to be able to find the arguments and environment I set. Anyone know how to get a hold of them?</p>