def _bundle_dsym_path(apple_bundle):
    """Compute the dSYM path for the bundle.

    Due to b/110264170 dSYMs are not fully exposed via a provider. We instead
    rely on the fact that `rules_apple` puts them next to the bundle just like
    Xcode.
    """
    bin_path = apple_bundle.archive.dirname
    dsym_name = apple_bundle.bundle_name + apple_bundle.bundle_extension + ".dSYM"
    return bin_path + "/" + dsym_name