12

I have an XCode project for an iOS application, and added to it 3 small mp3's in the structure that are copied to the destination bundle upon compilation.

I have then added a bigger mp3's (4MB) to the structure (same folder than the previous ones) and into the Build Phases:
enter image description here However upon compilation, this file is not present in the bundle. I tried to clean and recompile, change destination, but the file is still absent:
enter image description here

Anything I could have forgotten to check ?

Thanks.

4
  • 1
    Show a screenshot of the "Copy Resources" Build Phase.
    – Droppy
    Commented Aug 5, 2014 at 10:31
  • Hmmm strange; your configuration looks OK. Have you studied the Build Log (open up the relevant line using the icon thing on the righthand side).
    – Droppy
    Commented Aug 5, 2014 at 11:31
  • Did you find a solution to this? I just started having this problem on a project that has been building fine for years and was building fine only a few hours ago. Now all of a sudden, files aren't getting copied.
    – Daniel T.
    Commented Mar 1, 2019 at 19:38
  • When you click on the file in the main editor window, does it have a target checked on the inspector ? Commented Mar 2, 2019 at 8:40

2 Answers 2

3

Go to your build phase->resources and check these files are showing there or not and check when you add them did you allow them to copy when required checkbox was selected or not.

1
  • The file is already in the build phase resource and the copy checkbox was ticked (you are talking about the "Copy items into destination group's folder (if needed)", right ?). Commented Aug 5, 2014 at 11:23
0

When you add resources, make sure not only the copy items into destination group's folder (if needed) is ticked, but also tick the corresponding target in the Add to targets list.

Not the answer you're looking for? Browse other questions tagged or ask your own question.