'Storyboard doesn't contain a view controller with identifier "SideMenuController"

message: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x6000036306c0>) doesn't contain a view controller with identifier 'HomeViewController''

I try to add side menu view to my MainViewController. And get error while doing that code

guard UIStoryboard(name: "MainViewController", bundle: nil).instantiateViewController(withIdentifier: "SideMenuViewController") is SideMenuViewController else {
            fatalError("Unable to Instantiate Quotes View Controller")
        }

I set all identifiers and they work, but only that part of code don't go. I tried: clean building folder, set another identifier, use another storyboard and nothing help.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source