Search code examples
iosswiftxcodestoryboard

Swift Storyboard "Illegal Configuration"


While my swift project was running, it suddenly started giving an error and is not being built. In the log records, there is an error called Illegal Configuration in .storyboard file, but when I go into my files, no error appears. I just get this error while building.

Illegal Configuration error in storyboard


Solution

  • It seems that in the storyboard you are trying to make an outlet from eg a view controller to eg a prototype cell in a table view or collection view. That is indeed illegal, as it is meaningless. Don't do that.