Skip to content

Commit

Permalink
Move builtin Safari app to a new name containing SDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
arikon authored and jlipps committed Oct 13, 2014
1 parent 33e1a24 commit 59cabaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devices/ios/simulator.js
Expand Up @@ -137,7 +137,7 @@ Simulator.prototype.getAppDirs = function (appFile, appBundleId) {
};

Simulator.prototype.getSafari7Dirs = function () {
return this.getApp7Dirs(["MobileSafari.app", "Appium-MobileSafari.app"]);
return this.getApp7Dirs(["MobileSafari.app", "Appium-MobileSafari-" + this.platformVer + ".app"]);
};

Simulator.prototype.getApp7Dirs = function (appFiles) {
Expand Down Expand Up @@ -345,7 +345,7 @@ Simulator.prototype.getBuiltInApp = function (appName, cb) {

Simulator.prototype.prepareBuiltInApp = function (appName, tmpDir, cb) {
logger.debug("Looking for built in app " + appName);
var newAppDir = path.resolve(tmpDir, 'Appium-' + appName + '.app');
var newAppDir = path.resolve(tmpDir, 'Appium-' + appName + '-' + this.platformVer + '.app');
var checkApp = function (s, appPath, cb) {
if (!s.isDirectory()) {
cb(new Error("App package was not a directory"), appPath);
Expand Down

0 comments on commit 59cabaa

Please sign in to comment.