Error with Download Container on iPadOS17 and Xcode15

From Xcode15, when Download Container in Window > Devices and Simulators for iPadOS17, an error occurs.

The specified file could not be transferred.
Domain: com.apple.dt.CoreDeviceError
Code: 7000
User Info: {
    DVTErrorCreationDateKey = "2023-11-21 05:52:37 +0000";
    NSURL = "file:///Users/administrator/Desktop/<bundle identifer>%202023-11-21%2014:52.14.006.xcappdata/AppData/Library/WebKit/WebsiteData/IndexedDB/v0";
}
--
Performing a file system operation failed: Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 51)
Domain: com.apple.dt.remoteservices.error
Code: 11001
--
Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 51)
Domain: NSPOSIXErrorDomain
Code: 62
Failure Reason: Too many levels of symbolic links
--
System Information

macOS Version 14.0 (Build 23A344)
Xcode 15.0.1 (22266) (Build 15A507)

indexedDB is not used in the app.
I was able to download successfully with Xcode15 and iPadOS16.
I was able to download successfully with Xcode14 and iPadOS17.
Why do I get an error with Xcode15 and iPadOS17?How should I fix it?
That you.

I am having the same issue with iOS17 (iPhone) and Xcode15. Hope someone know how to resolve this issue. In our team we frequently download the application container for debugging and this is a huge problem for us.

Facing similar issues. Any solution?

Same issues with iOS17.2 and Xcode15.1:

The specified file could not be transferred. Domain: com.apple.dt.CoreDeviceError Code: 7000 User Info: { DVTErrorCreationDateKey = "2023-12-13 05:45:30 +0000"; NSURL = "file:///Users//Documents/com..xcappdata/AppData/Documents/X.gputrace/MTLBuffer-89-0"; }

Performing a file system operation failed: Failed to open Documents/X.gputrace/MTLBuffer-89-0 for reading, openat(2) returned POSIX error code 62 (parentParam = 10) Domain: com.apple.dt.remoteservices.error Code: 11001

Help ... P.S. The ".gputrace" file will be correctly transferred only if it's very simple, e.g., in a test project with a few gpu resources.

Same here Xcode 15.2 iOS 17.4

Performing a file system operation failed: Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 142) Domain: com.apple.dt.remoteservices.error Code: 11001

Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 142)

Same issue here with Xcode 15.3

Having the same issue please fix it

The specified file could not be transferred. Domain: com.apple.dt.CoreDeviceError Code: 7000 User Info: { DVTErrorCreationDateKey = "2024-04-11 04:54:18 +0000"; NSURL = "file:///Users/yasitha/Desktop/devdata.xcappdata/AppData/Library/WebKit/WebsiteData/IndexedDB/v0"; }

Performing a file system operation failed: Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 110) Domain: com.apple.dt.remoteservices.error Code: 11001

Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 110) Domain: NSPOSIXErrorDomain Code: 62 Failure Reason: Too many levels of symbolic links

System Information

macOS Version 14.0 (Build 23A344) Xcode 15.2 (22503) (Build 15C500b) Timestamp: 2024-04-11T10:24:18+05:30

same issue

Same here:

The specified file could not be transferred. Domain: com.apple.dt.CoreDeviceError Code: 7000 User Info: { DVTErrorCreationDateKey = "2024-04-14 18:03:46 +0000"; NSURL = "file:///Users/jorismans/Downloads/com.sweel.sweel%202024-04-14%2020:03.39.386.xcappdata/AppData/Library/WebKit/WebsiteData/IndexedDB/v0"; }

Performing a file system operation failed: Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 64) Domain: com.apple.dt.remoteservices.error Code: 11001

Failed to open Library/WebKit/WebsiteData/IndexedDB/v0 for reading, openat(2) returned POSIX error code 62 (parentParam = 64) Domain: NSPOSIXErrorDomain Code: 62 Failure Reason: Too many levels of symbolic links

I was also unable to download the container from my iPhone 13 Pro on iOS 17.4.1, using Xcode 15.3. Here is the brute force solution I used...

I added this temporary code to my AppDelegate didFinishLaunchingWithOptions, which removes the folder containing the non-transferable file and exits (gracefully, but using a private API).

if true {
    if let directoryURL = FileManager.default
        .urls(for: .libraryDirectory, in: .userDomainMask)
        .first?.appendingPathComponent("WebKit") {
        do {
            try FileManager.default.removeItem(at: directoryURL)
            let selector = Selector("terminateWithSuccess")
            UIApplication.shared.perform(selector,
                with: UIApplication.shared, afterDelay: 0)
        } catch {
            /* can’t remove item \(error)" */
        }
    }
}

The container can now be downloaded until such time as the application uses the WebKit again, which will re-create this non-transferable file. Come on, Apple !

👉 Make sure you switch from true to false before uploading your app to the App Store !

I have the same issue with iPad OS 17.6.1 & XCode 15.2.

It does not occur on iPhone (OS 18.1).

Error with Download Container on iPadOS17 and Xcode15
 
 
Q