Storyboard doesn't contain a controller with identifier 'MainWindow' It was definitely a bug with Xcode. Restarting Xcode solved the problem.