user3746428
user3746428

Reputation: 11175

Could not find storyboard error

I have been having a number of issues that I have been gradually resolving, however I have encountered an error that I cannot figure out the solution to. When I try to run my app, I am getting the error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle (loaded)'

The storyboard is definitely named Main.storyboard. If anyone has any ideas, they would be very much appreciated. I am running Xcode 6 beta 3 by the way.

Upvotes: 1

Views: 3309

Answers (1)

Garry Law
Garry Law

Reputation: 3056

Losing storyboard could be because you changed the name of the app, some linkages etc. You can try a few things:

  • 'clean' the build from Product > Clean, then try running again
  • Go into project settings General tab and unset/reset the Main Interface to Main again
  • remove the Main.storyboard from the project hierarchy and re-add it again (be sure to set it as Main Interface afterwards though)

Upvotes: 2

Related Questions