Calabash iOS launches the default simulator even after defining DEVICE_TARGET

1.2k views Asked by At

In Jenkins I am passing the following to the shell:

DEVICE_TARGET='iPhone 6 (8.1 Simulator)'
cucumber features/Login_FR.feature

However the cucumber script keeps launching device iPhone 5 (8.1 Simulator).

When I run DEVICE_TARGET='iPhone 6 (8.1 Simulator)' from the terminal all works as expected.

I've blown away the derived data, cleaned and rebuilt from Xcode and reset the simulator. That did not seem to cure the problem. Is there something cached in the Jenkins job that keeps telling the script to run iPhone 5 (8.1 Simulator)?

Is there another way to define what device is to be launched from either the pre_stop_hooks or the launch.rb?

1

There are 1 answers

1
s5v On

try this:

DEVICE_TARGET='iPad 2 (8.1 Simulator)' cucumber

replace the value given to device_target with whatever simulator that you need to use.