From d688e2997561e83a598045ca77264033f694b8a8 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Thu, 4 Feb 2016 09:32:07 -0800 Subject: [PATCH] Added warning text to the check_reqs.js log when running under OS X 10.11 El Capitan --- src/scripts/check_reqs.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/scripts/check_reqs.js b/src/scripts/check_reqs.js index b6b5ee5..055e652 100755 --- a/src/scripts/check_reqs.js +++ b/src/scripts/check_reqs.js @@ -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); });