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.
Ma
I had the same issue. Got it fixed using below steps :
Delete the derived data of your project
Clean your project (Shortcut : cmd + shift + k)
cmd + shift + k