Laurent Crivello
Laurent Crivello

Reputation: 3931

Resources not copied to bundle

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.

Upvotes: 12

Views: 7992

Answers (2)

blackhogz
blackhogz

Reputation: 141

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.

Upvotes: 0

Retro
Retro

Reputation: 4005

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.

Upvotes: 3

Related Questions