Subdirectories in iOS app

Is there a way to have directories in .app ?

Currently, if I add a file to Xcode , no matter what group hierarchy it is in, the file always ends up in the flat file system in my application.

+49
iphone bundle
Jan 06 '09 at 23:50
source share
2 answers

If you want to copy existing files to the Resources application folder (which on iPhone is only part of the .app package), follow these steps:

  • Drag the folder you want to copy to the list of files and folders of your xcode project.
  • From the sheet that appears asking you if you want to add files to the target, change the switch to "Create folder links for any added folders."

The subfolder and all its contents will be copied verbatim during assembly.

+92
Jan 08 '09 at 2:29
source share
β€” -

For the purpose of your application, you should add the β€œCopy files” phase. Then you can specify the subdirectory in the application bundle to which you want to copy the file. A default set of directories will be defined for certain things (e.g. resources and frameworks, etc.), but you can choose any directory that you want. When your application package is created, the files you specify will be copied to the location in your package.

+17
Jan 06 '09 at 23:59
source share



All Articles