Reputation: 14123
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 :
Not at all sure why this happened.
Upvotes: 8
Views: 3702
Reputation: 411
I was able to solve this problem by making sure the Localization checks had a match between the two storyboards:
Upvotes: 1
Reputation: 1679
I also had this issue, and solved it by checking target from my ViewController.
Upvotes: 19
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
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