Skip to content

Commit

Permalink
[TIMOB-26121] Use same selection logic for simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Jun 12, 2018
1 parent 711638d commit 6b6648e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -1958,9 +1958,8 @@ iOSBuilder.prototype.validate = function validate(logger, config, cli) {
logger.error(__('Unable to find any Xcode installations that support iOS SDK %s.', this.iosSdkVersion) + '\n');
process.exit(1);
}
} else if (cli.argv.target === 'simulator' && !cli.argv['build-only']) {
// we'll let ioslib suggest an iOS version
} else { // device, dist-appstore, dist-adhoc

} else { // device, simulator, dist-appstore, dist-adhoc
Object.keys(xcodeInfo)
.filter(function (id) { return xcodeInfo[id].supported; })
.sort(sortXcodeIds)
Expand Down

0 comments on commit 6b6648e

Please sign in to comment.