An error occured while attempting to download the container from application Xcode

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.

  • Adding a new target in xcode 4.2
  • Method BOOL return from inside block
  • XCode Server: Opening import file for module 'MobileCoreServices': Permission denied
  • iOS - Record the Voice while phone call in Objective c
  • How to set cursor position for UITextView on user input?
  • iOS : 'MyViewController' does not conform to protocol 'UITableViewDataSource'
  • 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?

    3 Solutions Collect From Internet About “An error occured while attempting to download the container from application Xcode”

    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!

    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.

    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.