6

While running my app on iPhone, I needed to view the database contents. So I selected Devices in Xcode and chose my device. Thereafter, i selected my app and clicked on the Settings button which shows 3 options: Show container, Download container and Remove container. On clicking the Download container option, I was asked where I want to store the container. After selecting the location, I am getting the following error: An error occured while attempting to download the container from application "MyApp".....

On selecting Show container option, a list opens up but there is no file inside it.

The same problem occurs with other apps too that I run using Xcode.

Any ideas as to why this happens and how to fix it?

StudentX
  • 2,506
  • 5
  • 19
  • 28
  • 1
    I am having the same issue. The first time I had it was yesterday and I couldn't do anything to fix it. I tried again today and it worked for about 3 hours and I am getting the same error. Restarting Xcode, macbook nothing seems to be solving this. – EmbCoder Aug 26 '16 at 16:27

3 Answers3

17

I just rebooted my iPhone. That seems to fix it! Really weird, but works.

I have been having the issue every now and then especially after the phone has been connected to Mac and Xcode for about an hour.

Sometimes, just rebooting the phone isn't good enough, you'll also have to quit Xcode and start again after rebooting the phone!

EmbCoder
  • 562
  • 1
  • 7
  • 16
2

I also had this problem yesterday, and the solution was a mismatched version of iOS 10 and Xcode 7. After I did the App Store upgrade to Xcode 8, I was able to download successfully.

Kevin Hakanson
  • 41,386
  • 23
  • 126
  • 155
2

In my case the issue was due to the fact that the version installed was a release version. After installing the "Debug" version, the download worked fine.

lbarbosa
  • 2,042
  • 20
  • 23