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 trialKen Gerlinger
2,898 PointsI get a fatal error (invalidRessource) when launching the app.
It seems like I typed something wrong while following the video. Maybe it is in those lines of code? Otherwise could someone explain to me what might be a reason for a Thread 1: FatalError: invalidRessource ?
Anywax thank you very much !
let vendingMachine: VendingMachine var currentSelection: VendingSelection?
required init?(coder aDecoder: NSCoder) {
do {
let dictionary = try PlistConverter.dictionary(fromFile: "VendingInventory", ofType: "plist")
let inventory = try InventoryUnarchiver.vendingInventory(fromDictionary: dictionary)
self.vendingMachine = FoodVendingMachine(inventory: inventory)
} catch let error {
fatalError("\(error)")
}
super.init(coder: aDecoder)
}
1 Answer
Johnny Nguyen
3,875 PointsYou can download the project in the "Download" session. You can see "Project Files", which is upon "Zip File". Click and download it. Unzip and then open it in XCode.
You can compare your project with Pasan's Project to see the difference.