macrumors member

[] are folders. I'd like to have xcode copy this folder structure into he Resources of the project.

When I add the [Cars] folder as an existing file to the Resources, xcode copies the jpegs to the project root. When it builds the target, it copies the jpegs to the build root instead of the Resources folder. Also, the folder structure is not recreated. So obviously I'm doing something wrong....

macrumors 6502a

Add a new "Copy Files" Build Phase to the target you are building. Add a new build phase using the Build menu in Xcode.

Then drag and drop the Resource folder or files in the project file list on the left side of the window to the "Copy Files" build phase.

To set which folder the files are copied to you select the "Copy Files" build phase in the target list and type Command-I (Get Info). In the "Destination" popup menu you can select which sub-folder the files will be copied to.

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.