title: "View Controller A unreachable because it has no entry points" error after adding a new View Controller B and changing it to initial view controller
body: <p>This error seems common, but I can't seem to find a similar root cause as mine so the solutions aren't working.</p>
  
  <p>I initially had single View Controller (VC 1) in my app, embedded in a Navigation Controller (NC).</p>
  
  <p>I then added a second VC 2 and removed the NC from the VC 1. Then I embedded VC 2 in a NC and made it the initial view controller.</p>
  
  <p>VC 2 is a Table View Controller that, when a cell is tapped:</p>
  
  <ul>
  <li>instantiates VC 1,</li>
  <li>alters a variable, and</li>
  <li>uses navigationController to push VC 2</li>
  </ul>
  
  <p>VC 2 contains a webView that does most of the work.</p>
  
  <p>After setting all this up, I got a breakpoint and a warning that:</p>
  
  <pre><code>“View Controller“ is unreachable because it has no entry points, and no identifier for runtime access via -[UIStoryboard instantiateViewControllerWithIdentifier:].
  </code></pre>
  
  <p>I added a new NC back to VC 1 thinking that would fix things, but it didn't. Just changed to </p>
  
  <pre><code>“Navigation Controller“ is unreachable because it has no entry points, and no identifier for runtime access via -[UIStoryboard instantiateViewControllerWithIdentifier:].
  </code></pre>
  
  <p>Not sure if this is enough information, but is there a potentially clear solution here?</p>
  
  <p>Edit:
  Adding the didSelectRowAt function in VC 2 that takes you to VC 1, in case it helps:</p>
  
  <pre><code>    override func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
          if let vc = storyboard?.instantiateViewController(withIdentifier: "Browser") as? ViewController {
              vc.selectedWebsite = websites[indexPath.row]
              vc.approvedWebsites = websites
              navigationController?.pushViewController(vc, animated: true)
          }
      }
  </code></pre>