Skip to content

Commit

Permalink
Merge pull request #14 from selasie/fix/wait-until-task-exits
Browse files Browse the repository at this point in the history
waiting until task actually completes before returning from xcrun method
  • Loading branch information
davidahouse authored Nov 7, 2019
2 parents ec632d7 + 7a98771 commit 57510fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/XCResultKit/XCResultFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ public class XCResultFile {

let data = pipe.fileHandleForReading.readDataToEndOfFile()
let output: String? = String(data: data, encoding: String.Encoding.utf8)


task.waitUntilExit()

return output
}
}

0 comments on commit 57510fd

Please sign in to comment.