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

  • Home
  • SEARCH
  • 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 4330826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:01:08+00:00 2026-05-21T10:01:08+00:00

So my first app I am making is for jailbroken devices. I must say

  • 0

So my first app I am making is for jailbroken devices.

I must say it’s not finished yet, but I believe it’s a good habit to test incomplete apps in a real device every now and then while developing the app. Since my app is for jailbroken devices, I have to fake sign the app and all that.

The thing is, my app has a plist with two entries: a bool for “hasBeenLaunchedBefore” and a string for “Password”. My app changes TRUE to hasBeenLaunchedBefore when the app is finished configuring, so when the app loads it gets a different view. The password is straightforward: it stores a password for the user.

I think my plist file is not getting modified when I launch my app in my device, because well, when the app has never launched before, you get a configuration wizard. Everytime I close the app I keep getting the config wizard, which means hasBeenLaunchedBefore is not changed to TRUE as it is supposed be. Also, my passwords NEVER match, so it means the password doesn’t get modified either.

Everything works fine in the iOS Simulator, but not in my iDevice. Could someone help me a bit with this? Could it be a permissions issue? This has really, really left me with no words or ideas to fix it. I am guessing I could put the plist in /Documents, but I have no idea of how to do that. So if anyone has suggestions for me to fix this, I will highly appreciate it.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

// Override point for customization after application launch.
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if(![defaults objectForKey:@"first_launch"]){ //Load first_launch from NSUserDefaults. It should be either true or false, but never (null).
    [self.window addSubview:configWizard.view];
    UIAlertView *lol = [[UIAlertView alloc] initWithTitle:@"Never started before." message:@"The app was never started before." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [lol show];
    [lol release];
}else{
    [self.window addSubview:tabBarController.view];
    UIAlertView *lol = [[UIAlertView alloc] initWithTitle:@"Started before." message:@"The app was started before." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [lol show];
    [lol release];
}

[defaults synchronize];

// Add the tab bar controller's view to the window and display.
[self.window makeKeyAndVisible];

return YES;

}

That’s the old code I was using when I attempted to load from NSUserDefaults, but first_launch kept returning (null).

  • 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-21T10:01:09+00:00Added an answer on May 21, 2026 at 10:01 am

    Hmm. App’s behaviour on a device and in simulator is different. So your ideas about testing are quite right. I don’t now exactly (bad, but honestly))), but I’m quite agree with your supposition that problem is in file permissions.

    As a solution I can suggest to use NSUserDefaults. Moveover, working with them in this situation should be easier.

    UPDATE

    Try this:

    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    if (![defaults boolForKey:@"first_launch"]) {       // use boolForKey instead objectForKey here
         [defaults setBool:YES forKey:@"first_launch"];     // change the value (next time launch is not the first one)
         [defaults synchronize];    // you should synchronize only if values were changed
    
         UIAlertView *lol = [[UIAlertView alloc] initWithTitle:@"Never started before."
                message:@"The app was never started before." delegate:nil
                cancelButtonTitle:@"OK" otherButtonTitles:nil];
         [lol show];
         [lol release];
    } else {
         UIAlertView *lol = [[UIAlertView alloc] initWithTitle:@"Started before."
                message:@"The app was started before." delegate:nil
                cancelButtonTitle:@"OK" otherButtonTitles:nil];
        [lol show];
        [lol release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on my first iPhone app and making good progress. But there
I am making good progress with my first Rails app with a lot of
I have a unit test called TestMakeAValidCall() . It tests my phone app making
I'm making my first iPhone app. I could solve most of my problems browsing
I am making an app that accesses Amazon S3. But should I put the
i am making a tabbar based app, but the problem is I have several
Im making my first big iphone app and I was wondering whats the best
This is my first time making an app with XML layouts. In the past
I'm making my first iOS App, and I'm facing my first (little) issue. The
I'm making a recipe-manager (who isn't as their first app?) in Rails, and here

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.