Storyboard display issue

I get this weird behaviour of Xcode.

Version 13.2.1 or 13.2 RC (may be other).

In the storyboard I had a UITableViewController. As it does not give any flexibility to add other views in the VC, I created a new UIViewController, recreated the tableView inside as well as some other objects, added the new views I needed, redid all connections.

Then I removed the UITableViewController.

Everything works perfectly fine.

But sometimes (cannot find any pattern for the cases), when opening the project, the old UITableViewController appears in Storyboard. The new UIViewController doesn't even seem to be here. When I select different VC in SB, no information in Identity inspector or other inspector.

But it compiles and runs OK, using the new UIViewController.

I cleaned build folder, closed Xcode, reboot the Mac, to no avail.

Only way to get it solved was to close the SB and reopen it…

Is there a cache somewhere in SB that is not cleared ?

I may have found some pattern. If you open from "Recently used files", it seems to use a cached version. If you select directly from the file browser panel on the left, it is usually OK.

Storyboard display issue
 
 
Q