When I make changes to the MainStoryboard.storyboard none of these changes make it to my iOS device even though it builds. I tried deleting all data for the application from the device and restarting everything but now when I build and run the code on the iPhone I get the following error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard' in bundle NSBundle </var/mobile/Applications/BE0CBEE9-1E95-443A-97CF-53CCD66A2D0C/WalkBack.app> (loaded)'
From what I can tell, my plist file has the appropriate information for the name of the storyboard.
Any ideas what is wrong, or how can I fix it? Right when this problem happened the .xcodeproj file started opening in XCode 3. Did this mess up some settings? I'm terribly lost.
I've seen this happen a handful of times with the files with my students, and today I had it happen to me as well. What seems to fix it for me:
My suspicion is that there is a bug somewhere triggered by adding files to the project or certain edits to the storyboard. It causes the localized files to not be copied into the bundle (I think). Removing the storyboard and re-adding it to the project seems to fix the hiccup.
I have universal app, so with one storyboard for iPhone and another one for iPad, iPad simulator works, but when i try to lunch iPhone simulator i obtain this error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'MainStoryboard' in bundle NSBundle </var/mobile/Applications/BE0CBEE9-1E95-443A-97CF-53CCD66A2D0C/WalkBack.app> (loaded)'
I tried all your solutions but anyone didn't work. I always had same error. I solved removing localization parameter on iPhone storyboard and setting for both storyboard the same localization.
I hope that helps you!
There is another way!
Go to your project, select your target and click on Build Phases. Then unfold "Copy Bundle Resources" and add the MainStoryboard.storyboard to the resources. You can do this by clicking on the little '+' sign on the bottom of the unfolded list.
You don't have to delete the file from your project just re-add it to the resources.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With