lldb with Swift returns error: use of unresolved identifier
| Originator: | skabber | ||
| Number: | rdar://17761897 | Date Originated: | 7/22/2014 |
| Status: | Closed | Resolved: | |
| Product: | Xcode | Product Version: | 6.0 (6A267n) |
| Classification: | Major | Reproducible: | Always |
Summary: In any Swift project I create trying to use lldb to po a variable results in an error. For instance in the attached sample project using po to print the "name" variable results in this error. error: <EXPR>:1:1: error: use of unresolved identifier 'name' name ^ Steps to Reproduce: 1. Start a new project in Xcode 2. Set a local variable in ApplicationDidFinishLaunching 3. Break after that variable 4. use lldb to po that variable Expected Results: I would expect the value to be printed in the console. Actual Results: error: <EXPR>:1:1: error: use of unresolved identifier 'name' name ^ Version: OS X 10.10 (14A298i) Xcode Version 6.0 (6A267n) Notes: Configuration: Retina Mac Pro Attachments: 'newSwiftTest.zip' was successfully uploaded.
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!
Dupe
Closed as dupe of 17375895