I have started a new app a few days ago and began working with the simulator to test it. I started as an empty project and manually added the storyboard. The simulator build
The simulator is not case sensitive, but the device is. If your storyboard is called MainStoryboard, not MainStoryBoard, this will cause your problem.
Tried all solutions mentioned above but didn’t worked.
After thorough research found the culprit:
Copy Bundle Resource was missing from TARGETS -> Build Phases
This got accidentally removed while removing Cocoapods.
Below are steps to fix this :
TARGETS
of your projectplus (+) button
present on top left cornerStoryboard files (Main, Launchscreen etc).
Also add Assets folder.
You can add these files by clicking on plus (+) button present in bottomderived data content
Delete the app
from Simulator/Device and run againI also had same issue, what caused this type of exception is I had written "Main.storyboard" instead of "Main". We don't have to specify .storyboard extension.
I had this problem when I accidentally opened a project with a second install of Xcode. It broke my project files permanently (which is understandable).
Go to your info.plist on Build Phases > Copy Bundle Resources and add your storyboard using the icon "+"
I had this error on the device when I added about 150 fonts to UIAppFonts
.
After I reduced their count to about 100, it went away.