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 Debugging Our App Exception Breakpoints

Juran-Perez Moodley
Juran-Perez Moodley
2,018 Points

I cant seem to find the bug in my app, please help!

App crashes and looks very similar to Pasan's App uo till Exception Breakpoint video.

1 Answer

Can you show us the error that you receive in Xcode When the app crashes it should give you a load of output that you can paste in here.

Thanks,

Steve.

Juran-Perez Moodley
Juran-Perez Moodley
2,018 Points

Here is the code that error was initially bringing me to: @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
    // Override point for customization after application launch.
    application.setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
    return true

However, right now app doesnt crash but my facts are not changing.

Yes, the code will crash into somewhere random but the error will be displayed in Xcode at the bottom of the screen.

As you've got past that but now have another issue, can you post your code for the part of your app that's not working.

Thanks,

Steve.