def _dest_path(path):
    """Returns the path, stripped of parent directories of .dSYM."""
    components = path.split("/")
    res_components = []
    found = False
    for c in components:
        # Find .dSYM directory and make it be at the root path
        if c.endswith(".dSYM"):
            found = True
        if found:
            res_components.append(c)
    return "/".join(res_components)