Skip to content

Commit

Permalink
Added warning text to the check_reqs.js log when running under OS X 1…
Browse files Browse the repository at this point in the history
…0.11 El Capitan
  • Loading branch information
shazron committed Feb 4, 2016
1 parent 411f054 commit 8757ca5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/scripts/check_reqs.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ xcode_version.on('close', function (code) {
if (ver < XCODEBUILD_MIN_VERSION) {
console.log(util.format('%s : %s. (you have version %s)', TOOL, XCODEBUILD_NOT_FOUND_MESSAGE, ver));
}

if (os.release() >= '15.0.0') { // print the El Capitan warning
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
console.log('!!!! WARNING: You are on OS X 10.11 El Capitan, you may need to add the');
console.log('!!!! WARNING: `--unsafe-perm=true` flag when running `npm install`');
console.log('!!!! WARNING: or else it will fail.');
console.log('!!!! WARNING: link:');
console.log('!!!! WARNING: https://github.com/phonegap/ios-deploy#os-x-1011-el-capitan');
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
}

}
process.exit(code);
});
Expand Down

0 comments on commit 8757ca5

Please sign in to comment.