[TIMOB-12280] Fixed iOS Simulator log tailing so it's not repeating any more and also simplified the code.