You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by de...@apache.org on 2015/09/17 06:54:18 UTC
ios commit: CB-9046 - cordova run ios --emulator --target "iPhone-5,
7.1" (target with runtime) does not work
Repository: cordova-ios
Updated Branches:
refs/heads/3.9.x a8ec82bc1 -> 32f7c2bf8
CB-9046 - cordova run ios --emulator --target "iPhone-5, 7.1" (target with runtime) does not work
(cherry picked from commit df6929f83316f41bdd4b539fe5fdd54c28e187bc)
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/32f7c2bf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/32f7c2bf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/32f7c2bf
Branch: refs/heads/3.9.x
Commit: 32f7c2bf8d0e4de7e0086fa29b6ef59dee499100
Parents: a8ec82b
Author: Shazron Abdullah <sh...@apache.org>
Authored: Tue May 19 16:48:35 2015 -0700
Committer: Tommy-Carlos Williams <to...@devgeeks.org>
Committed: Thu Sep 17 14:47:57 2015 +1000
----------------------------------------------------------------------
bin/templates/scripts/cordova/lib/run.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/32f7c2bf/bin/templates/scripts/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/lib/run.js b/bin/templates/scripts/cordova/lib/run.js
index 151cad2..fcd3901 100644
--- a/bin/templates/scripts/cordova/lib/run.js
+++ b/bin/templates/scripts/cordova/lib/run.js
@@ -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.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');
}
@@ -174,4 +174,4 @@ module.exports.help = function () {
console.log(' run --emulator --debug');
console.log('');
process.exit(0);
-};
\ No newline at end of file
+};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org