cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject ios commit: CB-9046 - cordova run ios --emulator --target "iPhone-5, 7.1" (target with runtime) does not work
Date Tue, 19 May 2015 23:47:39 GMT
Repository: cordova-ios
Updated Branches:
  refs/heads/4.0.x 01a5a9149 -> df6929f83


CB-9046 - cordova run ios --emulator --target "iPhone-5, 7.1" (target with runtime) does not
work


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/df6929f8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/df6929f8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/df6929f8

Branch: refs/heads/4.0.x
Commit: df6929f83316f41bdd4b539fe5fdd54c28e187bc
Parents: 01a5a91
Author: Shazron Abdullah <shazron@apache.org>
Authored: Tue May 19 16:48:35 2015 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Tue May 19 16:48:35 2015 -0700

----------------------------------------------------------------------
 bin/templates/scripts/cordova/lib/run.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/df6929f8/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 ec18289..ea9ec72 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.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');
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message