title: ‘NSInternalInconsistencyException’ when running UITesting with Xcode 7
body: <p>Ok, I’ve not been able to run this test in any betas so far. Some of the issues I’ve encountered are <a href="https://stackoverflow.com/questions/31713931/xcode-7-beta-4-crashes-on-ui-recording">here</a> and <a href="https://stackoverflow.com/questions/32215892/xcode-7-beta-6-pre-release-app-wont-launch-in-simulator">here</a></p>
  
  <p>Now, I feel like I’m missing something. </p>
  
  <p>Here’s my progress so far</p>
  
  <ol>
  <li>Enabled “UI testing” option while creating a new project. This, in fact adds a target for me. So I should be good to go - or so I thought. 
  <a href="https://i.stack.imgur.com/4vF9D.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4vF9D.png" alt="enter image description here"></a></li>
  <li>The swift file under UI Testing had already “XCTest” imported and was a subclass of “XCTestCase”. </li>
  <li>setup() launches the application
  XCUIApplication().launch()</li>
  <li>And I added the following (by hitting the Record button)
  <a href="https://i.stack.imgur.com/jndYl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jndYl.png" alt="enter image description here"></a></li>
  </ol>
  
  <p>And then, I ran this test. </p>
  
  <p>The whole thing fails even before the test is called, right after launching app in setup() with the following</p>
  
  <blockquote>
    <p>*** Assertion failure in -[XCUIApplication init], /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-8170.3/XCTestFramework/UI Testing/XCUIApplication.m:76
    /Users/UserName/Documents/Projects/Testing/UiTesting/UITestingApp/UITestingApp.swift:0: error: -[UITestingApp.UITestingApp testSimpleTap] : failed: caught "NSInternalInconsistencyException", "No target application path specified via test configuration: <br>
                      testBundleURL:file:///Users/UserName/Library/Developer/CoreSimulator/Devices/E3201DC2-CAD3-48C3-95F5-15E18DCA1836/data/Containers/Bundle/Application/8B33FC59-FC03-41F8-BD21-43D81BA2D355/UITestingApp-Runner.app/PlugIns/UITestingApp.xctest/<br>
                  productModuleName:(null)
                            testsToSkip:(null)
                            testsToRun:(null)
                    reportResultsToIDE:no
                      sessionIdentifier:&lt;__NSConcreteUUID 0x7f93e146c0b0> F242796B-ED26-4AA7-861A-540D2D93CB8F
            pathToXcodeReportingSocket:(null)
              disablePerformanceMetrics:no
        treatMissingBaselinesAsFailures:no
                        baselineFileURL:(null)
                  targetApplicationPath:(null)
              targetApplicationBundleID:(null)
                      reportActivities:no</p>
  </blockquote>
  
  <p>Anyone run into this or has any suggestions on what I might be missing?</p>
  
  <p>Note: I did set the “Target Application” of the UI Testing target to my app</p>
  
  <p>Update: I noticed this is applicable to all beta/final releases of Xcode - updated title accordingly </p>