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 trial

iOS

IOS Simulator 7.1 does not display app (black screen)

I'm trying to test my app (Crystal Ball) but I can't get it to work in IOS Simulator. I click the "build and run" button and the IOS Simulator starts but it only displays a black screen. Need help solving this problem.

I'm running OS 10.9.2, Xcode 5.1 (5B130a) and IOS Simulator 7.1

Does Xcode return any errors when you run it?

No, the only thing Xcode says is "build succeed

5 Answers

set your storyboard file as the main interface in your project settings. that may fix it.

How do I set the storyboard file as the main interface? I'm having a similar problem.

If you click your project name at the top of the file explorer on the left side of xcode (the icon looks like a blue print) it should open up you project settings. In the info tab there should be a setting labeled main interface. Set your storyboard file as the main interface

I clicked on price settings but I don't see anything that can set the storyboard file as the main interface. Maybe I should start the project all over again. :(

I wouldn't start over. It's definitely there. It's in one of the first project settings tabs. Maybe general? I don't have xcode in front of me so it can't say for sure. But there is a drop down in the general settings labeled main interface. Click the drops down and select your storyboard or just type the name of the storyboard in the blank

I looked in the general preferences. Here's what I have:

https://www.dropbox.com/s/5vfievhvsimug7q/Photo%20Jul%2006%2C%202%2025%2030%20PM.jpg

Nothing regarding to any storyboard or main interface.

It's in your project settings, not xcode preferences. See my post from earlier on how to get to your project settings

.