Updated rakefile to return proper exitcode for ios-sim