Commit 153fe543 authored by Eike Ziller's avatar Eike Ziller

iOS: Fix determination of SDK with maximum version

Change-Id: I6fc1f0eceeff4286936999986263cb034c1a7663
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent fa69e5ea
......@@ -248,7 +248,7 @@ void IosProbe::setupDefaultToolchains(const QString &devPath, const QString &xco
continue;
}
if (sdkName.isEmpty()) {
if (compareVersions(maxVersion, versionStr) > 0) {
if (maxVersion.isEmpty() || compareVersions(maxVersion, versionStr) > 0) {
maxVersion = versionStr;
sdkPath = sdkDirInfo.canonicalFilePath();
sdkSettings = sdkInfo;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment