Xcode-8.2 (8C38): Running xcodebuild with an unsymbolicated physical device destination fails to run

Originator:jp
Number:rdar://31176970 Date Originated:21-Mar-2017 12:18 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-8.2 (8C38)
Classification:UI/Usability Reproducible:Always
 
Summary:
When running `xcodebuild ... -destination='id=$DEVICE_ID'` on a device that is paired (aka trusted) but has never had its symbol files "processed" (aka copied) will fail with the following error:

```
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
        { id:6bce7c0274b3d85a230c0e1316dd6c1f5b583fc3 }

    Unsupported device specifier option.
    The device "My Mac" does not support the following options: id
    Please supply only supported device specifier options.

    Available destinations for the "Realm iOS static" scheme:
        { platform:OS X, arch:x86_64 }
        { platform:iOS, id:6bce7c0274b3d85a230c0e1316dd6c1f5b583fc3, name:iPad }
        { platform:tvOS Simulator, id:A9C2C50E-F8D0-46BF-9685-F1C599EB6A1A, OS:9.1, name:Apple TV 1080p }
        { platform:iOS Simulator, id:8D3789BD-BADC-4ABD-9CCD-E510D6EF08B3, OS:9.2, name:iPad 2 }
        ...(lots more simulators)...
```

Notice that xcodebuild was 'unable to find' the destination of 6bce7... (external iPhone) but listed this same device (6bce7...) in its 'Available destinations' prompt a few lines later.

This error does not occur after the device has had its symbol files copied/processed, instead happily running the binary on the device, with great success and aplomb.

Steps to Reproduce:
In numbered format, detail the exact steps taken to produce the bug.

Expected Results:
Describe what you expected to happen when you executed the steps above.

Actual Results:
Explain what actually occurred when steps above were executed.

Regression:
Describe circumstances where the problem occurs or does not occur, such as software versions and/or hardware configurations.

Notes:
I've also filed rdar://31176555 (http://www.openradar.me/31176555) to enable more transparency into the symbolication process which would be useful to work around this limitation, and would possibly be useful in other ways as well, beyond working around bugs.

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!