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 Improving Our User Interface Adding a Pop of Color

Iphone Simulator- 5s- is not launching the fun fact app.

Once I did the necessary changes in, “View controller-based status bar appearance” by setting the value to “No”

and went to AppDelegate.swift file and inserted this info below:

application.setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)

my fun fact app wont launch.

when I press the play button to run my program it says “build succeeded”. The simulator-iphone pops- up. The icon opens-up and its just a black screen the only thing visible is the Carrier, time and the battery icon.

I restarted the app from scratch still the same issue.

3 Answers

I was having the same issue and this is what fixed it for me.

  • From project navigator click on the Fun Facts project name (the first item in the list)
  • From the general tab, scroll to deployment info > main interface
  • set that to the main storyboard

Nice fix. Don't know how/why that setting changed by itself, but oh well. Now it's all good!

Pull up the simulator with the black screen. Once it's selected, click "IOS Simulator" at the top left of the screen. Then click "Reset Content and Settings" and see if that works. I was having the same issue today and that fixed it for me. Hope this helps!

Kyla Thompson
Kyla Thompson
3,831 Points

I'm having that same issue. I just tried clicking "Reset Content and Settings" and it's still not working. I have a "LaunchScreen.xib" file that isn't on the video, could that be the issue?