Creating a Copy Files Build Phase

To copy files when building or installing a target:

  1. Click the Targets tab, select the target's name, click the Files tab, and choose Project > New Copy Files Build Phase.
  2. Choose where to place the files.
    Choose where to copy the files:
    • If you choose Absolute Path, the files are copied to the location specified in the Path field.
    • If you choose another name, the files are copied into the folder of that name within your bundle. To copy the files to a subfolder within that folder, enter the subfolder's name in Subpath.
  3. If you want to copy the files only when installing the target's product, select "Copy only when installing."
    Otherwise, the files are copied whenever the target is built.
  4. Select the files to copy.
    Drag the files to the Files field.