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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:14:50+00:00 2026-06-10T16:14:50+00:00

Okay, so from fresh (app not previously installed on the iPhone simulator), the app

  • 0

Okay, so from fresh (app not previously installed on the iPhone simulator), the app boots up fine. Then I press the home button and click on the icon and it also is fine. Then if I press the home button, then close the app from the multitasking bar, then press the icon I get the SIGKILL error.

However, when I press run in Xcode it ALWAYS works flawlessly without fail (even after I have close it from the multitasking bar, where pressing the icon fails). Is this just a quirk with the simulator? This behaviour has only begun after I have implemented some NSUserDefault stuff, to remember it’s state etc. It does remember all of the defaults though, when it works.

Any help is appreciated.

EDIT:

- (void)viewDidLoad
{

NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:
                                 [NSNumber numberWithInt:1], @"firstRun",
                        nil];
[defaults registerDefaults:appDefaults];
if ([[defaults objectForKey:@"firstRun"] intValue] == 1) {
//do the stuff required at first launch
table = [NSMutableArray array];
Stocks =[NSMutableArray array];
Money =1234.56;
mem=@"GOOG";
[defaults setDouble:Money forKey:@"money"];
[defaults setObject:mem forKey:@"ticker"];
[defaults synchronize];
self.Input.text=mem;


- (void)viewWillAppear:(BOOL)animated
{

NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
if ([[defaults objectForKey:@"firstRun"] intValue] == 0) {
    [self entered:nil];

} else if ([[defaults objectForKey:@"firstRun"] intValue]== 1){
    [defaults setObject:[NSNumber numberWithInt:0] forKey:@"firstRun"];
    [defaults synchronize];
}
[super viewWillAppear:animated];
}

Here is what I think may be relavent regarding NSUserDefaults in my MainViewController (I don’t use UserDefaults in any other viewController).

I also do a few setObjects/synchronizes in a few other methods, but they only execute when a button is clicked (which doesn’t happen when it crashes).

  • 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-06-10T16:14:52+00:00Added an answer on June 10, 2026 at 4:14 pm

    When you remove your the application from your multitasking bar, you are actually permanently closing it. Hence you destroy the instance (all processes get killed), which the XCode associated with your app. This is why you get the SIGKILL error.

    More on the iPhone Simulator: http://developer.apple.com/library/ios/#DOCUMENTATION/Xcode/Conceptual/ios_development_workflow/25-Using_iOS_Simulator/ios_simulator_application.html

    In fact this would even happen if you ran your application on an actual device, and deleted it from the multitasking bar, while the application was connected to XCode. However if your application is installed on a device and not connected to Xcode for running/testing/profiling, the problem won’t occur.

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

Sidebar

Related Questions

Okay I just started with Django and it's totally different from PHP. I installed
Okay, I want to have an app that takes phone numbers from an online
In a Swing-app is it okay to invoke System.exit() from any thread? (e.g. on
Possible Duplicate: Hide facebook app from search Okay, I know that this question was
Okay, so I have a snippet of code from a website containing a button:
Okay. So I'm creating this app and I'm really happy with it apart from
Okay so from what I've read on other websites and on stack overflow, Rails
Possible Duplicate: calling ASP function from javascript okay running this code : <script type=text/javascript>
Okay, this is following on from my previous question reguarding performing a simple ajax
Okay weirdest thing is happening I separated my navbar from my container and now

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.