let ios-sim handle the writing to a file for us