JW Developer
JW Developer

Reputation: 123

Did not find storyboard referenced from Main.storyboard

I am using Xcode 7.1 and I am using storyboard references to go to different storyboards. The problem is everytime I run the simulator, there is an error that says, "Did not find storyboard named "Storyboard" referenced from Main.storyboard". But the storyboard reference is set to go to "Storyboard". So I need some help. Thanks in advance!

Here is my view.

enter image description here

Upvotes: 12

Views: 6641

Answers (7)

mohsen
mohsen

Reputation: 5038

XCODE 12.2

this error happened for several issues, so check the following checklist:

1 - define the initial view controller in the destination storyboard or check the storyboard id that you put is the same as the storyboard id in the destination storyboard.

2 - the destination storyboard target memberships must include all targets that checked on the first storyboard.

3- check all the localization in the destination and the first storyboard are the same. enter image description here

Upvotes: 1

Sherwin Zadeh
Sherwin Zadeh

Reputation: 1452

For me the refactored Storyboard was missing from Build Phases > Copy Bundle Resources. Adding it manually fixed the issue.

Upvotes: 1

phatmann
phatmann

Reputation: 18483

This happened to me when the one storyboard was using "Base" localization and the other "English". They need to match up or you will get linker errors.

Upvotes: 3

Melkon
Melkon

Reputation: 317

In my case, I had to add my project target as the target membership of the storyboard.

enter image description here

Upvotes: 3

bhavik shah
bhavik shah

Reputation: 754

This problem can also arise if you have somehow managed to uncheck the Target and you are running the project for that Target. Make sure you have checked all the targets you want to run the project on.

Check your file inspector

Upvotes: 33

Nike Kov
Nike Kov

Reputation: 13698

Only removing localization from storyboard file helped me. (Delete storyboard file from project and add again)

Upvotes: 6

MKoosej
MKoosej

Reputation: 3696

Make sure you have set the Storyboard Id in the right side bar. It should be the same value as you reference it.

enter image description here

Upvotes: 6

Related Questions