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 Build a Playlist Browser with Swift Refactoring Our Code Determining Playlists Programmatically

Tim Lucke
Tim Lucke
1,951 Points

fatal error: unexpectedly found nil while unwrapping an Optional value

I'm getting an error saying that the playlistImageView0 variable is set to "nil" and the app subsequently crashes. I've compared my code against Prasan's and everything is exactly the same so I'm guessing something isn't "hooked up" correctly in the storyboard. Can anyone help?

have you tried using bang operators to the value?

have you try upgrading xcode?

1 Answer

David Miller
David Miller
3,453 Points

I ran into a similar issue. Check to make sure you changed the seque.identifier's in both locations. I noticed that I only changed one. Hope this helps.