mirror of
https://github.com/appium/appium.git
synced 2026-04-27 22:10:35 -05:00
add some logging to make it easier to follow ios startup flow
This commit is contained in:
@@ -387,6 +387,7 @@ IOS.prototype.onUnexpectedInstrumentsExit = function (code, traceDir) {
|
||||
};
|
||||
|
||||
IOS.prototype.setXcodeFolder = function (cb) {
|
||||
logger.info("Setting Xcode folder");
|
||||
helpers.getXcodeFolder(function (err, xcodeFolder) {
|
||||
if (err) {
|
||||
logger.error("Could not determine Xcode folder");
|
||||
@@ -397,6 +398,7 @@ IOS.prototype.setXcodeFolder = function (cb) {
|
||||
};
|
||||
|
||||
IOS.prototype.setXcodeVersion = function (cb) {
|
||||
logger.info("Setting Xcode version");
|
||||
helpers.getXcodeVersion(function (err, versionNumber) {
|
||||
if (err) {
|
||||
logger.error("Could not determine Xcode version");
|
||||
@@ -412,6 +414,7 @@ IOS.prototype.setXcodeVersion = function (cb) {
|
||||
};
|
||||
|
||||
IOS.prototype.setiOSSDKVersion = function (cb) {
|
||||
logger.info("Setting iOS SDK Version");
|
||||
helpers.getiOSSDKVersion(function (err, versionNumber) {
|
||||
if (err) {
|
||||
logger.error("Could not determine iOS SDK version");
|
||||
@@ -464,7 +467,7 @@ IOS.prototype.setLocale = function (cb) {
|
||||
}
|
||||
}.bind(this));
|
||||
} else {
|
||||
msg = "Could not set locale information because the ios-sim-local was not found at " + iosSimLocalePath;
|
||||
msg = "Could not set locale information because the ios-sim-locale was not found at " + iosSimLocalePath;
|
||||
logger.error(msg);
|
||||
cb(new Error(msg));
|
||||
}
|
||||
@@ -612,6 +615,7 @@ IOS.prototype.setSafariPrefs = function () {
|
||||
};
|
||||
|
||||
IOS.prototype.detectTraceTemplate = function (cb) {
|
||||
logger.info("Detecting automation tracetemplate");
|
||||
var msg;
|
||||
if (!this.args.automationTraceTemplatePath) {
|
||||
helpers.getXcodeFolder(function (err, xcodeFolderPath) {
|
||||
@@ -661,6 +665,7 @@ IOS.prototype.detectUdid = function (cb) {
|
||||
cb(new Error("Timed out trying to detect udid."));
|
||||
});
|
||||
} else {
|
||||
logger.info("Not auto-detecting udid, running on sim");
|
||||
cb();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -8,3 +8,5 @@ Here's a list of things that aren't tested in this suite:
|
||||
* node install in appium.app (for appium-instruments)
|
||||
* android with --udid (even if emulator)
|
||||
* {launch: false} caps
|
||||
* setting locale
|
||||
* --avd / avdName
|
||||
|
||||
Reference in New Issue
Block a user