title: NSInternalInconsistencyException in Xcode 5 with iOS 7: 'Story Board: There are unexpected subviews in the container view.'
body: <p>I just installed Xcode 5.0.2 with OS X Mavericks. When running my project which is originally built for iOS 5.1 on Xcode 4.5 I get the 'NSInternalInconsistencyException' error as shown below: </p>
  
  <pre><code>*** Assertion failure in -[UIStoryboardEmbedSegue perform],    
  /SourceCache/UIKit_Sim/UIKit-2903.23/UIStoryboardEmbedSegue.m:19
  
  *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', 
  reason: 'There are unexpected subviews in the container view.  
  Perhaps the embed segue has already fired once or 
  a subview was added programmatically?'
  </code></pre>
  
  <p>What I did was to solve any warnings displayed that are related to deprecated APIs, however I am still facing this problem. </p>
  
  <p><strong>My Questions are:</strong>  </p>
  
  <ul>
  <li>How do I identify which storyboard scene is responsible for the issue?  </li>
  <li>Also, is there any recommended approach to solve this problem?</li>
  </ul>
  
  <p><strong>Note:</strong> I noticed I am using iOS 7 in xCode 5 as a base SDK while it used to be iOS 6 on xCode 4.5, but the deployment target was set to 6.0 in both. Changing the deployment target in Xcode 5 to other SDK versions did not fix the issue. </p>
  
  <p><strong>Note 2:</strong> I noticed the issue does not happen when running on Xcode 4.5 on iPhone Simulator for iOS 6 and the Base SDK is set to iOS 6.0.</p>
  
  <p><strong>Storyboard Screenshot</strong>
  <img src="https://i.stack.imgur.com/H5wdo.jpg" alt="storyboard screenshot (sample)">
  The Table View Controller has a container view with an 'embed segue' to a view controller.</p>