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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:13:54+00:00 2026-06-05T09:13:54+00:00

My app has created several data files as development has progressed through the simulator.

  • 0

My app has created several data files as development has progressed through the simulator. Their location is obtained by this function:

NSString *pathInDocumentDirectory(NSString *fileName) {
    NSArray *documentDirectories = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, 
                                                                       NSUserDomainMask, 
                                                                       YES);    
    NSString *documentDirectory = [documentDirectories objectAtIndex: 0];
    return [documentDirectory stringByAppendingPathComponent: fileName];  
}

The files are now required on the devices as testing of the app is moving from the simulator to actual devices. I was under the impression that the location that I am saving these files to made them part of the bundle and that therefore they would be on the device at the point of the build. Apparently that is not the case as the files do not exist on the device, but are present in directories on my development machine. How do I transfer the data files from my current working environment to the devices? How do I make these files get transferred from the simulator to the device automatically as they are written by the program?

  • 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-05T09:13:57+00:00Added an answer on June 5, 2026 at 9:13 am
    • You could enable iTunes File Sharing in your app which would enable you to add
      files to the Documents directory from iTunes.

      All you need to do is add the boolean key UIFileSharingEnabledto
      your Info.plist and set it to true or YES (make sure you disable
      this before submitting if you don’t want users to have this access).
      For more information, check out this tutorial.

    OR

    • You could use PhoneDisk to copy the files into your app’s Documents
      directory.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a simple iPhone app which has two .xib files. In the app
I've created an app that has several models (say A, B) that are polymorphically
I've created a versioned Core Data model in my iOS app, and it has
I've created an app that has a NSTableView which represents a series of files.
Heres my problem. My app has several projects. WEB (Controllers and views) Services Data
For a Ruby on Rails app, I'm having this Movie object which has several
A client im working for has created a web app that uses a password
I created a MainActivity in which the user has a few app options, displayed
My app has several buttons which trigger different events. The user should NOT be
I have created and running an app on Google App Engine. The app has

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.