Ever wonder about ios application files and folder structure once installed on device?

Last updated on Aug 30, 2016

Milan Sanathara

iPhone

1

 

Introduction to ios application files and folder structure:

Let’s understand files and folders structure in iOS. iOS is based on OS X, which itself is based on the Unix operating system. In iOS, the operating system’s full directory structure is not visible to an app because of each app, written by an iOS app developer, lives in its own sandbox.

A sandbox environment is exactly what it sounds like a sanctioned area where only the app that owns the sandbox can access the contents of the folder. Every app has its own sandbox folder and the sandbox folders by default have subfolders that apps can access.

When an iOS app is installed on the device, the folder structure shown in Figure above will be created for that app by the system.

 

Every App Is an Island.

An iOS app’s interactions with the file system are limited mostly to the directories inside the app’s sandbox. During installation of a new app, the installer creates a number of containers for the app. Each container has a specific role. The bundle container holds the app’s bundle, whereas the data container holds data for both the application and the user. The data container is further divided into a number of directories that the app can use to sort and organise its data. The app may also request access to additional containers—for example, the iCloud container—at runtime.

These containers constitute the app’s primary view of the file system.

Because it is in a sandbox, an app is generally prohibited from accessing or creating files outside its containers. One exception to this rule occurs when an app uses public system interfaces to access things such as the user’s contacts or music. In those cases, the system frameworks handle any file-related operations needed to read from or modify the appropriate data stores.

Check How iOS Backup Your App Data Automatically.

I hope you will find this post very useful regarding ios application files and folder structure. Let me know if you have any question regarding ios in a comment . I will reply to you ASAP.

Have you got a cool idea about iPhone App Development? Contact us Now to get a free consultation on your idea. Alphanso Tech is rated as one of the best iPhone App Development Company in India.

Post by Milan Sanathara

I am iOS Application Developer with an aspiration of learning new technology and creating a bright future in Information Technology.

One Response to Ever wonder about ios application files and folder structure once installed on device?

  1. Pingback: How iOS Backup your App Data Automatically? -

Leave a Reply

Your email address will not be published. Required fields are marked *