Objective-C instantiateViewControllerWithIdentifier returns nil
<p>I opened my project after a week and it seems, for all the new <code>UIViewController</code> I create in the <code>StoryBoard</code>, <code>instantiateViewControllerWithIdentifier</code> is returning is nil. All the <code>ViewControllers</code> which are already in the project are working fine.</p>

<pre><code>GCHConnectViewController* gchCVC = [self.storyboard instantiateViewControllerWithIdentifier:@"GchConnect"];
navigationController.viewControllers = @[gchCVC];
</code></pre>

<p>First line is returning nil, my initial thought was that <code>self.storyboard</code> is returning nil, so I tried this and put breakpoint.</p>

<pre><code>if (self.storyboard != nil) {
    GCHConnectViewController* gchCVC = [self.storyboard instantiateViewControllerWithIdentifier:@"GchConnect"];
    navigationController.viewControllers = @[gchCVC];
}
</code></pre>

<p>and its going to inside the if and crash at the second line..</p>

<p>I've also added the class and <code>storyboard</code> id correctly.</p>

<p><a href="https://i.stack.imgur.com/MR94V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MR94V.png" alt="enter image description here"></a></p>

<p>If I try to load another <code>ViewController</code> which was already there, it works, but not new ones.</p>

<p>Can't seem to figure out what is the problem. Any help is appreciated.</p>

<p>I've a navigation drawer. switching to other ViewController except with the one with identifier 'GchConnect' (ie. indexPath.section == 1 and indexpath.row == 0 ) works. They are all in the same storyboard</p>