Open ghost opened 9 years ago
@lyptt
I expected calabash to detect the simulator the current project is configured against,
Calabash does not inspect the Xcode project file to find currently selected target. We might be able to do this, but a fair number of our users don't have an Xcode project; they have only an .ipa or an .app. Or they are Xamarin Studio users. It might also be confusing in CI environments.
or to pick one from the available ones if this wasn't possible.
The problem is which one to pick?
I think you probably already know this, but the way to specify a non-default simulator is to use the DEVICE_TARGET
variable.
$ DEVICE_TARGET="Sim12 (8.1 Simulator)" cucumber
I am not sure what to do with this issue. I am going to change the title and label it as an enhancement.
I think this might have merit, but it will be a very low priority for us.
Pull-requests welcome.
@jmoody cannot we try default one and if such Simulator does not exist puts message like:
"Cannot find default Simulator please define existing one with DEVICE_TARGET"?
BTW for me it looks like run_loop
issue not calabash
like update method
self.default_simulator
in https://github.com/calabash/run_loop/blob/cbdfc9fb28a583c382df26f88b5e79667c149e18/lib/run_loop/core.rb#L286
This user wants us to look at the Xcode project and find the currently selected simulator.
This change should be made in run-loop.
Xcode 6 enabled developers to configure multiple simulators and delete the defaults, which I've done in my case. I expected calabash to detect the simulator the current project is configured against, or to pick one from the available ones if this wasn't possible.
It seems to be the case that instead it simply times out if it can't find one with a hardcoded name.
See the below log: