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 Build a Simple iPhone App with Swift Getting Started with Xcode Tour of Xcode

Black screen

When I compile my empty app (only create didn't change anything) I can see black screen not white with date battery..

5 Answers

Michael Metzger
Michael Metzger
4,529 Points

I just noticed that It works exactly the same way as on the video. My transition is probably much slower because I'm working off of an IMac with a traditional hard drive. The instructors are all working off Mac laptops which all have SSD drives.

Felix Ayala
Felix Ayala
5,541 Points

Maybe you Main Interface is not set (Main.storyboard).

To set up, click on your Target, then in General Tab look for Main Interface and select you Main Storyboard.

Do you get a warning when your app runs?

Michael Metzger
Michael Metzger
4,529 Points

I get the black screen initially as well. If you wait about 1 minute, it will transition to the white one.

Felix Ayala
Felix Ayala
5,541 Points

Do you have any repo to see your Project?

Michael Metzger
Michael Metzger
4,529 Points

I'm not sure what you mean. It takes a while for my IOS simulator to launch. But once it launches once and I keep it open, there is no black screen issue.

Felix Ayala
Felix Ayala
5,541 Points

Do you have Black Launch Images Screens?