This has gone through some Xcode updates - and now, it looks like there are a few issues. I looked at this briefly and it seems like stub.sh is no longer in the runfiles dir when calling Bazel build on 5.0.0.
There should be a series of PRs to make this work consistently again