Nitish
Nitish

Reputation: 14123

Xcode - Did not find storyboard named "MyStoryboard" referenced from Main.storyboard

This is quite frustrating. I was happily working on Xcode project and everything was working fine. All of sudden, when I again ran the project, got this error :

Did not find storyboard named "MyStoryboard" referenced from Main.storyboard

Haven't touched anything which should bring up this issue. Rather there was no code difference between the code I ran last time and this time.
Now I have gone through solutions suggested (few more as well). But nothing seems to break the ice. Tried these :

  1. Clean project, quit Xcode and open again.
  2. Removing Xcode's derived data
  3. Resetting Main storyboard in project setting

Not at all sure why this happened.

Upvotes: 8

Views: 3702

Answers (4)

azcoastal
azcoastal

Reputation: 411

I was able to solve this problem by making sure the Localization checks had a match between the two storyboards:

Storyboard Localization

Upvotes: 1

Changnam Hong
Changnam Hong

Reputation: 1679

I also had this issue, and solved it by checking target from my ViewController.

enter image description here

Upvotes: 19

Tom Kidd
Tom Kidd

Reputation: 12918

If anyone stumbles across this in the future: the issue for me was that while I had moved/re-added/un-localized a Storyboard file, when it was re-imported it did not get added back to the main target of my app, so check that too.

Upvotes: 2

Omaty
Omaty

Reputation: 445

I had the same problem and I tried like you all the suggested solutions but it was not enough. My problem was the some of my storyboards were localized, and some others not. So by localizing all my storyboard it resolved the issue. I guess it's because it's now in the same folder.

Upvotes: 4

Related Questions