mirror of
https://github.com/appium/appium.git
synced 2026-02-11 04:20:00 -06:00
fixup! Proper install/uninstall when running on iOS device.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user