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

The Archive Base Latest Questions

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

I recently paid the $99 for the dev license to be able to load

  • 0

I recently paid the $99 for the dev license to be able to load my app on my iPhone. Prior to doing that my app was able to write a simple ‘names.plist’ file to the Documents directory of my app in the simulator. I was able to launch the app at a later time in the simulator and some text would be retained inside the file. Since purchasing the license and installing the app on my phone, the app does write to the sandbox Documents directory in the simulator or phone. It seems like the developer license changed something.

The code for when it worked has not changed and correctly returned the sandbox Documents directory. It is below. I’ve also included an NSLog print of what the app shows now for the directory and filename with the same code. It is for a file named ‘Documentsname.plist’, not the ‘names.plist’ I am wanting. I greatly appreciate any help! Thanks.

//.h
#define username @"name.plist"

// .m -- Define and return this App's sandbox iOS Documents Directory
- (NSString *)userFilePath {

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

    NSString *documentsDirectory = [paths objectAtIndex:0];

    return [documentsDirectory stringByAppendingFormat:username];

}

An NSLog of the path that is trying to write to and then read from is below:

/Users/<user>/Library/Application Support/iPhone Simulator/4.3.2/Applications/AF36A4E1-5387-4B10-8F3A-A69AAA307FE4/Documentsname.plist
  • 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-21T23:17:02+00:00Added an answer on May 21, 2026 at 11:17 pm
    return [documentsDirectory stringByAppendingPathComponent:username];
    

    You are just appending a string, not a path. By appending a “path component”, it automatically adds/removes needed/unneeded slashes.

    I would also recommend not combining the username and “.plist”.

    #define username @"name"
    
    return [[documentsDirectory stringByAppendingPathComponent:username]stringByAppendingString:@".plist"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I published several free and paid app in the Market. I recently get several
Recently I'm doing some work on RTMP streaming, that is using Flowplayer to integrate
I have created an app which is a paid version. I recently launched my
Recently I made a git repo out of directory that already contained two git
Recently, I feel that I've reached a wall I need to vault over to
Has Apple been known to recently reject apps that were created in Flash CS5?
Recently I've noticed that on occasion I do not get a mayorship notification when
Recently i am making an app on facebook. So i have use facebook api.
Recently I've been doing quite the project mostly working with the DateTime class. Now,..
Recently, we had released an app. Before we releasing, we tested it on Samsung

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.