Skip to content

Commit

Permalink
Merge pull request #5119 from cb1kenobi/timob-15972_3_2_X
Browse files Browse the repository at this point in the history
[TIMOB-15972] Fixed bug where 64-bit iphone simulator only launched if -...
  • Loading branch information
srahim committed Mar 24, 2014
2 parents edfbdd8 + c647711 commit 9a5ca72
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions iphone/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,17 @@ exports.init = function (logger, config, cli) {
stripLogLevelRE = new RegExp('\\[(?:' + logger.getLevels().join('|') + ')\\] '),
simStarted = false;

if (cli.argv.retina) {
if (appc.version.gte(build.iosSimVersion, '7.0.0') && cli.argv['sim-64bit']) {
cmd.push('--retina');
if (appc.version.gte(build.iosSimVersion, '6.0.0') && build.iosSimType == 'iphone' && cli.argv.tall) {
if (build.iosSimType == 'iphone') {
cmd.push('--tall');
}
}
if (appc.version.gte(build.iosSimVersion, '7.0.0') && cli.argv['sim-64bit']) {
cmd.push('--sim-64bit');
} else if (cli.argv.retina) {
cmd.push('--retina');
if (appc.version.gte(build.iosSimVersion, '6.0.0') && build.iosSimType == 'iphone' && cli.argv.tall) {
cmd.push('--tall');
}
}
cmd = cmd.join(' ');

Expand Down

0 comments on commit 9a5ca72

Please sign in to comment.