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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:32:17+00:00 2026-06-12T03:32:17+00:00

I save some run-time generated files inside the .app bundle of my iOS app.

  • 0

I save some run-time generated files inside the .app bundle of my iOS app. In the simulator it works fine, in the device it crashes:

Could create output files in the given shader cache path
‘/var/mobile/Applications/CB064997-B40E-4FE3-9834-B3217CE33489/SimedTest.app/Ogre3D/assets/RTShaderLib/cache/

Is there a good overview of where I should and shouldn’t put files – how to use Documents, Library and tmp, etc?

To clarify, these are files created at startup which pre-calculate some data to save time. IF they are not present they get created so it’s fine they are deleted, but not while the app is running.

  • 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-12T03:32:19+00:00Added an answer on June 12, 2026 at 3:32 am

    The bundle is read-only. You don’t want to mess around with it for two reasons:

    • Code Signing: the signature is verified by against the contents of the bundle; if you mess around with the bundle, you break the signature.
    • App Updates: updates work by replacing the entire app bundle with a newly downloaded one; any changes you make will get lost.

    Where you should save stuff:

    • Documents: if you want it to persist and be backed up
    • Library/Caches: if you just want to cache downloaded data, like profile pics; will be auto deleted by the system if it is low on room unless you specify with a special do-not-delete flag.
    • tmp: temporary files, deleted when your app is not running

    For a full explanation check out File System Programming Guide and QA1719.

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

Sidebar

Related Questions

I'm trying to run this method, it works fine but every time after some
I save files in a specific folder at run time. After some time, I
My App need to save some data (around 100 double fields that is stored
I'm trying to save some time / make my code readable. I have a
I am looking for some way to save dynamically generated image from WebBrowser control.
I'm trying to save some data into an array but unfortunately all the data
When I want to save some state behavior of the activity, The docs says
I need to save some classes and data structures to a file. My first
I'm trying to save some UserControl-Infos into a List like this: List<UserControlDetails> myList; public
I'm trying to save some layouts from DevExpress Grid Controls so that users can

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.