mirror of
https://github.com/appium/appium.git
synced 2026-05-07 19:40:01 -05:00
try built-in ideviceinstaller if we don't have one
This commit is contained in:
@@ -465,11 +465,17 @@ IOS.prototype.installSafariLauncher = function(cb) {
|
||||
|
||||
IOS.prototype.installIpa = function(cb) {
|
||||
logger.info("Installing ipa found at " + this.ipa);
|
||||
var idiPath = path.resolve(__dirname, "../../../build/",
|
||||
"libimobiledevice-macosx/ideviceinstaller");
|
||||
try {
|
||||
this.realDevice = new IDevice(this.udid);
|
||||
} catch (e) {
|
||||
return cb(new Error("Could not find ideviceinstaller, please make " +
|
||||
"sure it's compiled and on your PATH"));
|
||||
} catch (e1) {
|
||||
logger.info("Couldn't find ideviceinstaller, trying built-in");
|
||||
try {
|
||||
this.realDevice = new IDevice(this.udid, {cmd: idiPath});
|
||||
} catch (e2) {
|
||||
return cb(e2);
|
||||
}
|
||||
}
|
||||
var d = this.realDevice;
|
||||
async.waterfall([
|
||||
|
||||
Reference in New Issue
Block a user