Resources not copied to package

I have an Xcode project for an iOS application and added to it 3 small mp3s in the structure that are copied to the target package when compiling.

Then I added a larger mp3 (4 MB) to the structure (the same folder as the previous ones), and to the build phases:
enter image description here However, when compiling this file is not included. I tried to clean and recompile, change the destination, but the file is still missing:
enter image description here

Anything I could forget to check?

Thanks.

+6
source share
2 answers

Go to the build phase → resources and check that these files are shown there or not, and check if you added them if you allowed to copy the checkbox if necessary .

+2
source

When adding resources, make sure that not only the items to copy to the target group folder are checked (if necessary) , but also mark the corresponding object in Add to target objects .

0
source

Source: https://habr.com/ru/post/973362/


All Articles