bazelbuild / bazelbuild/rules_apple

--run_under flag not working for macos_application

Open
#739 5 comments 0 reactions 0 assignees View on GitHub
P3
Dominant language
Starlark
Stars
593
Forks
334
Avg merge
16h 48m
Merged PRs (30d)
9

Description

E.g.: `bazel run -c dbg --run_under=lldb //examples/macos/HelloWorld`

Output:
```
(lldb) target create ".../execroot/build_bazel_rules_apple/bazel-out/darwin-dbg/bin/examples/macos/HelloWorld/HelloWorld"
error: '.../execroot/build_bazel_rules_apple/bazel-out/darwin-dbg/bin/examples/macos/HelloWorld/HelloWorld' doesn't contain any 'host' platform architectures: x86_64h, x86_64, i386, x86_64
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `bazel run -c dbg --run_under=lldb //examples/macos/HelloWorld` and inspect how `macos_application` handles `--run_under`. Trace the generated `HelloWorld` executable and the reported architecture mismatch; done means the command can launch the macOS application under LLDB without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.