XCBuild logs `unexpected mutating task` for WatchKit target

Originator:keithbsmiley
Number:rdar://34950052 Date Originated:11-Oct-2017 22:58
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9.0 (9A235)
Classification:Other Bug Reproducible:I didn't try
 
Summary:
When doing a clean build with XCBuild on our app including a WatchKit target, XCBuild emits this warning:

```
warning: unexpected mutating task ('CodeSign .../build/Products/Debug-watchsimulator/Watch.app') with no relation to prior mutator ('Ditto /Users/ksmiley/dev/.../build/Products/Debug-watchsimulator/Watch.app/Watch /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator4.0.sdk/Library/Application\ Support/WatchKit/WK') (in target 'Watch')
```

Steps to Reproduce:
1. Switch to the new build system, and clean
2. Build

Expected Results:
There are no warnings

Actual Results:
This WatchKit warning is emitted

Version:
Xcode 9.0 (9A235)

Notes:
See the attached log for more details

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!