def IsAppInstalled(self, app_bundle_id):
    'Checks if the simulator has installed the app with given bundle id.'
    try:
        RunSimctlCommand(['xcrun', 'simctl', 'get_app_container', self._simulator_id, app_bundle_id])
        return True
    except ios_errors.SimError:
        return False
Checks if the simulator has installed the app with given bundle id.
def IsAppInstalled(self, app_bundle_id):
    
    try:
        RunSimctlCommand(['xcrun', 'simctl', 'get_app_container', self._simulator_id, app_bundle_id])
        return True
    except ios_errors.SimError:
        return False