I\'ve recently upgraded to Xcode 8 and updated my project to Swift 3. All worked fine for a little while. Storyboard loading has always been slow (even when still running Xcode
Delete your derived data from /Users/{username}/Library/Developer/Xcode/DerivedData
(You can get exact path from) File -> Project Setting: or File -> Workspace Settings
(Xcode 9.2) I had this happen right after I added a constraint to a stackview. No matter what I did, it didn't seem to fix it. I knew it had to be an auto-layout issue it couldn't resolve.
I ended up opening the Main.storyboard file in text editor and deleting the scene that was causing the issue. It will start with
<!—YourViewControllerName—>
<scene sceneID=“XXX-XXX-XXX”>
and end with </scene>
. Just highlight the entire chunk, delete, save, and try again.
Much better than starting over from scratch!
Until Apple fixes IB, in first XML line (<document>
tag) of the offending .xib:
useTraitCollections="NO"
After deleting all sorts of things listed above, and restarting Xcode. The solution was to reboot the computer. Dumb I know, but somehow a resource was tied up in IB.
I got the same problem using Xcode 9.2, fixed it by removing the stack view which wrapped up other views, I just removed the stackview and its subview tags and kept other views in the scene.