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 111763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:26:16+00:00 2026-05-11T02:26:16+00:00

I’m getting this message each time I compile my project: RunIPhoneUnitTest.sh: line 92: 31389

  • 0

I’m getting this message each time I compile my project:

RunIPhoneUnitTest.sh: line 92: 31389 Abort trap              '$TARGET_BUILD_DIR/$EXECUTABLE_PATH' -RegisterForSystemEvents 

I understand is a problem in my code, but then I don’t figure how solve or found it.

The strange thing, is that I get this with this call:

-- This is the interface @interface DbObject : NSObject {     NSInteger Id;     NSDate* timeStamp; }  @property (nonatomic) NSInteger Id; @property (nonatomic, retain) NSDate *timeStamp; ---- This fail with above error ---- NSString * filter = [NSString stringWithFormat:'id = %@', ds.Id, nil]; 

BUT the wird thing is that I delete that line, that method and still get it! Is making my crazy.

Currently, I’m thinking in delete code until not get a error & start adding it, but wonder if exist a more pragmatic solution…

  • 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. 2026-05-11T02:26:17+00:00Added an answer on May 11, 2026 at 2:26 am

    An abort trap usually means that abort was called somewhere. This is most likely happening because your unit test harness code is throwing an exception that it’s not expecting and simply handling this by calling abort(3). The abort call is not very easy to debug because it provides no information regarding who called it or why, never returns and generates a SIGABRT. You could install a new handler for SIGABRT and place a breakpoint there and then at least examine the current call stack… but read the rest for information on why this is happening in the first place.

    However, the problem with your code above is that NSInteger is not an object type, it’s a regular primitive. To correct your error, replace the failing line with this:

    NSString *filter = [NSString stringWithFormat:@'id = %lld', (long long)ds.Id]; 

    First, stringWithFormat takes an NSString object as a parameter, so you need to use the ‘@’ character to specify that the string literal is an NSString. This is very important since @'blah blah' is actually translated into an object. The call you’re making to stringWithFormat is expecting the NSString object information to be resident at that memory address, but instead it’s getting a string of characters and is most likely exploding there. Make sure that all your string literals are @'blah blah' where an NSString type is expected and that they’re not simple c-strings.

    Second, the ‘@’ character in the format string specifies an object. Since NSInteger is not an object, you can’t use this format character. Instead use %lld to specify a long long integer. Finally, you don’t need to add the nil at the end of the parameter list when using stringWithFormat since the format string itself specifies how many parameters to expect.

    As an aside, the reason that %lld is used instead of just %d is that NSInteger changes size depending on whether you’re compiling for a 32-bit or 64-bit target. By promoting the NSInteger to the long long type and using the %lld specifier you make sure that you won’t have truncation issues in the future if you compile for 64-bit and your NSInteger value requires more than 32 bits to store.

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

Sidebar

Related Questions

No related questions found

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.