Fix #3383: Added ability to launch ios app via bundleId

This change is designed to enable running tests on a real ios device without setting the 'app' capability. I have provided unit tests, however I have not tested it on a real device.  I would feel much better if someone can do so before we merge.