Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSeth Roope
6,471 PointsXcode Playground struct, weird results... __lldb_expr_1.Point
When I create an instance of a struct I am getting something different than in the video. Where Pasan creates an instance of Point his Xcode shows "Point" on the side. When I create an instance of Point I am getting 'lldb_expr_1.Point'. Seems to be accomplishing the same thing, but then when I go to create an instance of fullName in the next exercise I am getting something similar, 'lldb_expr_1.Person'. Anyone know what is going on here?
Martel Storm
4,157 PointsIf you find out before me post your result on here
4 Answers
Alex Connor
2,809 PointsI'm getting the same thing, however it looks like where you have __lldb_expr_1.Point, I have __lldb_expr_88.Point.
Again, it doesn't seem to be affecting anything but I'm curious as to what it might be. Perhaps it's got something to do with the current version of Xcode?
Franklin Byaruhanga
9,984 PointsItΒ΄s not an error, itΒ΄s the Low Level Debugger and how the Playground prints out your struct. Because Playground does not allow a custom module name it use's __lldb_expr
Martel Storm
4,157 PointsMine is acting up the same way.
Pablo Cornejo
10,404 PointsMy Xcode is acting the same way.
Does anybody know how to change this so that it doesn't show the "__lldb_expr_1" prefix?
I thought is was some kind of display setting but can't seem to change/fix it.
Seth Roope
6,471 PointsSeth Roope
6,471 PointsAnybody have any ideas? Wish I could upload a picture...