Xcode repeatedly fails to install WatchOS symbols

Originator:jalkut
Number:rdar://29568241 Date Originated:07-Dec-2016 11:01 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.2 beta (8C30a)
Classification:Serious Bug Reproducible:Always
 
Summary:
I've been noticing this for months and finally dug into it more deeply. In a nutshell:

1. Every time I launch Xcode with my phone attached, it tries to install WatchOS 3.1 symbols.
2. It downloads a fresh copy to a temporary folder.
3. It mounts the downloaded package in a temporary mountpoint.
4. It fails to copy the resulting contents into ~/Library/Developer/Xcode/watchOS DeviceSupport/Watch1,2 3.1 (14S471)/Symbols/
5. It waits until next time I launch the app and tries, fails again.

This bug has cost me massive bandwidth overruns because the last thing I've expected has been 200MB downloads every single time I launch Xcode with my phone attached :(

Trying to get to the bottom of it, I have this to offer: I discovered the DVTDownloadableLeaveTemporaryFiles user default, which allowed me to repeatedly try the install process without re-downloading the 200MB file each time. I also discovered the DVTDownloadableLogLevel which yields this when the installation fails. It seems like some kind of authentication/sandbox issue, but I don't know what might be atypical about my setup.

I'm mostly testing on Xcode 8.2 betas but I also reproduce this on 8.1 GM: 

2016-12-07 22:53:43.055 Xcode[45418:2032192]  DVTDownloadable: Will install pkgs (
    "file:///private/var/folders/c6/rrr71bmj46797fn0qmhr11z80000gn/T/attached-image-3b1fe8392683d721919f64d80f8482dc3ff31182/Watch1,1_Watch1,2/Watch1,1_Watch1,2.pkg"
) from {
    dependencies =     (
    );
    fileSize = 0;
    identifier = "Xcode.Symbols.Watch1,2.14S471";
    name = "Symbols for watchOS 3.1 (14S471)";
    source = "http:/adcdownload.apple.com/Developer_Tools/watchOS_14S471/Watch1_2_14S471.dmg";
    userInfo =     {
        InstallPrefix = "/Volumes/Data/daniel/Library/Developer/Xcode/watchOS DeviceSupport/Watch1,2 3.1 (14S471)/Symbols";
        InstalledIfAllPathsArePresent =         (
            "/Volumes/Data/daniel/Library/Developer/Xcode/watchOS DeviceSupport/Watch1,2 3.1 (14S471)/Symbols"
        );
        RequiresADCAuthentication = 1;
    };
    version = "3.1";
}
2016-12-07 22:53:43.056 Xcode[45418:2032126]  DVTDownloadable: Requiring trust level 500
2016-12-07 22:53:43.476 Xcode[45418:2029807] [MT] DVTDownloadable: [Proxied device symbols coordinator] Download error Error Domain=PKInstallErrorDomain Code=100 "Could not download and install Symbols for watchOS 3.1 (14S471). Authorization is required to install the packages." UserInfo={NSLocalizedDescription=Could not download and install Symbols for watchOS 3.1 (14S471). Authorization is required to install the packages., NSUnderlyingError=0x7ff48d1bb4b0 {Error Domain=NSCocoaErrorDomain Code=260 "The file “12011D4B-F089-4174-9C2C-9206A324E377.sandbox” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Volumes/Data/.PKInstallSandboxManager/12011D4B-F089-4174-9C2C-9206A324E377.sandbox, NSUnderlyingError=0x7ff47330a760 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
2016-12-07 22:53:43.476 Xcode[45418:2029807] [MT] DVTDownloadable: [Proxied device symbols coordinator] Unable to download symbols Error Domain=PKInstallErrorDomain Code=100 "Could not download and install Symbols for watchOS 3.1 (14S471). Authorization is required to install the packages." UserInfo={NSLocalizedDescription=Could not download and install Symbols for watchOS 3.1 (14S471). Authorization is required to install the packages., NSUnderlyingError=0x7ff48d1bb4b0 {Error Domain=NSCocoaErrorDomain Code=260 "The file “12011D4B-F089-4174-9C2C-9206A324E377.sandbox” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Volumes/Data/.PKInstallSandboxManager/12011D4B-F089-4174-9C2C-9206A324E377.sandbox, NSUnderlyingError=0x7ff47330a760 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
10.12.2 (16C60b
Version 8.2 beta (8C30a) 

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!