store folders in package contents (bundle resource

2019-04-21 02:20发布

问题:

I need to store a folder in the package contents, not all files in the project all in one root folder.

How can I do this in XCode 4.0?

Right now I am going to the Build Phases > Copy Bundle Resources to attempt these changes.

回答1:

Create your folder in the filesystem, then drag it to the resource folder in XCode. In the following dialog select create folder reference for any added folder. The folder should be blue. This folder is copied to your bundle with its contents.