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 trial

iOS Object-Oriented Swift Complex Data Structures Instance Methods

Seth Roope
Seth Roope
6,471 Points

Xcode 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?

Seth Roope
Seth Roope
6,471 Points

Anybody have any ideas? Wish I could upload a picture...

Martel Storm
Martel Storm
4,157 Points

If you find out before me post your result on here

4 Answers

I'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
Franklin Byaruhanga
9,984 Points

ItΒ΄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
Martel Storm
4,157 Points

Mine is acting up the same way.

My 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.