def IsAppFailedToLaunchOnSim(sim_sys_log, app_bundle_id=''):
    "Checks if the app failed to launch on simulator.\n\n  If app_bundle_id is not provided, will check if any UIKitApplication failed\n  to launch on simulator.\n\n  Args:\n    sim_sys_log: string, the content of the simulator's system.log.\n    app_bundle_id: string, the bundle id of the app.\n\n  Returns:\n    True if the app failed to launch on simulator.\n  "
    pattern = re.compile((_PATTERN_APP_CRASH_ON_SIM % app_bundle_id))
    return (pattern.search(sim_sys_log) is not None)
Checks if the app failed to launch on simulator.

If app_bundle_id is not provided, will check if any UIKitApplication failed
to launch on simulator.

Args:
  sim_sys_log: string, the content of the simulator's system.log.
  app_bundle_id: string, the bundle id of the app.

Returns:
  True if the app failed to launch on simulator.
def IsAppFailedToLaunchOnSim(sim_sys_log, app_bundle_id=):
    "Checks if the app failed to launch on simulator.\n\n  If app_bundle_id is not provided, will check if any UIKitApplication failed\n  to launch on simulator.\n\n  Args:\n    sim_sys_log: string, the content of the simulator's system.log.\n    app_bundle_id: string, the bundle id of the app.\n\n  Returns:\n    True if the app failed to launch on simulator.\n  "
    pattern = re.compile((_PATTERN_APP_CRASH_ON_SIM % app_bundle_id))
    return (pattern.search(sim_sys_log) is not None)