Clean before running tests with xcodebuild

Seems to make this less prone to failure when switching xcode versions
Cleanup Rakefile a bit
Retry ios-sim up to 3 times

This has been really flakey on travis-ci lately