Xcode cannot easily build an app without a watch target to phone with watch connected

Originator:kris.luttmer
Number:rdar://30732730 Date Originated:27-Feb-2017
Status:Open Resolved:
Product:Xcode Product Version:8.2.1
Classification: Reproducible:
 
Summary:
When developing an app and wanting to use Xcode to launch and run on my device my apple watch udid is required to be on the provisioning profile even if the project contains no apple watch targets

Steps to Reproduce:
1. Create a new project in Xcode
2. Create provisioning profile for new project without including any watches (since project does not have a watch target)
2. Connect phone (with apple watch connected) to computer and try to build project for phone device.

Expected Results:
If the project does not contain an apple watch target it should not require to code sign for the apple watch. It should build fine.

Actual Results:
Project build immediately fails because of codesigning.

Version:
Xcode 8.2.1, OS X 10.11.6

Notes:
The workaround is to disconnect the watch from the phone (turn off bluetooth) but that seems silly and makes the watch not as useful. Turning off bluetooth all day so I can develop apps is inconvenient. I also need to have bluetooth on to test bluetooth speakers and the like and in that case I need to unpair my watch.

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!