While editing in the storyboard, specifically assigning a view controller to a specific class, I suddenly encountered this error when I wanted to run the project.
For me, I removed a whole UITableView section that was playing up. It only had one cell, but obviously something was up. Removing it and restarting Xcode fixed it for me.