Why can't Xcode find my class after I rename it?

I changed the name of a subclass of UITableViewCell and now I get an error when I try to cast a dequeued table view cell to that subclass. How do I fix this?


Here's the error message:


2017-12-01 21:30:33.521278-0600 DetailView04[30870:1596323] Unknown class SwitchTableViewCell in Interface Builder file.

2017-12-01 21:30:33.521721-0600 DetailView04[30870:1596323] Unknown class SwitchTableViewCell in Interface Builder file.

Could not cast value of type 'UITableViewCell' (0x1123410e0) to 'DetailView04.SwitchTableViewCell' (0x10f528250).

2017-12-01 21:30:33.523559-0600 DetailView04[30870:1596323] Could not cast value of type 'UITableViewCell' (0x1123410e0) to 'DetailView04.SwitchTableViewCell' (0x10f528250).

(lldb)

What process did you use to rename? Did it include a flurry of refactoring changes?


Did you option-clean build folder when done?

Why can't Xcode find my class after I rename it?
 
 
Q