-
Notifications
You must be signed in to change notification settings - Fork 88
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
[xcodeproj] Local breakpoints do not work when sandbox is enabled #108
Comments
Hey, I am trying to get breakpoints working on Xcode while using the
But I cant get it to work. Are there any other steps required? 🤔 EDIT:
Result: breakpoint did not stop the execution |
Will take a look, thank you |
@amberdixon We tried the same setup steps as @acecilia and also reproduced the same result: we did not hit a local breakpoint when set in Xcode 11. Were you able to reproduce @acecilia's issue? We would be happy to help investigate / fix if possible, but don't want to duplicate any investigative work that you have already done on this issue. |
@amberdixon could you give an update on this? 🙏 |
Hi all! This is working for me, if I do the following:
Note that I do not need to disable sandbox mode anymore. I think there have been some changes to this repo since October that may have fixed the issue. I'm using Xcode 11.6 on BigSur (Mac OS v11.0.1). I'm also able to hit breakpoints in main.m when I run the iOS-9.3-AppHost scheme. Perhaps #127 made a difference here? In any case, this issue is not happening anymore. |
@amberdixon I just followed your steps but on Xcode 12.3 and 12.2 and can't make breakpoints work. Then I was wondering is it anywhere stated here that these rules only work with Xcode 11.x ? cc @segiddins |
They should work equally well on 11 and 12 |
@segiddins I was following exactly the steps as above and I can't seem to get breakpoints working. Do you have any advice how to debug this? I would be happy to investigate it. |
Same here, cant get the breakpoint to work 😢 . Followed these steps:
The breakpoint does not stop execution of the test. Running on:
I also run on code 11.6 with same results. I am bit puzzled at this point, only difference I see with @amberdixon is Catalina VS bigSur |
Hi all. It looks like there is an issue with sandboxing is not enabled. Thanks for reporting the issue, apologies for closing it too early. Furthermore, when you change the sandbox flag (i.e. turn it on or off), you must then close Xcode, run In order to get breakpoints to work, you should:
|
Link to the issue that describes the sandboxing problem (#108)
See #98 (comment) for context.
"In order for the example applications and tests in the rules_ios repo to be debuggable from Xcode, you must:
Disable sandboxing in .bazelrc.
Update the flag in the tools/xcodeproj_shims/build-wrapper.sh to refer to --//rules:local_debug_options_enabled rather than --@build_bazel_rules_ios//rules:local_debug_options_enabled"
The text was updated successfully, but these errors were encountered: