Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did not find storyboard referenced from Main.storyboard

Tags:

xcode

ios

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

like image 472
JW Developer Avatar asked Oct 27 '15 21:10

JW Developer


People also ask

Where is the main storyboard in XCode?

If you're using XCode 11.4. 1, try to find LaunchScreen. storyboard instead in the project navigator.

How do I open the main storyboard?

To get this, open the storyboard, click the 'assistant' editor, click the 'assistant editor menu button' (immediately to the right of the > arrow at the top left of the assistant window) and select Preview.

How do I delete main storyboard?

Step 2: Delete the Storyboard Your new project has been created, now navigate to the left side of your interface, select the “Main. storyboard” file in the main folder, left-click and hit delete.

How do I rename a storyboard in XCode?

Select Modeling > Storyboard from the toolbar. Right click on the storyboard to rename and select Rename Storyboard… from the popup menu. Click OK to confirm the new name.


Video Answer


7 Answers

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

like image 102
bhavik shah Avatar answered Oct 20 '22 01:10

bhavik shah


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

like image 29
MKoosej Avatar answered Oct 20 '22 00:10

MKoosej


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

like image 44
Nik Kov Avatar answered Oct 20 '22 00:10

Nik Kov


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

enter image description here

like image 41
Melkon Avatar answered Oct 20 '22 01:10

Melkon


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.

like image 38
phatmann Avatar answered Oct 20 '22 01:10

phatmann


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

like image 35
Sherwin Zadeh Avatar answered Oct 19 '22 23:10

Sherwin Zadeh


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

like image 33
mohsen Avatar answered Oct 19 '22 23:10

mohsen