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?
try this:
replace the value given to device_target with whatever simulator that you need to use.