Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7690343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:22:25+00:00 2026-05-31T20:22:25+00:00

I am battling an issue in which my application crashes while launching. When trying

  • 0

I am battling an issue in which my application crashes while launching. When trying to run my application in the iPhone simulator it immediately breaks in the main function. I cannot determine why this is. In my applicationDelegate I am attempting to catch the exception by using NSSetUncaughtExceptionHandler.

    void uncaughtExceptionHandler(NSException *exception){
    NSLog(@"%@",[exception reason]);
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{  
    NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
    return YES;
}

This does not seem to help as my application still breaks in main() and never seems to call application:didFinishLaunchingWithOptions:

I have also tried to set the global breakpoint, objc_exception_throw at the user level. Again the application just seems to break on main()

Can someone provide me with some tips or tricks I can use to try and track down this problem?

Thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:22:26+00:00Added an answer on May 31, 2026 at 8:22 pm

    In XCode, go to your Breakpoint Navigator (cmd+6).

    In the bottom left click on the plus button, click on add Exception Breakpoint. Select All exceptions and On Throw.

    This should create a breakpoint that will help you identify where any exceptions are being generated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm battling out of memory issues with my application and am trying to get
I have an issue with a query I'm trying to run on some data,
I'm battling with Android's awful layout system. I'm trying to get a table to
So I have been trying and battling with this for a few hours now.
I've been battling with this issue for a couple of days now. I have
I've been battling with OAuth and Twitter for 2 weeks now trying to implement
So I have been battling this issue for awhile now and tried many different
Hi I have been battling with this issue all day. I have a vs2010
I've been battling with this issue all day. I am hoping someone has an
I've been battling this one for a while now. I have a stored proc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.