具体错误:
configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1、Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select.configure exiting with result code 1
解决办法:
common/autoconf/generated-configure.sh
搜索Xcode 4 is require,把as_fn_error改为echo即可.
# Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) if test ! "${XC_VERSION_PARTS[0]}" = "4"; then echo $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION、Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 fi