From 99430d2edbcf7eb1895a9011003fdabe6c7a4be5 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 11 Nov 2018 16:24:00 +0800 Subject: [PATCH] For #1250, Not support macOS 10.14 --- trunk/auto/options.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/trunk/auto/options.sh b/trunk/auto/options.sh index 9fca2a1415..a0928c9e12 100755 --- a/trunk/auto/options.sh +++ b/trunk/auto/options.sh @@ -921,5 +921,15 @@ function check_option_conflicts() { if [ $__check_ok = NO ]; then exit 1; fi + + if [[ $SRS_OSX == YES ]]; then + macOSVersion=`sw_vers -productVersion` + macOSVersionMajor=`echo $macOSVersion|awk -F '.' '{print $1}'` + macOSVersionMinor=`echo $macOSVersion|awk -F '.' '{print $2}'` + if [[ $macOSVersionMajor -ge 10 && $macOSVersionMinor -ge 14 ]]; then + echo "macOS $macOSVersion is not supported, read https://github.com/ossrs/srs/issues/1250" + exit -1 + fi + fi } check_option_conflicts