 
     func abort() {
         for simulator in simulators {
-            for application in testRun.targets.flatMap({ $0.applications }) {
+            for bundleID in bundleIDS {
                 do {
-                    try simulator.killApplication(withBundleID: application.bundleID)
+                    try simulator.killApplication(withBundleID: bundleID)
                 }
                 catch {
                     context.consoleOutput.write(line: "\(error)")

    }

    func run(control: FBSimulatorControl) throws {
        testRun = try FBXCTestRun.withTestRunFile(atPath: context.testRun.path).build()

        try context.outputManager.reset(
            targets: testRun.targets.map({ $0.name }),

        let crashes: [FBDiagnostic]
    }

    private var bundleIDS: [String] = []
    private let context: Context
    private let reporterRegistry: ReporterRegistry
    private var simulators: [FBSimulator] = []

    init(context: Context) {
        self.context = context
