diff --git a/lib/devices/ios/ios.js b/lib/devices/ios/ios.js index 4f4c8045..1df88cc7 100644 --- a/lib/devices/ios/ios.js +++ b/lib/devices/ios/ios.js @@ -30,6 +30,7 @@ var path = require('path') , UnknownError = errors.UnknownError , binaryPlist = true , Args = require("vargs").Constructor + , logCustomDeprecationWarning = require('../../helpers.js').logCustomDeprecationWarning ; // XML Plist library helper @@ -155,6 +156,13 @@ IOS.prototype.configure = function (args, caps, cb) { return cb(new Error(msg)); } + if (parseFloat(caps.platformVersion) < 7.1) { + logCustomDeprecationWarning('iOS version', caps.platformVersion, + 'iOS ' + caps.platformVersion + ' support has ' + + 'been deprecated and will be removed in a ' + + 'future version of Appium.'); + } + return this.configureApp(cb); }; @@ -543,8 +551,18 @@ IOS.prototype.setXcodeVersion = function (cb) { xcode.getVersion(function (err, versionNumber) { if (err) { logger.error("Could not determine Xcode version:" + err.message); + } else { + var minorVersion = parseFloat(versionNumber.slice(0, 3)); + if (minorVersion < 6.3) { + logCustomDeprecationWarning('Xcode version', versionNumber, + 'Support for Xcode ' + versionNumber + ' ' + + 'has been deprecated and will be removed ' + + 'in a future version. Please upgrade ' + + 'to version 6.3 or higher'); + } } this.xcodeVersion = versionNumber; + logger.debug("Xcode version set to " + versionNumber); cb(); }.bind(this)); };