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

Kayondo Martin
Kayondo Martin
7,481 Points

My app stops in the loading processes.

In the loading process, my app stops, and I get a warning from the collectionView method that returns a cell. Then something like (lldb) in the console, and some memory addresses in the left of the console...

That's wildly to broad of a scope to help....can you give us a screen shot of the error console/your Xcode so we can see what the error is? Possibly the collectionView is terminating because it found nil somewhere, but without seeing the code I'm taking guesses in the dark.

1 Answer

Xavier D
PLUS
Xavier D
Courses Plus Student 5,840 Points

Hi,

When you state lldb, I believe if refers to the Xcode debugger.

When I see my code looks correct but I still get errors during runtime, I noticed so far two things mess me up.

Which are disconnected outlets and breakpoints...

...maybe you deleted a view added another view but didn't reconnect it to the outlet

...maybe in your attempt to connect a view to an outlet, or maybe due to a misclick, you accidentally added a breakpoint to your code. You can add breakpoints simply by clicking on the margin where the line numbers and outlet connections appear in the standard editor/text editor.

Breakpoints appears as blue horizontal bars with the right end shaped like an arrowhead pointed to the right.

I've noticed that with breakpoints a green notification appears near or on the same line the breakpoint was inserted, but not all the time. If you see them just right-click and select the option to delete. I also noticed that when I do have breakpoint error, the output in the console shows some strange error that include some number statements that have an appearance of memory addresses, and with lldb at the end enclosed in parentheses, highlighted in light blue/green--and that's kind of what you stated in your question...

If still no dice, try restarting the computer, or maybe you can revert to a previous time when your app had no errors and pull that file if you have a back up and back up regularly.