Unable to print any variables using lldb and Swift 3 on fresh Xcode 8 GM project without Carthage

Originator:javier.api
Number:rdar://28477944 Date Originated:09/26/2016
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8 GM
Classification: Reproducible:Always
 
Summary:
I haven't been able to use lldb with Swift in Xcode since Swift first came out. In the most recent months, I was under the impression that this was because I was using Carthage, which according to Apple is not supported due to the use of precompiled Swift binaries.

However, I recently started playing with a side project without the use of Carthage, and after writing just a couple hundred lines of Swift on a branch new Xcode 8 GM project, as soon as I tried to set a breakpoint and `po` anything, I only got lldb errors everywhere.

See open source Github project that I used to reproduce this: https://github.com/JaviSoto/SwiftPoker. In case I push more commits, try commit hash `28c3b4acfe4c1bfa80a99f4071f75b00c99762b4` where I definitely reproduced these errors. See attached screenshots for examples of the portions of code where I set the breakpoints and the errors I got.

Steps to Reproduce:
1. Create Xcode 8 Swift project
2. Write some Swift
3. Set breakpoints in Swift code
4. `po variable` in lldb

Expected Results:
Variable contents are printed in the debugger

Actual Results:
Different types of errors appear, `po` never works.

Version:
Xcode 8 GM
Swift 3.0 GM
OS X 10.11.6

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!