diff --git a/examples/mobile/Makefile b/examples/mobile/Makefile index beefcb682c..be01ae2e0e 100644 --- a/examples/mobile/Makefile +++ b/examples/mobile/Makefile @@ -2,7 +2,7 @@ DEVICE = ${DEVICE_ID} ifndef DEVICE_ID - DEVICE=$(shell xcrun simctl list devices 'iOS' | grep -v 'unavailable' | grep -v '^--' | grep -v '==' | head -n 1 | cut -d ' ' -f 7 | sed 's/[()]//g') + DEVICE=$(shell xcrun simctl list devices 'iOS' | grep -v 'unavailable' | grep -v '^--' | grep -v '==' | head -n 1 | grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})") endif run: install