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 an Interactive Story App with Swift 2 Adding Sound Effects Repositioning the Text Field

Adam Young
Adam Young
4,147 Points

How to fix crash when tapping Start Adventure button?

Hi,

I'm running into issues when I tap the Start Adventure button when after I type in my name.

I get this message in the debug area: "fatal error: unexpectedly found nil while unwrapping an Optional value (lldb) "

Two lines of code are highlighted red:

return UIImage(named: self.rawValue)! from InteractiveStory.Swift artwork.image = page.story.artwork from PageController.Swift

Let me know what else I need to provide to help solve this crash.

Thanks, Adam