Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Watch App LLDB settings aren't applied correctly #1237

Closed
BalestraPatrick opened this issue Oct 6, 2022 · 0 comments · Fixed by #1536
Closed

Bug: Watch App LLDB settings aren't applied correctly #1237

BalestraPatrick opened this issue Oct 6, 2022 · 0 comments · Fixed by #1536
Assignees
Labels
bug Something isn't working

Comments

@BalestraPatrick
Copy link
Contributor

Describe the bug

To apply our LLDB settings, we set a custom bazel.lldbinit file in every generated scheme. Unfortunately, for some reason Apple Watch schemes don't support this property.

Reproduction steps

This should be reproducible in an empty project with a watchOS target in BwB. As you can see, there's no "LLDB Init File" field. I checked Xcode 14 and also that this doesn't seem to be supported.

Screenshot 2022-10-06 at 2 58 36 PM

After moving the contents of my generated bazel.lldbinit to ~/.lldbinit, breakpoints started working just fine.

Expected behavior

LLDB settings should be applied correctly in order for debugging to work.

Versions

  • Bazel: 5.3.1
  • rules_xcodeproj: 0.9.0

Additional context

Internally in our existing non-Bazel generated project, we work around this by modifying the user ~/.lldbinit directly. This is not ideal and breaks in some cases (for example when changing project or when using multiple copies of the same project), so we should find a way to address this.

@BalestraPatrick BalestraPatrick added the bug Something isn't working label Oct 6, 2022
@brentleyjones brentleyjones added this to the 1.0 milestone Oct 6, 2022
@brentleyjones brentleyjones added BwB Related to Build with Bazel mode and removed BwB Related to Build with Bazel mode labels Oct 6, 2022
@brentleyjones brentleyjones self-assigned this Jan 7, 2023
brentleyjones added a commit that referenced this issue Jan 7, 2023
Fixes #1237. Fixes #1523.

There are some schemes that don't respect the custom lldbinit, such as
watchOS apps and app extensions. To accommodate all targets equally, we
now modify `~/.lldbinit` to load a `~/.lldbinit-rules_xcodeproj`. We can
revert this change if Xcode fixes its scheme creation 🙂.
@github-project-automation github-project-automation bot moved this from Todo to Done in rules_xcodeproj: 1.0 Jan 7, 2023
@brentleyjones brentleyjones modified the milestones: 1.0, 0.12.0 Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants