Improve error catching when preparing simulator to run application tests.

Added several asserts to catch problems described in https://github.com/facebook/xctool/issues/405 earlier in the xctool source codes rather then trying to launch simulator with broken configuration.