From a81efb6e447f301ac8fd0d204c9a6d00168de951 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Wed, 29 Jan 2020 16:29:26 +0100 Subject: [PATCH 1/2] fix ci --- .travis.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.sh b/.travis.sh index 70e02036..58e7c539 100644 --- a/.travis.sh +++ b/.travis.sh @@ -58,7 +58,8 @@ echo "##" if [ `uname` = Darwin ] then rustup target add x86_64-apple-ios; - export SIM_ID=$(xcrun simctl create My-iphone7 com.apple.CoreSimulator.SimDeviceType.iPhone-7 com.apple.CoreSimulator.SimRuntime.iOS-13-2) + RUNTIME_ID=$(xcrun simctl list runtimes | grep iOS | cut -d ' ' -f 7) + export SIM_ID=$(xcrun simctl create My-iphone7 com.apple.CoreSimulator.SimDeviceType.iPhone-7 $RUNTIME_ID) xcrun simctl boot $SIM_ID # Test from workspace root with project filter ( \ From d8a5eede0414dcaa01299bf707dfeb7605e060ab Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Wed, 29 Jan 2020 18:41:42 +0100 Subject: [PATCH 2/2] dont choke on multi ios runtimes --- .travis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.sh b/.travis.sh index 58e7c539..25fba837 100644 --- a/.travis.sh +++ b/.travis.sh @@ -58,7 +58,7 @@ echo "##" if [ `uname` = Darwin ] then rustup target add x86_64-apple-ios; - RUNTIME_ID=$(xcrun simctl list runtimes | grep iOS | cut -d ' ' -f 7) + RUNTIME_ID=$(xcrun simctl list runtimes | grep iOS | cut -d ' ' -f 7 | tail -1) export SIM_ID=$(xcrun simctl create My-iphone7 com.apple.CoreSimulator.SimDeviceType.iPhone-7 $RUNTIME_ID) xcrun simctl boot $SIM_ID # Test from workspace root with project filter