fixup! Proper install/uninstall when running on iOS device.

This commit is contained in:
Payman Delshad
2014-07-08 09:38:05 +02:00
parent f6c3022407
commit 528b8fa432

View File

@@ -762,7 +762,7 @@ IOS.prototype.setBundleIdFromApp = function (cb) {
this.getBundleIdFromApp(function (err, bundleId) {
if (err) {
logger.error("Could not set the bundleId from app.");
cb();
return cb(err);
}
this.args.bundleId = bundleId;
cb();
@@ -791,8 +791,7 @@ IOS.prototype.installToRealDevice = function (cb) {
logger.debug("fullReset requested. Forcing app install.");
} else {
logger.debug("fullReset not requested. No need to install.");
cb();
return;
return cb();
}
}
if (this.args.ipa && this.args.bundleId) {
@@ -935,6 +934,7 @@ IOS.prototype.setDeviceTypeInInfoPlist = function (deviceTypeCode, cb) {
};
IOS.prototype.getBundleIdFromApp = function (cb) {
logger.debug("Getting bundle ID from app");
var plist = path.resolve(this.args.app, "Info.plist");
bplistParse.parseFile(plist, function (err, obj) {
if (err) {