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
)
No solution above work for me. I fix it with this:
note: this only for project with cocoapod installed project
I simply removed the file causing this issue (just reference not delete) and re-added it again.
Here are the steps to fix this issue:
Uncheck target for the xib file -> clean the project->then check the target->clean the project-> run/build the project. Working in xcode 8.x
I'm using Xcode 9.2 and all the above answers didn't solve the issue. My issue was that i added a constraint accidentally to the TableViewCell
Content View.
And content view is not constraint applicable and i'm not supposed to add constraints to it. It is already locked. But i really don't know how i added constraint to it accidentally.
After deleting the constraint everything started working again perfectly fine.
I thought this answer would help somebody having my same issue.
Just close your Xcode and open it again. issue will be gone.