tags:

views:

283

answers:

2

I need to know how to copy resources (help files, images, pLists) to the iPhone simulator and ultimately device. I thought this was done through XCode but I cannot recall the exact procedure. If someone could kindly provide some brief intructions....

Thanks in advance.

A: 

Just drag your file to the project. It will be copied to your app bundle when the app is installed (on the simulator).

Alternatively, put the file into ~/Library/Application Support/iPhone Simulator/User/Applications/... (if you have the 3.2 SDK.)

KennyTM
A: 

From the XCode docs.

A Copy Files build phase allows you to copy files and resources of any type to specific locations as part of the build process. It complements the build phases that copy specific types of files. An example is the Copy Headers build phase, which deals only with header files. You can have as many Copy Files build phases as you need in a target.

For example, using a Copy Files build phase, you can copy fonts to/Library/Fonts. Or, if you’re developing a plug-in, a Copy Files build phase can copy the generated plug-in to the appropriate location. You can have as many Copy Files build phases in a target as you need.

To create a Copy Files build phase:

In the project window, open the target to which you want to add the build phase, and select the build phase after which to add the new build phase. Choose Project > New Build Phase > New Copy Files Build Phase. Xcode adds the new Copy Files build phase after the build phase selected in the Groups & Files list. Drag the files you want to copy from the Groups & Files list to the Copy Files build phase. To configure the new Copy Files build phase, select it and open the Copy Files build phase editor, shown in Figure 2-5.