Reputation: 32783
Is there a way to have directories within an .app
?
At the moment if I add a file into Xcode
, regardless of what Group hierarchy it is in, the file always lands in a flat filesystem within my application bundle.
Upvotes: 50
Views: 21152
Reputation: 2327
If you just want to copy existing files into your application bundle's Resources folder (which on iPhone is just the inside of the .app bundle), do the following:
The folder you dragged in and all of its contents will be copied verbatim during building.
Upvotes: 94
Reputation: 78393
Under the target for your application, you have to add a Copy Files phase. Then you can specify a sub-directory within the app bundle that you want the file copied to. There will be a bunch of default directories for specific things (like resources and frameworks and such), but you can choose any directory you want. When your application bundle is built, the files you specify will be copied to the location within your bundle.
Upvotes: 17