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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Andrei K](https://secure.gravatar.com/avatar/e158f7f77cfb7400a30b389b68fcf60f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Andrei K
7,601 PointsThis class is not key value coding-compliant for the key playlistImageView0
I'm getting this error:
Algorhythm[5154:897155] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fcfe9c90500> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key playlistImageView0.'
I've usually found that the issue is somewhere in outlets, could anyone give me a run-down of what outlets should exist for buttonPressLabel, aButton, and playlistImageView0? I think that may be the root of the issue.
1 Answer
![Tommy Choe](https://uploads.teamtreehouse.com/production/profile-photos/694572/micro_Profile_Pic_Gym.jpg)
Tommy Choe
38,156 PointsHey Andrei, Your view controller may may have the wrong class in your xib. Look through this page and see if the most voted solution works for you. http://stackoverflow.com/questions/3088059/what-does-this-mean-nsunknownkeyexception-reason-this-class-is-not-key
Let me know if it worked for you.
Andrei K
7,601 PointsAndrei K
7,601 PointsI took a look but I have no such file (to my knowledge). All I have are AppDelegate.swift, PlaylistMasterViewController.swift, PlaylistDetailViewController.swift, Main.storyboard, MusicLibrary.swift, Playlist.swift, LaunchScreen.storyboard, and Info.plist. There are a few other miscellaneous files but no .xib files.
Tommy Choe
38,156 PointsTommy Choe
38,156 PointsHmm.. ok so I'm thinking it could be that you have an orphan outlet in your storyboard file. This could be the case if you deleted the playlistImageView0 property but not the connection referencing it.
If that's the case try this: Go to the storyboard file and click on the imageview itself. Then open the connections inspector (cmd + 6) and check if the connections are being made appropriately. If you still have the playlistImageView0 property, make sure that that's the only one being referenced. If you've deleted the property, make sure there are no connections being made. Close out any connections by pressing the small 'x'.
If you're still getting the error, try posting up your code so that we can see if there's anything wrong with your code.