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 Vending Machine App in Swift 2.0 Using the Vending Machine Working with Steppers

Michael Murray
Michael Murray
6,037 Points

Arrrggg... Getting a SIGABRT from AppDelegate.swift file

After adding in the Stepper code the compile is successful but it crashes with the following error from AppDelegate file: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<VendingMachine.ViewController 0x7ff301616af0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key updateQuantity.'

Michael Murray
Michael Murray
6,037 Points

My code: @IBAction func updateQuantity(sender: UIStepper) { }

Still get the error even after I comment out the code.