Skip to content

Commit

Permalink
Merge pull request #71 from appcelerator/timob-15681
Browse files Browse the repository at this point in the history
[TIMOB-15681] Added support for Xcode 5.0.1+ and iOS 7.0.1+ detection.
  • Loading branch information
srahim committed Dec 13, 2013
2 parents bd3b2d6 + aa2638c commit a55a7e9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,17 @@ exports.detect = function detect(finished, opts) {
var file = path.join(dir, d);
if (fs.existsSync(file) && fs.statSync(file).isDirectory()) {
var m = d.match(sdkRegExp);
m && (!opts.minSDK || version.gte(m[2], opts.minSDK)) && vers.push(m[2]);
if (m && (!opts.minSDK || appc.version.gte(m[2], opts.minSDK))) {
var ver = m[2];
file = path.join(file, 'System', 'Library', 'CoreServices', 'SystemVersion.plist');
if (fs.existsSync(file)) {
var p = new plist(file);
if (p.ProductVersion) {
ver = p.ProductVersion;
}
}
vers.push(ver);
}
}
});

Expand Down

0 comments on commit a55a7e9

Please sign in to comment.