Skip to content

Commit

Permalink
CB-9046 - cordova run ios --emulator --target "iPhone-5, 7.1" (target…
Browse files Browse the repository at this point in the history
… with runtime) does not work
  • Loading branch information
shazron committed May 19, 2015
1 parent 01a5a91 commit df6929f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/scripts/cordova/lib/run.js
Expand Up @@ -50,7 +50,7 @@ module.exports.run = function (argv) {
// Valid values for "--target" (case sensitive):
var validTargets = ['iPhone-4s', 'iPhone-5', 'iPhone-5s', 'iPhone-6-Plus', 'iPhone-6',
'iPad-2', 'iPad-Retina', 'iPad-Air', 'Resizable-iPhone', 'Resizable-iPad'];
if (!(args.device) && args.target && validTargets.indexOf(args.target) < 0 ) {
if (!(args.device) && args.target && validTargets.indexOf(args.target.split(',')[0]) < 0 ) {
return Q.reject(args.target + ' is not a valid target for emulator');
}

Expand Down

0 comments on commit df6929f

Please sign in to comment.