@ -224,28 +224,10 @@ if [[ "${DO_XCODE_IOS_TESTS}" == "yes" ]] ; then
# just pick a mix of OS Versions and 32/64 bit.
# NOTE: Different Xcode have different simulated hardware/os support.
case " ${ XCODE_VERSION } " in
[ 6-8] .* )
echo "ERROR: The unittests include Swift code that is now Swift 4.0." 1>& 2
echo "ERROR: Xcode 9.0 or higher is required to build the test suite, but the library works with Xcode 7.x." 1>& 2
[ 6-9] .* )
echo "ERROR: Xcode 10.2 or higher is required." 1>& 2
exit 11
; ;
9.[ 0-2] * )
XCODEBUILD_TEST_BASE_IOS += (
-destination "platform=iOS Simulator,name=iPhone 4s,OS=8.1" # 32bit
-destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
# 9.0-9.2 all seem to often fail running destinations in parallel
-disable-concurrent-testing
)
; ;
9.[ 3-4] * )
XCODEBUILD_TEST_BASE_IOS += (
# Xcode 9.3 chokes targeting iOS 8.x - http://www.openradar.me/39335367
-destination "platform=iOS Simulator,name=iPhone 4s,OS=9.0" # 32bit
-destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
# 9.3 also seems to often fail running destinations in parallel
-disable-concurrent-testing
)
; ;
10.*)
XCODEBUILD_TEST_BASE_IOS += (
-destination "platform=iOS Simulator,name=iPhone 4s,OS=8.1" # 32bit
@ -292,9 +274,8 @@ if [[ "${DO_XCODE_OSX_TESTS}" == "yes" ]] ; then
XCODEBUILD_TEST_BASE_OSX += ( -quiet )
fi
case " ${ XCODE_VERSION } " in
[ 6-8] .* )
echo "ERROR: The unittests include Swift code that is now Swift 4.0." 1>& 2
echo "ERROR: Xcode 9.0 or higher is required to build the test suite, but the library works with Xcode 7.x." 1>& 2
[ 6-9] .* )
echo "ERROR: Xcode 10.2 or higher is required." 1>& 2
exit 11
; ;
esac
@ -315,7 +296,7 @@ if [[ "${DO_XCODE_TVOS_TESTS}" == "yes" ]] ; then
)
case " ${ XCODE_VERSION } " in
[ 6-9] .* )
echo "ERROR: Xcode 10.0 or higher is required to build the test suite ." 1>& 2
echo "ERROR: Xcode 10.2 or higher is required ." 1>& 2
exit 11
; ;
10.* | 11.* | 12.*)
@ -323,7 +304,7 @@ if [[ "${DO_XCODE_TVOS_TESTS}" == "yes" ]] ; then
-destination "platform=tvOS Simulator,name=Apple TV 4K,OS=latest"
)
; ;
13.*)
13.* | 14.* )
XCODEBUILD_TEST_BASE_TVOS += (
-destination "platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=latest"
)