Xcode gets stuck when copying file while trying to create to run on device

I need to play the mp3 file in my application, and I added it to my Project Navigator in the "Supported files" folder. When I create an application on a simulator, it works fine.

When I try to build on my device, I am stuck at this point:

This takes about 3 minutes, and then two Unknown Error pop-ups appear.

I tried to reset my MBP, iPhone and Xcode. I also tried to clear the build folder. I thought it would be a simple / general problem, but my research came up without a solution.

I found this thread that advises enabling Parallelize Build, but that didn't work either.

Has anyone experienced this problem and found a solution?

EDIT: whenever I add new media files (music / pictures), I get stuck with them when copying.

+4
source share
1 answer

You can add a key to info.plist: The application supports file sharing in iTunes and set it to YES . You can then manage your application data using iTunes. Open iTunes, go to your device and open the application tab.

Down on this page, go to the file sharing section, and there you have a folder of application documents for transferring all your data.

I hope this result is helpful.

0
source

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


All Articles