summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/uikit/device_destinations.sh
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-11-13 23:55:44 -0800
committerJake Petroules <jake.petroules@qt.io>2017-11-15 02:08:54 +0000
commit26141086963d1c6ea9451e17c831d748690cf44d (patch)
treed803925b2929301b3b3a15e4e9b0efb22e1d2421 /mkspecs/features/uikit/device_destinations.sh
parenta95936f37695706144ba6ca050c3493af88d7d34 (diff)
qmake: properly filter simulator devices by minimum deployment target
This fixes an issue where a build error may be introduced by a simulator being selected whose OS version is lower than the application's minimum deployment target. Task-number: QTBUG-64456 Change-Id: Ic7c834a1473c183ebb910bc01a416fe1e23a5a14 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'mkspecs/features/uikit/device_destinations.sh')
-rwxr-xr-xmkspecs/features/uikit/device_destinations.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/mkspecs/features/uikit/device_destinations.sh b/mkspecs/features/uikit/device_destinations.sh
index 162ad01aaf..649dd399a7 100755
--- a/mkspecs/features/uikit/device_destinations.sh
+++ b/mkspecs/features/uikit/device_destinations.sh
@@ -40,10 +40,12 @@
#############################################################################
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-booted_simulator=$($DIR/devices.pl "$1" "Booted" "NOT unavailable" | tail -n 1)
+scheme=$1
+shift
+booted_simulator=$($DIR/devices.py --state booted $@ | tail -n 1)
echo "SIMULATOR_DEVICES = $booted_simulator"
-xcodebuild test -scheme $2 -destination 'id=0' -destination-timeout 1 2>&1| sed -n 's/{ \(platform:.*\) }/\1/p' | while read destination; do
+xcodebuild test -scheme $scheme -destination 'id=0' -destination-timeout 1 2>&1| sed -n 's/{ \(platform:.*\) }/\1/p' | while read destination; do
id=$(echo $destination | sed -n -E 's/.*id:([^ ,]+).*/\1/p')
[[ $id == *"placeholder"* ]] && continue