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 Loading Data From a Resource Finishing Touches

NIKOLA RUSEV
NIKOLA RUSEV
5,293 Points

fatal error: invalidSelection: file /... help??

i get this error and i check 100 times. i follow the example with every step.

also i want to ask when i open the project first time there was some error but with the depoloyment. I make some change and it succeed. (is there a chance this error to be conected with deployment?)

and someone to send me the correct code so i can move further?? my email: **********@yahoo.co.uk

Moderator Edit: Removed personal information from post. Please take caution when posting to a publicly accessible forum. Private information (i.e. Email addresses can be accessed by anyone).

Jeff McDivitt
Jeff McDivitt
23,970 Points

The correct code for the project is underneath the video in the downloads section. Download it and compare to your code to see what is causing the error

1 Answer

I had a fatal error myself and I traced it back to the VendingSelection enum where I had one of the items mistyped. this will result in an error when trying to compare the keys in the plist file. Check out your code against the Teacher's code.