iOS - running tests with script to synchronise output