Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLevi Lais
5,975 Points2014-10-21 07:12:51.005 BlogReader[3645:5545886] Failed to instantiate the default view controller for UIMainStoryboardF
I'm getting this error when I run the Blog Reader app for the first time (the first time he tells us to run it). I'm running the latest version of Xcode and it doesn't have an "empty app" option - so I'm trying to configure the single page app myself and follow along. I deleted the view controller.m and .h files and created the files he asks us to instead. I then followed every step - and I'm getting a blank screen with this error. Any ideas on how to fix this?
Levi Lais
5,975 PointsI just did what you suggested. The error went away - which is progress - but the screen remains black. No content shows up. Any idea why that might happen?
Kyle Pontius
6,190 PointsAwesome, that's good progress. My guess is that your blank screen problem occuring is because you haven't given the app any storyboard to use (which is what you just deleted in that "Main Interface" text box), so when it loads the app, the app doesn't know where to start.
Your best (fastest) solution would probably be to go to the current video that you're working on and click on "Downloads" below the video, then find the "Project Files" file that contains the app in its current state (and sometimes a little more) in the course. Then you can just start from where they are at, or perhaps even go back further and download the app in an earlier version from a different video if you want to start from the ground up.
Let me know if that doesn't work well for you and I can help you walk through and clean out the Single View app for use if you'd really like to do that.
Levi Lais
5,975 PointsThat's a good idea. I wasn't aware that you could download the files for the project up to the point of the current video. That will definitely help. It sucks not being able to do it all from scratch - but Xcode 6 doesn't even have an empty app option - so I'm not too concerned. I suppose I'm just learning anyways - but it sucks to "build an app" that someone else built haha. Oh well - this helps a ton. I know I've done everything that he's done - so I can take solace in that, I suppose :).
Thanks.
Kyle Pontius
6,190 PointsI does take some of the fun out of it when you're trying to follow along, for sure. I was using Xcode 6 Beta's while I was taking many of those courses, and I know for sure it didn't have an "Empty Application" then. However, when I checked just now if you go:
New Project > iOS menu > Other > "Empty"
That is an empty application, but it is completely empty, which isn't terribly useful either; at least for what you're doing in these tutorials.
Best of luck!
Kyle Pontius
6,190 PointsAlso, I'm going to copy and paste the answer that solved your initial problem into an actual answer so you can mark it "Solved" in case anyone has a similar problem.
1 Answer
Kyle Pontius
6,190 PointsIn your app's settings:
Settings > "General" tab > Main Interface (under "Deployment Info" section)
Have you deleted everything in the "Main Interface" box? If not, it'll probably be attempting to instantiate your original view controller, which is obviously missing at this point.
Hopefully this helps!
Kyle Pontius
6,190 PointsKyle Pontius
6,190 PointsIn your app's settings:
Settings > "General" tab > Main Interface (under "Deployment Info" section)
Have you deleted everything in the "Main Interface" box? If not, it'll probably be attempting to instantiate your original view controller, which is obviously missing at this point.
Hopefully this helps!