App crash

I've recently been trying to learn Xcode and while following an online course I've run into an issue. I'm building a basic reminders app and every time I try to access the "favorite reminder" view the app crashes. I've gone back through the course videos and it seems like I've done everything correctly, but clearly I haven't. Any help is much appreciated, as I am very inexperienced and want to learn!

Error: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<RemindersApp.FavoriteReminderViewController 0x15150c2a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key reminderLabel.'

I'm not sure how to attach the project files here, so here's a link to download them from Drive: https://drive.google.com/drive/folders/1PAGVAae_vfhU1-wmagKwoOf7D73hA_16?usp=sharing

Accepted Answer

In your Main.storyboard, you have a scene called Favorite Reminder View Controller. There, you have two labels, one is connected to dateLabel of FavoriteReminderViewController. And the other is connected to both reminderLabel and titleLabel of FavoriteReminderViewController.

But your FavoriteReminderViewController does not have a label named reminderLabel, which is causing the error:

'[<RemindersApp.FavoriteReminderViewController 0x15150c2a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key reminderLabel.'

You may need to remove the wrong connection by pushing × shown in the Connection Inspector.

App crash
 
 
Q