After updating to Xcode 7.0.1 (7A1001), cannot 'po' variables in LLDB
| Originator: | serieuxchat | ||
| Number: | rdar://22912427 | Date Originated: | 30-sep-2015 |
| Status: | Closed | Resolved: | |
| Product: | Developer Tools | Product Version: | 7.0.1 (7A1001) |
| Classification: | Other bug | Reproducible: | Always |
After I updated Xcode to version 7.0.1 (7A1001), I can no longer 'po' variables in LLDB console.
Steps to Reproduce:
1. Run project in the Simulator (iPhone 6, iOS 9.0)
2. Stop inside viewDidLoad in a view controller (put a breakpoint)
3. 'po' self in LLDB console.
Expected Results:
The object is printed
Actual Results:
The following error message is printed instead
error: <EXPR>:9:9: warning: initialization of variable '$__lldb_error_result' was never used; consider replacing with assignment to '_' or removing it
var $__lldb_error_result = __lldb_tmp_error
~~~~^~~~~~~~~~~~~~~~~~~~
_
<EXPR>:15:5: error: value of optional type 'Optional<UserLoginViewController>' not unwrapped; did you mean to use '!' or '?'?
$__lldb_injected_self.$__lldb_wrapped_expr_7(
If I try 'po self!', I get:
error: <EXPR>:1:5: error: cannot force unwrap value of non-optional type '$__lldb_context' (aka 'UserLoginViewController')
self!
~~~~^
<EXPR>:15:5: error: value of optional type 'Optional<UserLoginViewController>' not unwrapped; did you mean to use '!' or '?'?
$__lldb_injected_self.$__lldb_wrapped_expr_8(
^
The debugger is severely degraded and is barely usable. I tried deleting derived data - to no avail.
Version:
version 7.0.1 (7A1001)
Complete reinstallation of Xcode does not help.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Did you ever find a solution to this? It just started happening to me in Version 7.2 (7C68)